! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Can't change mouse acceleration and sensitivity
Status:
RESOLVED: WONTFIX
Product:
Xfce4-settings
Component:
Mouse Settings

Comments

Description Damian Höster 2018-10-24 07:42:15 CEST
In Xubuntu, both acceleration and sensitivity settings appear, but changing them has no effect (regardless of the device).
In Manjaro Xfce Edition, both settings appear in VirtualBox, but sensitivity doesn't show up when running on my machine and changing acceleration has no effect.

I installed all updates before testing this. I only tried it on one laptop.
In Deepin Desktop environment, both acceleration and sensitivity could be changed on the same laptop.
Comment 1 Theo Linkspfeifer editbugs 2018-10-24 10:12:51 CEST
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1758023

The xfce4-settings package in Xubuntu 18.04 was not built with libinput support, but xserver-xorg-input-libinput is installed and used by default. This was fixed in 18.10.
Comment 2 Damian Höster 2018-10-25 14:36:48 CEST
You're right, in Xubuntu 18.10 changing mouse acceleration is no problem.
But for all my devices, changing mouse sensitivity is not possible because the option isn't there.
When I tried Xubuntu 18.10 in VirtualBox, the mouse sensitivity option is shown for 2 of three devices:
You can change sensitivity for both "VirtualBox mouse integration" and "VirtualBox USB Tablet".
Sensitivity is not shown for "ImExPS/2 Generic Explorer Mouse".
Why does changing sensitivity seem unavailable for many devices?
Comment 3 Theo Linkspfeifer editbugs 2018-10-26 00:26:40 CEST
I am not sure how this is supposed to work. This is what xinput returns:

$ xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ VirtualBox mouse integration            	id=9	[slave  pointer  (2)]
⎜   ↳ VirtualBox USB Tablet                   	id=10	[slave  pointer  (2)]
⎜   ↳ ImExPS/2 Generic Explorer Mouse         	id=12	[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)]
    ↳ Sleep Button                            	id=7	[slave  keyboard (3)]
    ↳ Video Bus                               	id=8	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=11	[slave  keyboard (3)]
$ xinput list-props 9 | grep Accel
$ xinput list-props 10 | grep Accel
$ xinput list-props 12 | grep Accel
	libinput Accel Speed (277):	-1.000000
	libinput Accel Speed Default (278):	0.000000
	libinput Accel Profiles Available (279):	1, 1
	libinput Accel Profile Enabled (280):	1, 0
	libinput Accel Profile Enabled Default (281):	1, 0
$ 

Looking at the source code we have a code block [1] which updates the 'threshold' variable if LIBINPUT_PROP_ACCEL does _not_ exist for a device. The 'threshold' variable determines if the sensitivity slider is shown or not [2].

[1] https://git.xfce.org/xfce/xfce4-settings/tree/dialogs/mouse-settings/main.c#n1282
[2] https://git.xfce.org/xfce/xfce4-settings/tree/dialogs/mouse-settings/main.c#n1409
Comment 4 Olivier Fourdan editbugs 2018-10-26 10:08:27 CEST
libinput does not give access to threshold like the evdev and synaptics drivers. Acceleration, however works fine here.

Libinput accel speed perprties takes values between -1.0 and +1.0 and xfce settings maps the user value to this range when libinput is detected, This can be observed by changing the "pointer speed" setting in xfce and check the props changing:

 $ xinput watch-props 9

As a side note, see this series of blog posts from Peter on how libinput acceleration compares to evdev and synaptics drivers on Xorg:

https://who-t.blogspot.com/2018/05/x-server-pointer-acceleration-analysis-part1.html
Comment 5 Skunnyk editbugs 2020-05-28 22:40:10 CEST
Closing old bugs

Bug #14794

Reported by:
Damian Höster
Reported on: 2018-10-24
Last modified on: 2020-05-28

People

Assignee:
Nick Schermer
CC List:
5 users

Version

Version:
unspecified

Attachments

Additional information