I'm trying to enable natural scrolling for a Logitech Trackman trackball on 18.10.
Natural scrolling is set to enabled in the system settings and is working for the integrated trackpad of my computer, but it doesn't work for the USB trackball.
At boot, natural scrolling is disabled for this device:
> xinput list-props "Logitech USB Trackball"
...
libinput Natural Scrolling Enabled (289): 0
libinput Natural Scrolling Enabled Default (290): 0
I can successfully enable it while the system is running with the command:
> xinput set-int-prop \
"Logitech USB Trackball" "libinput Natural Scrolling Enabled" 8 1
> xinput list-props "Logitech USB Trackball"
...
libinput Natural Scrolling Enabled (289): 1
libinput Natural Scrolling Enabled Default (290): 0
But this does not persist.
I have added a configuration file like so:
/usr/share/X11/xorg.conf.d/70-logitech-trackman.conf
:
Section "InputClass"
Identifier "TrackmanConfiguration"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
Option "ScrollMethod" "button"
Option "ScrollButton" "9"
Option "NaturalScrolling" "1"
EndSection
However, while the other settings from this file are respected, the NaturalScrolling
option is ignored. I have also tried alternative values of "true"
and "on"
for the boolean value, but none of them work.
- What else could I do to enable natural scrolling at boot?
- How else could I debug this issue?
Update
After testing all libinput options that I could think of I have come to the conclusion that the NaturalScrolling
option is completely ignored or overwritten by the global value for mouse natural scrolling set through the GUI or dconf, so a per-device preference is not possible in this case.
Dconf example:
dconf write /org/gnome/desktop/peripherals/mouse/natural-scroll true
xinput
command to start up. Also, you might want to report a bug that the option from settings not being applied to the trackball.