Akceleracija misa

Akceleracija misa

offline
  • Pridružio: 11 Sep 2007
  • Poruke: 3271

Na Ubuntu sistemu pokusavam da smanjim akceleraciju misa preko xinput komande medjutim dobijam sledece obavestenje/gresku:


⎡ Virtual core pointer                       id=2   [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                 id=4   [slave  pointer  (2)]
⎜   ↳ A4TECH USB Device                          id=10   [slave  pointer  (2)]
⎜   ↳ A4TECH USB Device                          id=11   [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                   id=17   [slave  pointer  (2)]
⎣ Virtual core keyboard                      id=3   [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                id=5   [slave  keyboard (3)]
    ↳ Power Button                               id=6   [slave  keyboard (3)]
    ↳ Video Bus                                  id=7   [slave  keyboard (3)]
    ↳ Video Bus                                  id=8   [slave  keyboard (3)]
    ↳ Sleep Button                               id=9   [slave  keyboard (3)]
    ↳ HID 0566:3002                              id=12   [slave  keyboard (3)]
    ↳ HID 0566:3002                              id=13   [slave  keyboard (3)]
    ↳ USB Camera                                 id=14   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                           id=15   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard               id=16   [slave  keyboard (3)]


eric@Asus:~$ xinput --set-prop "A4TECH USB Device" "Device Accel Velocity Scaling" 1

Warning: There are multiple devices matching 'A4TECH USB Device'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.

unable to find device A4TECH USB Device

eric@Asus:~$ xinput --set-prop "id=10" "Device Accel Velocity Scaling" 1
unable to find device id=10


Isto se desava i kada stavim id=11.
U pitanju je poslednja verzija Ubutnu-a, ako to ista znaci.

Gde i kako gresim?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • dekao  Male
  • Moderator foruma
  • Dejan Trajković
  • Realist painter
  • Pridružio: 06 Apr 2006
  • Poruke: 3592
  • Gde živiš: Somewhere in time

Zašto je ne smanjiš preko kontrol-centra nego moraš iz terminala?



offline
  • bocke  Male
  • Moderator foruma
  • Glavni moderator Linux foruma
  • Veliki Pingvin
  • Guru
  • Pridružio: 16 Dec 2005
  • Poruke: 12488
  • Gde živiš: Južni pol

Tanatos ::eric@Asus:~$ xinput --set-prop "id=10" "Device Accel Velocity Scaling" 1


Probaj:
xinput --set-prop 10 "Device Accel Velocity Scaling" 1

Ali prvo proveri da li taj miš podržava ovu opciju:
xinput list-props 10

Ne znam zašto se pokazuje dva puta. Da nije neki gaming miš sa dodatnim dugmićima?

Inače baci pogled na Arch wiki ako te zanima više informacija: Mouse acceleration.

offline
  • Pridružio: 11 Sep 2007
  • Poruke: 3271

@dekao

Zato sto je tu vec podeseno na minimum.

@bocke
Evo ga izlaz komande xinput list-props 10
 Device 'A4TECH USB Device':
   Device Enabled (170):   1
   Coordinate Transformation Matrix (172):   1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   Device Accel Profile (295):   0
   Device Accel Constant Deceleration (296):   1.000000
   Device Accel Adaptive Deceleration (297):   1.000000
   Device Accel Velocity Scaling (298):   10.000000
   Device Product ID (289):   2522, 37008
   Device Node (290):   "/dev/input/event4"
   Evdev Axis Inversion (299):   0, 0
   Evdev Axes Swap (301):   0
   Axis Labels (302):   "Rel X" (180), "Rel Y" (181), "Rel Horiz Wheel" (294)
   Button Labels (303):   "Button 0" (293), "Button Unknown" (292), "Button Unknown" (292), "Button Wheel Up" (176), "Button Wheel Down" (177), "Button Horiz Wheel Left" (178), "Button Horiz Wheel Right" (179)
   Evdev Scrolling Distance (304):   1, 1, 1
   Evdev Middle Button Emulation (305):   0
   Evdev Middle Button Timeout (306):   50
   Evdev Third Button Emulation (307):   0
   Evdev Third Button Emulation Timeout (308):   1000
   Evdev Third Button Emulation Button (309):   3
   Evdev Third Button Emulation Threshold (310):   20
   Evdev Wheel Emulation (311):   0
   Evdev Wheel Emulation Axes (312):   0, 0, 4, 5
   Evdev Wheel Emulation Inertia (313):   10
   Evdev Wheel Emulation Timeout (314):   200
   Evdev Wheel Emulation Button (315):   4
   Evdev Drag Lock Buttons (316):   0
 


Rekao bih da podrzava tu opciju, medjutim, kada pokusam xinput --set-prop 10 "Device Accel Velocity Scaling" 1 , dobijem sledeci izlaz:

 usage :
   xinput get-feedbacks <device name>
   xinput set-ptr-feedback <device name> <threshold> <num> <denom>
   xinput set-integer-feedback <device name> <feedback id> <value>
   xinput get-button-map <device name>
   xinput set-button-map <device name> <map button 1> [<map button 2> [...]]
   xinput set-pointer <device name> [<x index> <y index>]
   xinput set-mode <device name> ABSOLUTE|RELATIVE
   xinput list [--short || --long || --name-only || --id-only] [<device name>...]
   xinput query-state <device name>
   xinput test [-proximity] <device name>
   xinput create-master <id> [<sendCore (dflt:1)>] [<enable (dflt:1)>]
   xinput remove-master <id> [Floating|AttachToMaster (dflt:Floating)] [<returnPointer>] [<returnKeyboard>]
   xinput reattach <id> <master>
   xinput float <id>
   xinput set-cp <window> <device>
   xinput test-xi2 [--root] <device>
   xinput map-to-output <device> <output name>
   xinput list-props <device> [<device> ...]
   xinput set-int-prop <device> <property> <format (8, 16, 32)> <val> [<val> ...]
   xinput set-float-prop <device> <property> <val> [<val> ...]
   xinput set-atom-prop <device> <property> <val> [<val> ...]
   xinput watch-props <device>
   xinput delete-prop <device> <property>
   xinput set-prop <device> [--type=atom|float|int] [--format=8|16|32] <property> <val> [<val> ...]
   xinput disable <device>
   xinput enable <device>
 


Pa moze se reci da je gaming mis, u pitanju je ovaj mis.

offline
  • bocke  Male
  • Moderator foruma
  • Glavni moderator Linux foruma
  • Veliki Pingvin
  • Guru
  • Pridružio: 16 Dec 2005
  • Poruke: 12488
  • Gde živiš: Južni pol

Na osnovu izlaza (koji prikazuje korišćenje xinput), to bi trebalo da izgleda ovako:
xinput set-prop 10 "Device Accel Velocity Scaling" 1

Prvobitna "xinput --set-prop" komanda je sa Arch wikija. Ako ima Archevaca među nama, mogli bi to da isprave da im ne stoji pogrešno.

offline
  • Pridružio: 11 Sep 2007
  • Poruke: 3271

Napisano: 30 Avg 2015 17:28

Koliko mogu da primetim ova komanda je prihvacena, posto ne izbacuje nikakvu gresku.

Zanima me jos samo da li je potrebno ovu komandu unositi svaki put kada se restartuje X server, posto mi se cini da sam negde procitao ovih dana da je potrebno uneti jos neku dodanu liniju u xorg.conf fajl?

Dopuna: 30 Avg 2015 17:35

Ili ovako nesto?


The best approach is to save this script as something like mouseacc.sh inside ~/bin directory because this directory is inside your PATH environment variable and you can call scripts from this directory from anywhere in your file system. You can just hit Alt+F2 and enter mouseacc.sh to turn mouse acceleration off for selected device. Don't forget to set executable bit for your script because without this your script will refuse to do its work. This is how you can achieve this:

chmod +x ~/bin/mouseacc.sh


http://www.techytalk.info/turn-mouse-acceleration-off-on-ubuntu-linux/

offline
  • bocke  Male
  • Moderator foruma
  • Glavni moderator Linux foruma
  • Veliki Pingvin
  • Guru
  • Pridružio: 16 Dec 2005
  • Poruke: 12488
  • Gde živiš: Južni pol

Jok. Te stvari možeš staviti u ~/.xprofile (ili ~/.xsession, ali to neće raditi sa LightDM).

Ko je trenutno na forumu
 

Ukupno su 971 korisnika na forumu :: 15 registrovanih, 2 sakrivenih i 954 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: Aleksandar Tomić, bbogdan, comi_pfc, Dannyboy, djboj, Djokislav, esx66, kolle.the.kid, Lazarus, Milos82, Mixelotti, nuke92, operniki, procesor, 125