Xorg mouse acceleration config

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ekulz
Level 1
Level 1
Posts: 1
Joined: Fri Jul 23, 2021 6:00 pm

Xorg mouse acceleration config

Post by ekulz »

Hey,

I've been applying an xinput command that runs on startup to adjust my mouse accel settings on boot. I also stored the script as an alias so I can reapply whenever I remove and reconnect the mouse.

Code: Select all

xinput --set-prop "Kingsis Peripherals ZOWIE Gaming mouse" "libinput Accel Speed" -0.8
I am trying to switch to an xorg config so I don't have to run the above command each time I remove and reconnect the mouse.

My conf file seems to be read and applied, but then somehow gets reset. Does anyone know what's going on here? It looks like something strange is going on where the InputClass is being applied successfully, then tries again and fails, resetting the settings back to default.

I've tried the conf file in two locations (/usr/share/X11/xorg.conf.d and /etc/X11/xorg.conf.d) thinking it was an ordering thing, but had the same result.

Config (90-zowie-mouse.conf):

Code: Select all

Section "InputClass"
	Identifier "Kingsis Peripherals ZOWIE Gaming mouse"
	MatchProduct "ZOWIE"
	Driver "libinput"
	Option "AccelSpeed" "-0.8"
EndSection
Relevant xorg log output:

Code: Select all

...
[  1586.643] (II) config/udev: Adding input device Kingsis Peripherals ZOWIE Gaming mouse (/dev/input/event6)
[  1586.643] (**) Kingsis Peripherals ZOWIE Gaming mouse: Applying InputClass "libinput pointer catchall"
[  1586.643] (**) Kingsis Peripherals ZOWIE Gaming mouse: Applying InputClass "Kingsis Peripherals ZOWIE Gaming mouse"
[  1586.643] (II) Using input driver 'libinput' for 'Kingsis Peripherals ZOWIE Gaming mouse'
[  1586.643] (**) Kingsis Peripherals ZOWIE Gaming mouse: always reports core events
[  1586.643] (**) Option "Device" "/dev/input/event6"
[  1586.643] (**) Option "_source" "server/udev"
[  1586.702] (II) event6  - Kingsis Peripherals ZOWIE Gaming mouse: is tagged by udev as: Mouse
[  1586.703] (II) event6  - Kingsis Peripherals ZOWIE Gaming mouse: device is a pointer
[  1586.703] (II) event6  - Kingsis Peripherals ZOWIE Gaming mouse: device removed
[  1586.742] (**) Option "AccelSpeed" "-0.8"
[  1586.742] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:2b:00.3/usb3/3-4/3-4.2/3-4.2:1.0/0003:1AF3:0001.0004/input/input6/event6"
[  1586.742] (II) XINPUT: Adding extended input device "Kingsis Peripherals ZOWIE Gaming mouse" (type: MOUSE, id 13)
[  1586.742] (**) Option "AccelerationScheme" "none"
[  1586.742] (**) Kingsis Peripherals ZOWIE Gaming mouse: (accel) selected scheme none/0
[  1586.742] (**) Kingsis Peripherals ZOWIE Gaming mouse: (accel) acceleration factor: 2.000
[  1586.742] (**) Kingsis Peripherals ZOWIE Gaming mouse: (accel) acceleration threshold: 4
[  1586.802] (II) event6  - Kingsis Peripherals ZOWIE Gaming mouse: is tagged by udev as: Mouse
[  1586.802] (II) event6  - Kingsis Peripherals ZOWIE Gaming mouse: device is a pointer
[  1586.803] (II) config/udev: Adding input device Kingsis Peripherals ZOWIE Gaming mouse (/dev/input/mouse0)
[  1586.803] (**) Kingsis Peripherals ZOWIE Gaming mouse: Applying InputClass "Kingsis Peripherals ZOWIE Gaming mouse"
[  1586.803] (II) Using input driver 'libinput' for 'Kingsis Peripherals ZOWIE Gaming mouse'
[  1586.803] (**) Kingsis Peripherals ZOWIE Gaming mouse: always reports core events
[  1586.803] (**) Option "Device" "/dev/input/mouse0"
[  1586.803] (**) Option "_source" "server/udev"
[  1586.850] (II) mouse0  - failed to create input device '/dev/input/mouse0'.
[  1586.850] (EE) libinput: Kingsis Peripherals ZOWIE Gaming mouse: Failed to create a device for /dev/input/mouse0
[  1586.850] (EE) PreInit returned 2 for "Kingsis Peripherals ZOWIE Gaming mouse"
[  1586.850] (II) UnloadModule: "libinput"
...
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Hardware Support”