Solved Mouse aceleration with Xorg (UDEV)

nunotex

Member

Reaction score: 11
Messages: 54

Hello,

New xorg-server option UDEV broke my old acceleration command:

xinput --set-prop ID "Device Accel Constant Deceleration" n

==> property 'Device Accel Constant Deceleration' doesn't exist, you need to specify its type and format

I not using any config files in /usr/local/etc/X11/xorg.conf.d/, it seems that xf86-input-libinput do auto-configuration.

Does anyone knows how to acelerate/decelerate mouse?

Code:
xinput list-props 10

Device 'PixArt USB Optical Mouse':
        Device Enabled (137):   1
        Coordinate Transformation Matrix (138): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Natural Scrolling Enabled (274):       0
        libinput Natural Scrolling Enabled Default (275):       0
        libinput Scroll Methods Available (276):        0, 0, 1
        libinput Scroll Method Enabled (277):   0, 0, 0
        libinput Scroll Method Enabled Default (278):   0, 0, 0
        libinput Button Scrolling Button (279): 2
        libinput Button Scrolling Button Default (280): 2
        libinput Middle Emulation Enabled (281):        0
        libinput Middle Emulation Enabled Default (282):        0
        libinput Accel Speed (283):     0.000000
        libinput Accel Speed Default (284):     0.000000
        libinput Accel Profiles Available (285):        1, 1
        libinput Accel Profile Enabled (286):   1, 0
        libinput Accel Profile Enabled Default (287):   1, 0
        libinput Left Handed Enabled (288):     0
        libinput Left Handed Enabled Default (289):     0
        libinput Send Events Modes Available (259):     1, 0
        libinput Send Events Mode Enabled (260):        0, 0
        libinput Send Events Mode Enabled Default (261):        0, 0
        Device Node (262):      "/dev/input/event4"
        Device Product ID (263):        2362, 9488
        libinput Drag Lock Buttons (290):       <no items>
        libinput Horizontal Scroll Enabled (291):       1
 
OP
nunotex

nunotex

Member

Reaction score: 11
Messages: 54

Found it:

xinput set-prop 10 "libinput Accel Speed" -0.7

man 4 libinput:
Option "AccelSpeed" "float"
Sets the pointer acceleration speed within the range [-1, 1]
 

freebsd_noob

Active Member

Reaction score: 64
Messages: 177

After upgrading to latest xorg-server, my mouse was waaaay too slow. This worked beautifully.
Thanks!
 
Top