Talk:Mouse acceleration

From ArchWiki
Revision as of 18:59, 9 November 2011 by Repulsive (Talk | contribs)

Jump to: navigation, search

OK, concerning ' Disabling mouse acceleration '

"AccelerationProfile" "-1" # disables 'motion processing' which is not good for high end mice

"AccelerationScheme" "none" # disables 'ConstantDeceleration' which makes my mouse(deathadder) feel 'jerky'

Disabling 'ConstantDeceleration' forces you to use 'Sensitivity' which is very limited and one dimensional.

My recommendations:

Section "InputDevice"
	Option "AccelerationProfile" "-1" # (Only Constant Deceleration is applied (no acceleration))
	Option "ConstantDeceleration" "2" # ('Constantly' decelerates the mouse by given factor, >2)
	Option "AccelerationScheme" "predictable" (default, enables the new features) 
EndSection

Disabling mouse acceleration

--Heller Barde 19:21, 30 March 2011 (EDT)This didn't work for me, it actually broke my X server.(which was obviously easily fixed.) Just so people are aware. :)

--XenoBrain 9:27, 10 August 2011 (CDT)It needs "Identifier" and "Driver" lines, which I added above.

Identifier

Why "generic mouse" ? I put just "mouse" and it works. I've tried to find about InputClass's Identifier field. man xorg, man evdev, Archwiki:xorg. Failed. Mb im just too stupid or sleepy today

Section "InputClass"
     Identifier "mouse"
     Option "AccelerationScheme" "none"
 EndSection

--Repulsive 00:45, 8 November 2011 (EST)

InputClass's Identifier is usless here, but required for some reason. The real deal is "MatchXXXXXX" entries. (man xorg.conf).
Here is correct conf for my mouse:
Section "InputClass"
     Identifier "blah blah blah"

     MatchProduct "Optical Mouse"
     MatchVendor "Genius"

     Option "AccelerationScheme" "none"
 EndSection
Getting Product and Vendor (man udevadm):
# udevadm info --query=name --name=/dev/input/mouse0 --attribute-walk
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0/input/input3/mouse0':
    KERNEL=="mouse0"
    SUBSYSTEM=="input"
    DRIVER==""

  looking at parent device '/devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0/input/input3':
    KERNELS=="input3"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{name}=="Genius Optical Mouse"
    ATTRS{phys}=="usb-0000:00:1a.2-2/input0"
    ATTRS{uniq}==""
    ATTRS{properties}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0':
    KERNELS=="5-2:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usbhid"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bNumEndpoints}=="01"
    ATTRS{bInterfaceClass}=="03"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bInterfaceProtocol}=="02"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:1a.2/usb5/5-2':
    KERNELS=="5-2"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}=="HID-compliant MOUSE"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="a0"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{urbnum}=="1048509"
    ATTRS{idVendor}=="0458"
    ATTRS{idProduct}=="003a"
    ATTRS{bcdDevice}=="0100"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{speed}=="1.5"
    ATTRS{busnum}=="5"
    ATTRS{devnum}=="3"
    ATTRS{devpath}=="2"
    ATTRS{version}==" 1.10"
    ATTRS{maxchild}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="Genius"
    ATTRS{product}=="Optical Mouse"

    ...
--Repulsive 13:45, 9 November 2011 (EST)
Or mb i should set Vendor = "0458" and Product = "003a" :/ Because [1] shows me different vendor and product ^^) LMAO. Well, who care if it works :/ --Repulsive 13:59, 9 November 2011 (EST)