You are not logged in.

#1 2015-08-04 23:11:07

xlightningz
Member
Registered: 2015-08-04
Posts: 8

Mouse Configuration Options in Xorg .conf files not taking effect

Hi everyone,

I'm trying to configure my mouse acceleration settings, as detailed here. I've found the settings I like using xinput, but when I try to make them permanent in the xorg configuration files, it doesn't seem to have any effect.

Here are my two .conf files:

/etc/X11/xorg.conf.d/50-mouse-acceleration.conf

Section "InputClass"
	Identifier "Mouse Acceleration"
	MatchIsPointer "yes"
	Option "AccelerationProfile" "-1"
EndSection

/etc/X11/xorg.conf.d/50-mouse-deceleration.conf

Section "InputClass"
	Identifier "Mouse Deceleration"
	MatchIsPointer "yes"
	Option "Device Accel Constant Deceleration" "0.6"
EndSection

After booting, using xinput list-props reveals that the Acceleration Profile is set to -1, but constant deceleration remains at the default 1.0.

Possibly worth noting is that, for some reason, `xinput list` has a duplicate mouse device.

xinput list

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex                    	id=12	[slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex                    	id=13	[slave  pointer  (2)]

Using xinput --set-prop with id 12 or id 13 seems to change the setting for both ids.

My full Xorg.0.log file can be viewed here.

I believe the most relevant section is the following (beginning on line 615):

[     9.023] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/event19)
[     9.023] (**) Razer Razer Naga Hex: Applying InputClass "evdev pointer catchall"
[     9.023] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Acceleration"
[     9.023] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Deceleration"
[     9.023] (II) systemd-logind: got fd for /dev/input/event19 13:83 fd 25 paused 0
[     9.023] (II) Using input driver 'evdev' for 'Razer Razer Naga Hex'
[     9.023] (**) Razer Razer Naga Hex: always reports core events
[     9.023] (**) evdev: Razer Razer Naga Hex: Device: "/dev/input/event19"
[     9.023] (--) evdev: Razer Razer Naga Hex: Vendor 0x1532 Product 0x36
[     9.023] (--) evdev: Razer Razer Naga Hex: Found 9 mouse buttons
[     9.023] (--) evdev: Razer Razer Naga Hex: Found scroll wheel(s)
[     9.023] (--) evdev: Razer Razer Naga Hex: Found relative axes
[     9.023] (--) evdev: Razer Razer Naga Hex: Found x and y relative axes
[     9.023] (II) evdev: Razer Razer Naga Hex: Configuring as mouse
[     9.023] (II) evdev: Razer Razer Naga Hex: Adding scrollwheel support
[     9.023] (**) evdev: Razer Razer Naga Hex: YAxisMapping: buttons 4 and 5
[     9.023] (**) evdev: Razer Razer Naga Hex: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     9.023] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/0003:1532:0036.0001/input/input22/event19"
[     9.023] (II) XINPUT: Adding extended input device "Razer Razer Naga Hex" (type: MOUSE, id 12)
[     9.023] (II) evdev: Razer Razer Naga Hex: initialized for relative axes.
[     9.023] (**) Razer Razer Naga Hex: (accel) keeping acceleration scheme 1
[     9.023] (**) Option "AccelerationProfile" "-1"
[     9.023] (**) Razer Razer Naga Hex: (accel) acceleration profile -1
[     9.023] (**) Razer Razer Naga Hex: (accel) acceleration factor: 2.000
[     9.023] (**) Razer Razer Naga Hex: (accel) acceleration threshold: 4
[     9.024] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/mouse0)
[     9.024] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Acceleration"
[     9.024] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Deceleration"
[     9.024] (II) No input driver specified, ignoring this device.
[     9.024] (II) This device may have been added with another device file.
[     9.024] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/event21)
[     9.024] (**) Razer Razer Naga Hex: Applying InputClass "evdev keyboard catchall"
[     9.024] (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 26 paused 0
[     9.024] (II) Using input driver 'evdev' for 'Razer Razer Naga Hex'
[     9.024] (**) Razer Razer Naga Hex: always reports core events
[     9.024] (**) evdev: Razer Razer Naga Hex: Device: "/dev/input/event21"
[     9.024] (--) evdev: Razer Razer Naga Hex: Vendor 0x1532 Product 0x36
[     9.024] (--) evdev: Razer Razer Naga Hex: Found 1 mouse buttons
[     9.024] (--) evdev: Razer Razer Naga Hex: Found scroll wheel(s)
[     9.024] (--) evdev: Razer Razer Naga Hex: Found relative axes
[     9.024] (II) evdev: Razer Razer Naga Hex: Forcing relative x/y axes to exist.
[     9.024] (--) evdev: Razer Razer Naga Hex: Found absolute axes
[     9.024] (II) evdev: Razer Razer Naga Hex: Forcing absolute x/y axes to exist.
[     9.024] (--) evdev: Razer Razer Naga Hex: Found keys
[     9.024] (II) evdev: Razer Razer Naga Hex: Configuring as mouse
[     9.024] (II) evdev: Razer Razer Naga Hex: Configuring as keyboard
[     9.024] (II) evdev: Razer Razer Naga Hex: Adding scrollwheel support
[     9.024] (**) evdev: Razer Razer Naga Hex: YAxisMapping: buttons 4 and 5
[     9.024] (**) evdev: Razer Razer Naga Hex: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     9.024] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.1/0003:1532:0036.0002/input/input24/event21"
[     9.024] (II) XINPUT: Adding extended input device "Razer Razer Naga Hex" (type: KEYBOARD, id 13)
[     9.024] (**) Option "xkb_rules" "evdev"
[     9.024] (**) Option "xkb_model" "pc104"
[     9.024] (**) Option "xkb_layout" "us"
[     9.024] (II) evdev: Razer Razer Naga Hex: initialized for relative axes.
[     9.024] (WW) evdev: Razer Razer Naga Hex: ignoring absolute axes.
[     9.024] (**) Razer Razer Naga Hex: (accel) keeping acceleration scheme 1
[     9.024] (**) Razer Razer Naga Hex: (accel) acceleration profile 0
[     9.024] (**) Razer Razer Naga Hex: (accel) acceleration factor: 2.000
[     9.024] (**) Razer Razer Naga Hex: (accel) acceleration threshold: 4

It looks to me like it applies the configuration files once, and succeeds, but fails when it tries again (for the 2nd identical pointer in xinput?).

I hope this isn't too much information, and I can certainly provide anything else that's needed. I'd truly appreciate any help you can give me in figuring this out.

Thanks,
xlightningz

Offline

#2 2015-08-05 09:28:14

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mouse Configuration Options in Xorg .conf files not taking effect

xlightningz wrote:

/etc/X11/xorg.conf.d/50-mouse-acceleration.conf

Section "InputClass"
	Identifier "Mouse Acceleration"
	MatchIsPointer "yes"
	Option "AccelerationProfile" "-1"
EndSection

/etc/X11/xorg.conf.d/50-mouse-deceleration.conf

Section "InputClass"
	Identifier "Mouse Deceleration"
	MatchIsPointer "yes"
	Option "Device Accel Constant Deceleration" "0.6"
EndSection

After booting, using xinput list-props reveals that the Acceleration Profile is set to -1, but constant deceleration remains at the default 1.0.
...
It looks to me like it applies the configuration files once, and succeeds, but fails when it tries again (for the 2nd identical pointer in xinput?).

From what I see in the Xorg log file, your mouse is first treated rightly as a mouse and your conf files are used,
and secondly it is treated as a keyboard (I don't know why);
but, as the configuration for keyboards are without effect for the mouse, the preceding configurations as a mouse are kept.

If only the first conf file works, that's because the option you give in the second conf file is not correct;

from the link you mentioned, there are examples of conf files and commands to use:

/etc/X11/xorg.conf.d/50-mouse-deceleration.conf
Section "InputClass"
	Identifier "My Mouse"
	MatchIsPointer "yes"
# some curved deceleration
#	Option "AdaptiveDeceleration" "2"
# linear deceleration (mouse speed reduction)
	Option "ConstantDeceleration" "2"
EndSection

and

$ xinput list-props 9
Device 'mouse brand':
       Device Enabled (121):   1
       Device Accel Profile (240):     0
       Device Accel Constant Deceleration (241):       1.000000
       Device Accel Adaptive Deceleration (243):       1.000000
       Device Accel Velocity Scaling (244):    10.000000

you can see that the line:

       Device Accel Constant Deceleration (241):       1.000000

is written like that in the conf file:

	Option "ConstantDeceleration" "2"

So in your case I think you should have:
/etc/X11/xorg.conf.d/50-mouse-deceleration.conf

Section "InputClass"
	Identifier "Mouse Deceleration"
	MatchIsPointer "yes"
	Option "ConstantDeceleration" "0.6"
EndSection

I think you can ignore the second detection of the mouse as a keyboard, as seemingly it is without effect.

Last edited by berbae (2015-08-05 14:18:15)

Offline

#3 2015-08-05 20:31:05

xlightningz
Member
Registered: 2015-08-04
Posts: 8

Re: Mouse Configuration Options in Xorg .conf files not taking effect

Thank you for the reply! I corrected the line in the .conf file, but the option still doesn't seem to be taking effect. The new full log can be seen here, with relevant lines below. (beginning on line 615)

[     9.752] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/event20)
[     9.752] (**) Razer Razer Naga Hex: Applying InputClass "evdev pointer catchall"
[     9.752] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Acceleration"
[     9.752] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Deceleration"
[     9.752] (II) systemd-logind: got fd for /dev/input/event20 13:84 fd 25 paused 0
[     9.752] (II) Using input driver 'evdev' for 'Razer Razer Naga Hex'
[     9.752] (**) Razer Razer Naga Hex: always reports core events
[     9.752] (**) evdev: Razer Razer Naga Hex: Device: "/dev/input/event20"
[     9.752] (--) evdev: Razer Razer Naga Hex: Vendor 0x1532 Product 0x36
[     9.752] (--) evdev: Razer Razer Naga Hex: Found 9 mouse buttons
[     9.752] (--) evdev: Razer Razer Naga Hex: Found scroll wheel(s)
[     9.752] (--) evdev: Razer Razer Naga Hex: Found relative axes
[     9.752] (--) evdev: Razer Razer Naga Hex: Found x and y relative axes
[     9.752] (II) evdev: Razer Razer Naga Hex: Configuring as mouse
[     9.752] (II) evdev: Razer Razer Naga Hex: Adding scrollwheel support
[     9.752] (**) evdev: Razer Razer Naga Hex: YAxisMapping: buttons 4 and 5
[     9.752] (**) evdev: Razer Razer Naga Hex: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     9.752] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0/0003:1532:0036.0001/input/input23/event20"
[     9.752] (II) XINPUT: Adding extended input device "Razer Razer Naga Hex" (type: MOUSE, id 12)
[     9.752] (II) evdev: Razer Razer Naga Hex: initialized for relative axes.
[     9.752] (**) Razer Razer Naga Hex: (accel) keeping acceleration scheme 1
[     9.752] (**) Option "ConstantDeceleration" "0.6"
[     9.752] (**) Option "AccelerationProfile" "-1"
[     9.753] (**) Razer Razer Naga Hex: (accel) acceleration profile -1
[     9.753] (**) Razer Razer Naga Hex: (accel) acceleration factor: 2.000
[     9.753] (**) Razer Razer Naga Hex: (accel) acceleration threshold: 4
[     9.753] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/mouse0)
[     9.753] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Acceleration"
[     9.753] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Deceleration"
[     9.753] (II) No input driver specified, ignoring this device.
[     9.753] (II) This device may have been added with another device file.
[     9.753] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/event21)
[     9.753] (**) Razer Razer Naga Hex: Applying InputClass "evdev keyboard catchall"
[     9.754] (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 26 paused 0
[     9.754] (II) Using input driver 'evdev' for 'Razer Razer Naga Hex'
[     9.754] (**) Razer Razer Naga Hex: always reports core events
[     9.754] (**) evdev: Razer Razer Naga Hex: Device: "/dev/input/event21"
[     9.754] (--) evdev: Razer Razer Naga Hex: Vendor 0x1532 Product 0x36
[     9.754] (--) evdev: Razer Razer Naga Hex: Found 1 mouse buttons
[     9.754] (--) evdev: Razer Razer Naga Hex: Found scroll wheel(s)
[     9.754] (--) evdev: Razer Razer Naga Hex: Found relative axes
[     9.754] (II) evdev: Razer Razer Naga Hex: Forcing relative x/y axes to exist.
[     9.754] (--) evdev: Razer Razer Naga Hex: Found absolute axes
[     9.754] (II) evdev: Razer Razer Naga Hex: Forcing absolute x/y axes to exist.
[     9.754] (--) evdev: Razer Razer Naga Hex: Found keys
[     9.754] (II) evdev: Razer Razer Naga Hex: Configuring as mouse
[     9.754] (II) evdev: Razer Razer Naga Hex: Configuring as keyboard
[     9.754] (II) evdev: Razer Razer Naga Hex: Adding scrollwheel support
[     9.754] (**) evdev: Razer Razer Naga Hex: YAxisMapping: buttons 4 and 5
[     9.754] (**) evdev: Razer Razer Naga Hex: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     9.754] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:1532:0036.0002/input/input24/event21"
[     9.754] (II) XINPUT: Adding extended input device "Razer Razer Naga Hex" (type: KEYBOARD, id 13)
[     9.754] (**) Option "xkb_rules" "evdev"
[     9.754] (**) Option "xkb_model" "pc104"
[     9.754] (**) Option "xkb_layout" "us"
[     9.754] (II) evdev: Razer Razer Naga Hex: initialized for relative axes.
[     9.754] (WW) evdev: Razer Razer Naga Hex: ignoring absolute axes.
[     9.754] (**) Razer Razer Naga Hex: (accel) keeping acceleration scheme 1
[     9.754] (**) Razer Razer Naga Hex: (accel) acceleration profile 0
[     9.754] (**) Razer Razer Naga Hex: (accel) acceleration factor: 2.000
[     9.754] (**) Razer Razer Naga Hex: (accel) acceleration threshold: 4

It looks like Xorg is reading my mouse input as three separate devices (The mouse has number pad buttons on it, by the way, which explains the keyboard I believe).

Ignoring the keyboard, there are still two separate pointer inputs. The first seems to have the configuration options successfully applied, but it's added on /dev/input/event20, while the second input that doesn't get the options is added on /dev/input/mouse0. Could this explain the problem I'm having?

As always, I'm very grateful for any help in resolving this issue.

Thanks,
xlightningz

Offline

#4 2015-08-05 21:37:11

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mouse Configuration Options in Xorg .conf files not taking effect

OK I understand now why your mouse is seen as a mouse and as a keyboard input device.

In fact looking again at the logs you provided, I now see that the second detection of your mouse as a keyboard overwrites the configuration of the first as a mouse. Previously I thought that it was kept, but it's not the case;
that sentence 'After booting, using xinput list-props reveals that the Acceleration Profile is set to -1' made me think that your first conf file was applied and was not overwritten after that.
But after the detection as a keyboard, there is this line in the logs which tells otherwise:

[     9.024] (**) Razer Razer Naga Hex: (accel) acceleration profile 0

So I suggest that you use your two conf files for the second detection/configuration of the mouse as a keyboard:

/etc/X11/xorg.conf.d/50-mouse-acceleration.conf

Section "InputClass"
	Identifier "Mouse Acceleration"
        MatchIsKeyboard        "yes"
	Option "AccelerationProfile" "-1"
EndSection

/etc/X11/xorg.conf.d/50-mouse-deceleration.conf

Section "InputClass"
	Identifier "Mouse Deceleration"
        MatchIsKeyboard        "yes"
	Option "ConstantDeceleration" "0.6"
EndSection

So the last detection/configuration should hopefully persist.

About these messages:

[     9.753] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/mouse0)
...
[     9.753] (II) No input driver specified, ignoring this device.
[     9.753] (II) This device may have been added with another device file.

This is not another detection event of the mouse, but a udev creation;
I have also these lines in my Xorg log file and they are without effect.

Last edited by berbae (2015-08-06 07:56:08)

Offline

#5 2015-08-05 23:47:36

xlightningz
Member
Registered: 2015-08-04
Posts: 8

Re: Mouse Configuration Options in Xorg .conf files not taking effect

Thank you for the suggestion, but it doesn't seem to work for me. Once again, the new full Xorg log can be viewed here, with relevant lines below... (Starts on line 627)

[    14.291] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/event19)
[    14.291] (**) Razer Razer Naga Hex: Applying InputClass "evdev pointer catchall"
[    14.291] (II) systemd-logind: got fd for /dev/input/event19 13:83 fd 25 paused 0
[    14.291] (II) Using input driver 'evdev' for 'Razer Razer Naga Hex'
[    14.291] (**) Razer Razer Naga Hex: always reports core events
[    14.291] (**) evdev: Razer Razer Naga Hex: Device: "/dev/input/event19"
[    14.291] (--) evdev: Razer Razer Naga Hex: Vendor 0x1532 Product 0x36
[    14.291] (--) evdev: Razer Razer Naga Hex: Found 9 mouse buttons
[    14.291] (--) evdev: Razer Razer Naga Hex: Found scroll wheel(s)
[    14.291] (--) evdev: Razer Razer Naga Hex: Found relative axes
[    14.291] (--) evdev: Razer Razer Naga Hex: Found x and y relative axes
[    14.291] (II) evdev: Razer Razer Naga Hex: Configuring as mouse
[    14.291] (II) evdev: Razer Razer Naga Hex: Adding scrollwheel support
[    14.291] (**) evdev: Razer Razer Naga Hex: YAxisMapping: buttons 4 and 5
[    14.291] (**) evdev: Razer Razer Naga Hex: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    14.291] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0/0003:1532:0036.0001/input/input22/event19"
[    14.291] (II) XINPUT: Adding extended input device "Razer Razer Naga Hex" (type: MOUSE, id 12)
[    14.291] (II) evdev: Razer Razer Naga Hex: initialized for relative axes.
[    14.291] (**) Razer Razer Naga Hex: (accel) keeping acceleration scheme 1
[    14.291] (**) Razer Razer Naga Hex: (accel) acceleration profile 0
[    14.291] (**) Razer Razer Naga Hex: (accel) acceleration factor: 2.000
[    14.291] (**) Razer Razer Naga Hex: (accel) acceleration threshold: 4
[    14.291] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/mouse0)
[    14.291] (II) No input driver specified, ignoring this device.
[    14.291] (II) This device may have been added with another device file.
[    14.292] (II) config/udev: Adding input device Razer Razer Naga Hex (/dev/input/event21)
[    14.292] (**) Razer Razer Naga Hex: Applying InputClass "evdev keyboard catchall"
[    14.292] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Acceleration"
[    14.292] (**) Razer Razer Naga Hex: Applying InputClass "Mouse Deceleration"
[    14.292] (II) systemd-logind: got fd for /dev/input/event21 13:85 fd 26 paused 0
[    14.292] (II) Using input driver 'evdev' for 'Razer Razer Naga Hex'
[    14.292] (**) Razer Razer Naga Hex: always reports core events
[    14.292] (**) evdev: Razer Razer Naga Hex: Device: "/dev/input/event21"
[    14.292] (--) evdev: Razer Razer Naga Hex: Vendor 0x1532 Product 0x36
[    14.292] (--) evdev: Razer Razer Naga Hex: Found 1 mouse buttons
[    14.292] (--) evdev: Razer Razer Naga Hex: Found scroll wheel(s)
[    14.292] (--) evdev: Razer Razer Naga Hex: Found relative axes
[    14.292] (II) evdev: Razer Razer Naga Hex: Forcing relative x/y axes to exist.
[    14.292] (--) evdev: Razer Razer Naga Hex: Found absolute axes
[    14.292] (II) evdev: Razer Razer Naga Hex: Forcing absolute x/y axes to exist.
[    14.292] (--) evdev: Razer Razer Naga Hex: Found keys
[    14.292] (II) evdev: Razer Razer Naga Hex: Configuring as mouse
[    14.292] (II) evdev: Razer Razer Naga Hex: Configuring as keyboard
[    14.292] (II) evdev: Razer Razer Naga Hex: Adding scrollwheel support
[    14.292] (**) evdev: Razer Razer Naga Hex: YAxisMapping: buttons 4 and 5
[    14.292] (**) evdev: Razer Razer Naga Hex: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    14.292] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:1532:0036.0002/input/input24/event21"
[    14.292] (II) XINPUT: Adding extended input device "Razer Razer Naga Hex" (type: KEYBOARD, id 13)
[    14.292] (**) Option "xkb_rules" "evdev"
[    14.292] (**) Option "xkb_model" "pc104"
[    14.292] (**) Option "xkb_layout" "us"
[    14.293] (II) evdev: Razer Razer Naga Hex: initialized for relative axes.
[    14.293] (WW) evdev: Razer Razer Naga Hex: ignoring absolute axes.
[    14.293] (**) Razer Razer Naga Hex: (accel) keeping acceleration scheme 1
[    14.293] (**) Option "ConstantDeceleration" "0.6"
[    14.293] (**) Option "AccelerationProfile" "-1"
[    14.293] (**) Razer Razer Naga Hex: (accel) acceleration profile -1
[    14.293] (**) Razer Razer Naga Hex: (accel) acceleration factor: 2.000
[    14.293] (**) Razer Razer Naga Hex: (accel) acceleration threshold: 4

I should note that trying this made it incredibly obvious that, somehow, the option "AccelerationProfile" was taking effect with the old .conf files. With the new config files, it stays at the default 0, instead of -1, and it's very very noticeable.

Any ideas?

I am still really appreciating the help!

Thanks,
xlightningz

Offline

#6 2015-08-06 08:16:48

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mouse Configuration Options in Xorg .conf files not taking effect

Can you post the output of the command 'xinput list-props' when the conf files use MatchIsPointer;
then when the conf files use MatchIsKeyboard.
It is to clarify when the option "AccelerationProfile" is set to the right value.
I am not sure if the acceleration profile is good in your post #3, then not good in your last post.

Also can you tell if you use the keyboard feature of your mouse, or if it could be deactivated.

Offline

#7 2015-08-06 18:31:16

xlightningz
Member
Registered: 2015-08-04
Posts: 8

Re: Mouse Configuration Options in Xorg .conf files not taking effect

Sure. Sorry if I haven't been clear before.

With "MatchIsKeyboard":

$ xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex                    	id=12	[slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex                    	id=13	[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)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Microsoft® LifeCam HD-3000             	id=9	[slave  keyboard (3)]
    ↳ Apple Inc. Apple Keyboard               	id=10	[slave  keyboard (3)]
    ↳ Apple Inc. Apple Keyboard               	id=11	[slave  keyboard (3)]

$ xinput list-props 12
Device 'Razer Razer Naga Hex':
	Device Enabled (143):	1
	Coordinate Transformation Matrix (145):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (268):	0
	Device Accel Constant Deceleration (269):	1.000000
	Device Accel Adaptive Deceleration (270):	1.000000
	Device Accel Velocity Scaling (271):	10.000000
	Device Product ID (261):	5426, 54
	Device Node (262):	"/dev/input/event19"
	Evdev Axis Inversion (272):	0, 0
	Evdev Axes Swap (274):	0
	Axis Labels (275):	"Rel X" (153), "Rel Y" (154), "Rel Vert Wheel" (267)
	Button Labels (276):	"Button Left" (146), "Button Middle" (147), "Button Right" (148), "Button Wheel Up" (149), "Button Wheel Down" (150), "Button Horiz Wheel Left" (151), "Button Horiz Wheel Right" (152), "Button Side" (265), "Button Extra" (266), "Button Unknown" (264), "Button Unknown" (264), "Button Unknown" (264), "Button Unknown" (264)
	Evdev Scrolling Distance (277):	1, 1, 1
	Evdev Middle Button Emulation (278):	0
	Evdev Middle Button Timeout (279):	50
	Evdev Third Button Emulation (280):	0
	Evdev Third Button Emulation Timeout (281):	1000
	Evdev Third Button Emulation Button (282):	3
	Evdev Third Button Emulation Threshold (283):	20
	Evdev Wheel Emulation (284):	0
	Evdev Wheel Emulation Axes (285):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (286):	10
	Evdev Wheel Emulation Timeout (287):	200
	Evdev Wheel Emulation Button (288):	4
	Evdev Drag Lock Buttons (289):	0

$ xinput list-props 13
Device 'Razer Razer Naga Hex':
	Device Enabled (143):	1
	Coordinate Transformation Matrix (145):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (268):	-1
	Device Accel Constant Deceleration (269):	1.000000
	Device Accel Adaptive Deceleration (270):	1.000000
	Device Accel Velocity Scaling (271):	10.000000
	Device Product ID (261):	5426, 54
	Device Node (262):	"/dev/input/event21"
	Evdev Axis Inversion (272):	0, 0
	Evdev Axes Swap (274):	0
	Axis Labels (275):	"Rel X" (153), "Rel Y" (154), "Rel Horiz Wheel" (291)
	Button Labels (276):	"Button 0" (290), "Button Unknown" (264), "Button Unknown" (264), "Button Wheel Up" (149), "Button Wheel Down" (150), "Button Horiz Wheel Left" (151), "Button Horiz Wheel Right" (152)
	Evdev Scrolling Distance (277):	1, 1, 1
	Evdev Middle Button Emulation (278):	0
	Evdev Middle Button Timeout (279):	50
	Evdev Third Button Emulation (280):	0
	Evdev Third Button Emulation Timeout (281):	1000
	Evdev Third Button Emulation Button (282):	3
	Evdev Third Button Emulation Threshold (283):	20
	Evdev Wheel Emulation (284):	0
	Evdev Wheel Emulation Axes (285):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (286):	10
	Evdev Wheel Emulation Timeout (287):	200
	Evdev Wheel Emulation Button (288):	4
	Evdev Drag Lock Buttons (289):	0

With "MatchIsPointer":

$ xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex                    	id=12	[slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Hex                    	id=13	[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)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Microsoft® LifeCam HD-3000             	id=9	[slave  keyboard (3)]
    ↳ Apple Inc. Apple Keyboard               	id=10	[slave  keyboard (3)]
    ↳ Apple Inc. Apple Keyboard               	id=11	[slave  keyboard (3)]

$ xinput list-props 12
Device 'Razer Razer Naga Hex':
	Device Enabled (143):	1
	Coordinate Transformation Matrix (145):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (268):	-1
	Device Accel Constant Deceleration (269):	1.000000
	Device Accel Adaptive Deceleration (270):	1.000000
	Device Accel Velocity Scaling (271):	10.000000
	Device Product ID (261):	5426, 54
	Device Node (262):	"/dev/input/event20"
	Evdev Axis Inversion (272):	0, 0
	Evdev Axes Swap (274):	0
	Axis Labels (275):	"Rel X" (153), "Rel Y" (154), "Rel Vert Wheel" (267)
	Button Labels (276):	"Button Left" (146), "Button Middle" (147), "Button Right" (148), "Button Wheel Up" (149), "Button Wheel Down" (150), "Button Horiz Wheel Left" (151), "Button Horiz Wheel Right" (152), "Button Side" (265), "Button Extra" (266), "Button Unknown" (264), "Button Unknown" (264), "Button Unknown" (264), "Button Unknown" (264)
	Evdev Scrolling Distance (277):	1, 1, 1
	Evdev Middle Button Emulation (278):	0
	Evdev Middle Button Timeout (279):	50
	Evdev Third Button Emulation (280):	0
	Evdev Third Button Emulation Timeout (281):	1000
	Evdev Third Button Emulation Button (282):	3
	Evdev Third Button Emulation Threshold (283):	20
	Evdev Wheel Emulation (284):	0
	Evdev Wheel Emulation Axes (285):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (286):	10
	Evdev Wheel Emulation Timeout (287):	200
	Evdev Wheel Emulation Button (288):	4
	Evdev Drag Lock Buttons (289):	0

$ xinput list-props 13
Device 'Razer Razer Naga Hex':
	Device Enabled (143):	1
	Coordinate Transformation Matrix (145):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	Device Accel Profile (268):	0
	Device Accel Constant Deceleration (269):	1.000000
	Device Accel Adaptive Deceleration (270):	1.000000
	Device Accel Velocity Scaling (271):	10.000000
	Device Product ID (261):	5426, 54
	Device Node (262):	"/dev/input/event21"
	Evdev Axis Inversion (272):	0, 0
	Evdev Axes Swap (274):	0
	Axis Labels (275):	"Rel X" (153), "Rel Y" (154), "Rel Horiz Wheel" (291)
	Button Labels (276):	"Button 0" (290), "Button Unknown" (264), "Button Unknown" (264), "Button Wheel Up" (149), "Button Wheel Down" (150), "Button Horiz Wheel Left" (151), "Button Horiz Wheel Right" (152)
	Evdev Scrolling Distance (277):	1, 1, 1
	Evdev Middle Button Emulation (278):	0
	Evdev Middle Button Timeout (279):	50
	Evdev Third Button Emulation (280):	0
	Evdev Third Button Emulation Timeout (281):	1000
	Evdev Third Button Emulation Button (282):	3
	Evdev Third Button Emulation Threshold (283):	20
	Evdev Wheel Emulation (284):	0
	Evdev Wheel Emulation Axes (285):	0, 0, 4, 5
	Evdev Wheel Emulation Inertia (286):	10
	Evdev Wheel Emulation Timeout (287):	200
	Evdev Wheel Emulation Button (288):	4
	Evdev Drag Lock Buttons (289):	0

It looks like "MatchIsPointer" affects device id 12, while "MatchIsKeyboard" affects device id 13. My actual mouse pointer seems to move based on the settings set for id 12. Either way, however, the "ConstantDeceleration" option doesn't seem to be working at all...

I do use the keyboard buttons on my mouse, and I don't believe I could deactivate the feature anyway.

Thanks for the help,
xlightningz

Offline

#8 2015-08-06 18:34:20

AnAkkk
Member
Registered: 2014-03-03
Posts: 148

Re: Mouse Configuration Options in Xorg .conf files not taking effect

You could try with xf86-input-libinput to see if it changes anything.

Offline

#9 2015-08-06 21:02:01

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mouse Configuration Options in Xorg .conf files not taking effect

What is the result if you use the other methods given in the 'Mouse acceleration' page in the wiki?
Can you change the constant deceleration manually with the xset or the xinput commands?
If these commands don't work, this will explain why the Xorg conf files have no effect too.

In this case, AnAkkk suggests to try another input driver than evdev with the xf86-input-libinput package.
I don't know if this is the solution, but you could test this driver, adding a Driver entry for it in your conf files, and using the appropriate options.
Give followup about your findings.

Offline

#10 2015-08-09 02:26:22

xlightningz
Member
Registered: 2015-08-04
Posts: 8

Re: Mouse Configuration Options in Xorg .conf files not taking effect

I can indeed change the constant deceleration manually with xinput. That's the main reason I'm so confused but the trouble I'm having trying to get it to be set at boot.

I've looked into using libinput, but it doesn't seem to meet my needs. I can use the "AccelSpeed" option to disable acceleration, but there doesn't seem to be an equivalent option to constant deceleration.

If you have any other ideas, I'd love to hear them, but it's really starting to seem like there may be a bug related to the constant deceleration option.

Thanks,
xlightningz

Offline

#11 2015-08-09 10:14:47

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Mouse Configuration Options in Xorg .conf files not taking effect

You could try with only the /etc/X11/xorg.conf.d/50-mouse-deceleration.conf

Section "InputClass"
	Identifier "Mouse Deceleration"
	MatchIsPointer "yes"
	Option "ConstantDeceleration" "0.6"
EndSection

The MatchIsPointer option seems the one affecting your mouse seen as mouse.

Could the AUR package https://aur.archlinux.org/packages/razercfg where your mouse is supported, be of some help?

but the trouble I'm having trying to get it to be set at boot

But at boot there is no Xserver running and only root can run something;
don't you want to set the mouse at user login, and at graphical environment startup? (using .xinitrc or .xprofile)

Last edited by berbae (2015-08-09 15:29:37)

Offline

Board footer

Powered by FluxBB