You are not logged in.

#1 2023-01-17 10:38:41

Termy
Member
Registered: 2019-11-06
Posts: 11

[solved] xorg config file to change mouse sensitivity does not take ef

Hi there,
i'm trying to make a change to the AccelSpeed for my couch-keyboard/touchpad-combo permanent.
I can't use the normal mouse sensitivity as that would also affect my desktop mouse.
Using xinput set-prop 17 305 0.3 (17 being the device and 305 being libinput Accel Speed (305): in the output of xinput list-props 17) works as expected.

Maybe someone can spot where i made an error so that the Option in the .conf file doesn't take effect?
The libinput manpage (https://www.mankier.com/4/libinput ) lists different definitions of the Option "AccelSpeed" and the Property "Accel Speed" - i was told in chat that those should be the same, but that's the only point i can see where i may be going wrong?
Current state:
I've created the file /etc/X11/xorg.conf.d/99-xinput-keyboard-touchpad.conf  with content:

Section "InputClass"
  Identifier "touchpad-sens"
  MatchDriver "libinput"
  MatchIsPointer "true"
  MatchProduct "2.4G Receiver"
  Option "AccelSpeed" "0.3"
EndSection

I've tried different combinations of MatchVendor and MatchProduct:

  MatchVendor "Compx"
  MatchProduct "2.4G Receiver"

and

  MatchVendor "Compx"

And the one in the first/current block.

udevadm info --query=property --name=/dev/input/event3 gives me:

DEVPATH=/devices/pci0000:00/0000:00:08.1/0000:12:00.3/usb7/7-2/7-2:1.1/0003:25A7:FA64.0002/input/input3/event3
DEVNAME=/dev/input/event3
MAJOR=13
MINOR=67
SUBSYSTEM=input
USEC_INITIALIZED=56408566
ID_INPUT=1
ID_INPUT_MOUSE=1
ID_BUS=usb
ID_MODEL=2.4G_Receiver
ID_MODEL_ENC=2.4G\x20Receiver
ID_MODEL_ID=fa64
ID_SERIAL=Compx_2.4G_Receiver
ID_VENDOR=Compx
ID_VENDOR_ENC=Compx
ID_VENDOR_ID=25a7
ID_REVISION=0618
ID_TYPE=hid
ID_USB_MODEL=2.4G_Receiver
ID_USB_MODEL_ENC=2.4G\x20Receiver
ID_USB_MODEL_ID=fa64
ID_USB_SERIAL=Compx_2.4G_Receiver
ID_USB_VENDOR=Compx
ID_USB_VENDOR_ENC=Compx
ID_USB_VENDOR_ID=25a7
ID_USB_REVISION=0618
ID_USB_TYPE=hid
ID_USB_INTERFACES=:030101:030102:
ID_USB_INTERFACE_NUM=01
ID_USB_DRIVER=usbhid
ID_PATH=pci-0000:12:00.3-usb-0:2:1.1
ID_PATH_TAG=pci-0000_12_00_3-usb-0_2_1_1
LIBINPUT_DEVICE_GROUP=3/25a7/fa64:usb-0000:12:00.3-2
DEVLINKS=/dev/input/by-id/usb-Compx_2.4G_Receiver-if01-event-mouse /dev/input/by-path/pci-0000:12:00.3-usb-0:2:1.1-event-mouse

And just to be complete, xinput list-props 17 yields:

Device 'Compx 2.4G Receiver Mouse':
        Device Enabled (161):   1
        Coordinate Transformation Matrix (163): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Natural Scrolling Enabled (291):       0
        libinput Natural Scrolling Enabled Default (292):       0
        libinput Scroll Methods Available (296):        0, 0, 1
        libinput Scroll Method Enabled (297):   0, 0, 0
        libinput Scroll Method Enabled Default (298):   0, 0, 0
        libinput Button Scrolling Button (299): 2
        libinput Button Scrolling Button Default (300): 2
        libinput Button Scrolling Button Lock Enabled (301):    0
        libinput Button Scrolling Button Lock Enabled Default (302):    0
        libinput Middle Emulation Enabled (303):        0
        libinput Middle Emulation Enabled Default (304):        0
        libinput Accel Speed (305):     -0.400000
        libinput Accel Speed Default (306):     0.000000
        libinput Accel Profiles Available (307):        1, 1
        libinput Accel Profile Enabled (308):   0, 1
        libinput Accel Profile Enabled Default (309):   1, 0
        libinput Left Handed Enabled (310):     0
        libinput Left Handed Enabled Default (311):     0
        libinput Send Events Modes Available (276):     1, 0
        libinput Send Events Mode Enabled (277):        0, 0
        libinput Send Events Mode Enabled Default (278):        0, 0
        Device Node (279):      "/dev/input/event3"
        Device Product ID (280):        9639, 64100
        libinput Drag Lock Buttons (293):       <no items>
        libinput Horizontal Scroll Enabled (294):       1
        libinput Scrolling Pixel Distance (312):        15
        libinput Scrolling Pixel Distance Default (313):        15
        libinput High Resolution Wheel Scroll Enabled (295):    1

Thanks in advance for any help or hints!

Last edited by Termy (2023-01-18 13:54:03)

Offline

#2 2023-01-17 13:19:13

seth
Member
Registered: 2012-09-03
Posts: 35,051

Re: [solved] xorg config file to change mouse sensitivity does not take ef

Post your xorg log, https://wiki.archlinux.org/title/Xorg#General and for a sanity check: can you adjust the accelspeed w/ xinput in the desired way?

Offline

#3 2023-01-17 13:56:11

Termy
Member
Registered: 2019-11-06
Posts: 11

Re: [solved] xorg config file to change mouse sensitivity does not take ef

seth wrote:

http://ix.io/4lv4
It seems that it is set right in there if i don't misinterpret this:

[    62.098] (**) Option "AccelSpeed" "0.3"

but if i do a xinput list-props 17 after reboot, it shows

libinput Accel Speed (305):     -0.400000
seth wrote:

and for a sanity check: can you adjust the accelspeed w/ xinput in the desired way?

yes, using xinput set-prop 17 305 0.3 with different values (0.3 is just the one i find most comfortable) alters the pointer speed as desired. From the man pages it sounded like AccelSpeed could also be Mouse Acceleration, but at least with xinput set-prop it clearly alters the pointer speed, with no acceleration present (set to flat in KDE mouse-settings and also verified by pointer movement not affected by how fast i slide over the diagonal of the touchpad)

Offline

#4 2023-01-17 14:04:10

seth
Member
Registered: 2012-09-03
Posts: 35,051

Re: [solved] xorg config file to change mouse sensitivity does not take ef

[    62.098] (**) Option "AccelSpeed" "0.3"
[    62.099] (**) Option "AccelerationScheme" "none"
[    62.099] (**) Compx 2.4G Receiver Mouse: (accel) selected scheme none/0
[    62.099] (**) Compx 2.4G Receiver Mouse: (accel) acceleration factor: 2.000
[    62.099] (**) Compx 2.4G Receiver Mouse: (accel) acceleration threshold: 4
        libinput Accel Profiles Available (307):        1, 1
        libinput Accel Profile Enabled (308):   0, 1
        libinput Accel Profile Enabled Default (309):   1, 0

Try https://man.archlinux.org/man/extra/xf8 … .en#Option and

set to flat in KDE mouse-settings

"startx xterm" to avoid KDE steamrolling over the config.

Offline

#5 2023-01-18 10:03:56

Termy
Member
Registered: 2019-11-06
Posts: 11

Re: [solved] xorg config file to change mouse sensitivity does not take ef

even with the added

  Option "AccelProfile" "flat"

i still get

[    38.895] (**) Compx 2.4G Receiver Mouse: (accel) selected scheme none/0

in the xorg log.

startx xterm starts and quits again immediately ('unknown xterm' or something along those lines - xterm is installed and launches though) if started from tty2 - i doubt i have to change to multi-user target, do i?

Last edited by Termy (2023-01-18 10:05:02)

Offline

#6 2023-01-18 11:03:59

seth
Member
Registered: 2012-09-03
Posts: 35,051

Re: [solved] xorg config file to change mouse sensitivity does not take ef

i doubt i have to disable sddm and launch it from a pure shell?

You cannot run startx from a running X11 server, and you can try "startx /usr/bin/xterm"

Offline

#7 2023-01-18 12:55:00

Termy
Member
Registered: 2019-11-06
Posts: 11

Re: [solved] xorg config file to change mouse sensitivity does not take ef

Thank you, "startx /usr/bin/xterm" worked - and in there, xinput list-props 17 really showed the desired 0.3 AccelSpeed.
So it really seems Plasma is doing something after the xorg rules are applied - or is there something else that could cause that?

Sounds similar to https://bugs.kde.org/show_bug.cgi?id=339743 though, so i probably will create a new bug/research if there are similar bugreports that are more active.

Thanks for you help!

Offline

#8 2023-01-18 13:38:58

seth
Member
Registered: 2012-09-03
Posts: 35,051

Re: [solved] xorg config file to change mouse sensitivity does not take ef

or is there something else that could cause that

Excluding cosmic rays and some god hating you for no reason?
Unlikely.
SDDM might be, but I doubt it (you could launch an openbox session from there and check the values)

It's probably less a "honoring" issue and more a "steamrolling" issue.

Offline

#9 2023-01-18 13:53:27

Termy
Member
Registered: 2019-11-06
Posts: 11

Re: [solved] xorg config file to change mouse sensitivity does not take ef

Given my luck with weather when i have time to go flying, i wouldn't rule out 'god hating me for no reason' wink
But i found some more KDE bugreports that point into that direction, so i agree that it's unlikely that that is not the culprit.
I'll add info if something comes up there.
Thanks again for the time being!

Offline

Board footer

Powered by FluxBB