You are not logged in.
Hello everybody,
I've been using a Logitech Marble Mouse for a few years. Suddenly (somewhen during the last 2-3 weeks) the configuration I created stopped working. This is the configuration I've been using:
# /usr/share/X11/xorg.conf.d/50-marblemouse.conf
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "8"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
EndSectionIt should (and did so far) configure the Button 8 to be the scroll button but scrolling using this button doesn't work anymore. So I guess that the whole configuration is not "used" anymore.
Did something change there? I already checked this entry https://wiki.archlinux.org/index.php/Lo … rble_Mouse but using the configuration using "evdev" or placing it in /etc/X11/xorg.conf.d didn't work either.
Thanks a lot.
Best Regards
Werzi2001
Last edited by Werzi2001 (2019-03-05 18:40:01)
Offline
Are there any other configuration files in /etc/X11/xorg.conf.d that might be over-riding your settings?
Check the Xorg log to see which options are actually being applied.
Jin, Jîyan, Azadî
Offline
I'm not sure if there are other configurations conflicting. How can I check that? For me it just looks like the default configurations:
$ ls /etc/X11/xorg.conf.d/
00-keyboard.conf 10-evdev.conf 50-synaptics.conf 55-wacom.conf
$ ls /usr/share/X11/xorg.conf.d/
10-nvidia-drm-outputclass.conf 10-quirks.conf 40-libinput.conf 50-marblemouse.conf 70-synaptics.conf 70-wacom.conf(The 50-marblemouse.conf configuration file is the one I created)
But the hint with the log was good I guess. It seems to me that evdev and libinput are battling about who wants to control the mouse:
[ 22.566] (II) config/udev: Adding input device Logitech USB Trackball (/dev/input/event5)
[ 22.566] (**) Logitech USB Trackball: Applying InputClass "evdev pointer catchall"
[ 22.566] (**) Logitech USB Trackball: Applying InputClass "libinput pointer catchall"
[ 22.566] (**) Logitech USB Trackball: Applying InputClass "Marble Mouse"
[ 22.566] (**) Logitech USB Trackball: Applying InputClass "evdev pointer catchall"
[ 22.566] (II) Using input driver 'evdev' for 'Logitech USB Trackball'
[ 22.566] (**) Logitech USB Trackball: always reports core events
[ 22.566] (**) evdev: Logitech USB Trackball: Device: "/dev/input/event5"
[ 22.621] (**) evdev: Logitech USB Trackball: ButtonMapping '1 8 3 4 5 6 7 2 9'
[ 22.622] (--) evdev: Logitech USB Trackball: Vendor 0x46d Product 0xc408
[ 22.622] (--) evdev: Logitech USB Trackball: Found 9 mouse buttons
[ 22.622] (--) evdev: Logitech USB Trackball: Found relative axes
[ 22.622] (--) evdev: Logitech USB Trackball: Found x and y relative axes
[ 22.622] (II) evdev: Logitech USB Trackball: Configuring as mouse
[ 22.622] (**) evdev: Logitech USB Trackball: YAxisMapping: buttons 4 and 5
[ 22.622] (**) evdev: Logitech USB Trackball: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 22.622] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C408.0001/input/input10/event5"
[ 22.622] (II) XINPUT: Adding extended input device "Logitech USB Trackball" (type: MOUSE, id 11)
[ 22.622] (II) evdev: Logitech USB Trackball: initialized for relative axes.
[ 22.622] (**) Logitech USB Trackball: (accel) keeping acceleration scheme 1
[ 22.622] (**) Logitech USB Trackball: (accel) acceleration profile 0
[ 22.622] (**) Logitech USB Trackball: (accel) acceleration factor: 2.000
[ 22.622] (**) Logitech USB Trackball: (accel) acceleration threshold: 4
[ 22.623] (II) config/udev: Adding input device Logitech USB Trackball (/dev/input/mouse0)
[ 22.623] (**) Logitech USB Trackball: Applying InputClass "Marble Mouse"
[ 22.623] (II) LoadModule: "libinput"
[ 22.623] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 22.631] (II) Module libinput: vendor="X.Org Foundation"
[ 22.631] compiled for 1.20.3, module version = 0.28.2
[ 22.631] Module class: X.Org XInput Driver
[ 22.631] ABI class: X.Org XInput driver, version 24.1
[ 22.631] (II) Using input driver 'libinput' for 'Logitech USB Trackball'
[ 22.631] (**) Logitech USB Trackball: always reports core events
[ 22.631] (**) Option "Device" "/dev/input/mouse0"
[ 22.631] (**) Option "_source" "server/udev"
[ 22.688] (II) mouse0 - failed to create input device '/dev/input/mouse0'.
[ 22.688] (EE) libinput: Logitech USB Trackball: Failed to create a device for /dev/input/mouse0
[ 22.688] (EE) PreInit returned 2 for "Logitech USB Trackball"
[ 22.688] (II) UnloadModule: "libinput"I tried to uninstall xf86-input-evdev but it didn't work either. Although the output looks cleaner to me (no evdev stuff anymore).
[ 7061.236] (II) config/udev: Adding input device Logitech USB Trackball (/dev/input/event5)
[ 7061.236] (**) Logitech USB Trackball: Applying InputClass "libinput pointer catchall"
[ 7061.236] (**) Logitech USB Trackball: Applying InputClass "Marble Mouse"
[ 7061.236] (**) Logitech USB Trackball: Applying InputClass "evdev pointer catchall"
[ 7061.236] (II) LoadModule: "evdev"
[ 7061.236] (WW) Warning, couldn't open module evdev
[ 7061.236] (EE) Failed to load module "evdev" (module does not exist, 0)
[ 7061.236] (EE) No input driver matching `evdev'
[ 7061.236] (II) Falling back to input driver `libinput'
[ 7061.236] (II) Using input driver 'libinput' for 'Logitech USB Trackball'
[ 7061.236] (**) Logitech USB Trackball: always reports core events
[ 7061.236] (**) Option "Device" "/dev/input/event5"
[ 7061.236] (**) Option "_source" "server/udev"
[ 7061.293] (II) event5 - Logitech USB Trackball: is tagged by udev as: Mouse Trackball
[ 7061.293] (II) event5 - Logitech USB Trackball: device is a pointer
[ 7061.293] (II) event5 - Logitech USB Trackball: device removed
[ 7061.354] (**) Option "ScrollMethod" "button"
[ 7061.354] (**) Option "ScrollButton" "8"
[ 7061.354] (**) Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
[ 7061.354] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C408.0001/input/input10/event5"
[ 7061.354] (II) XINPUT: Adding extended input device "Logitech USB Trackball" (type: MOUSE, id 11)
[ 7061.355] (**) Option "AccelerationScheme" "none"
[ 7061.355] (**) Logitech USB Trackball: (accel) selected scheme none/0
[ 7061.355] (**) Logitech USB Trackball: (accel) acceleration factor: 2.000
[ 7061.355] (**) Logitech USB Trackball: (accel) acceleration threshold: 4
[ 7061.413] (II) event5 - Logitech USB Trackball: is tagged by udev as: Mouse Trackball
[ 7061.413] (II) event5 - Logitech USB Trackball: device is a pointer
[ 7061.415] (II) config/udev: Adding input device Logitech USB Trackball (/dev/input/mouse0)
[ 7061.415] (**) Logitech USB Trackball: Applying InputClass "Marble Mouse"
[ 7061.415] (II) Using input driver 'libinput' for 'Logitech USB Trackball'
[ 7061.415] (**) Logitech USB Trackball: always reports core events
[ 7061.415] (**) Option "Device" "/dev/input/mouse0"
[ 7061.415] (**) Option "_source" "server/udev"
[ 7061.474] (II) mouse0 - failed to create input device '/dev/input/mouse0'.
[ 7061.474] (EE) libinput: Logitech USB Trackball: Failed to create a device for /dev/input/mouse0
[ 7061.474] (EE) PreInit returned 2 for "Logitech USB Trackball"
[ 7061.474] (II) UnloadModule: "libinput"Offline
xinput list-props <id>?
Offline
$ xinput list-props 11
Device 'Logitech USB Trackball':
Device Enabled (154): 1
Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (283): 0
Device Accel Constant Deceleration (284): 1.000000
Device Accel Adaptive Deceleration (285): 1.000000
Device Accel Velocity Scaling (286): 10.000000
Device Product ID (277): 1133, 50184
Device Node (278): "/dev/input/event5"
Evdev Axis Inversion (287): 0, 0
Evdev Axes Swap (289): 0
Axis Labels (290): "Rel X" (164), "Rel Y" (165)
Button Labels (291): "Button Left" (157), "Button Middle" (158), "Button Right" (159), "Button Wheel Up" (160), "Button Wheel Down" (161), "Button Horiz Wheel Left" (162), "Button Horiz Wheel Right" (163), "Button Side" (281), "Button Extra" (282)
Evdev Scrolling Distance (292): 0, 0, 0
Evdev Middle Button Emulation (293): 0
Evdev Middle Button Timeout (294): 50
Evdev Middle Button Button (295): 2
Evdev Third Button Emulation (296): 0
Evdev Third Button Emulation Timeout (297): 1000
Evdev Third Button Emulation Button (298): 3
Evdev Third Button Emulation Threshold (299): 20
Evdev Wheel Emulation (300): 0
Evdev Wheel Emulation Axes (301): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (302): 10
Evdev Wheel Emulation Timeout (303): 200
Evdev Wheel Emulation Button (304): 4
Evdev Drag Lock Buttons (305): 0Edit:
And without evdev
Device 'Logitech USB Trackball':
Device Enabled (154): 1
Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (503): 0
libinput Natural Scrolling Enabled Default (504): 0
libinput Scroll Methods Available (505): 0, 0, 1
libinput Scroll Method Enabled (506): 0, 0, 1
libinput Scroll Method Enabled Default (507): 0, 0, 1
libinput Button Scrolling Button (508): 8
libinput Button Scrolling Button Default (509): 8
libinput Rotation Angle (510): 0.000000
libinput Rotation Angle Default (511): 0.000000
libinput Accel Speed (512): 0.000000
libinput Accel Speed Default (513): 0.000000
libinput Accel Profiles Available (514): 1, 1
libinput Accel Profile Enabled (515): 1, 0
libinput Accel Profile Enabled Default (516): 1, 0
libinput Left Handed Enabled (517): 0
libinput Left Handed Enabled Default (518): 0
libinput Send Events Modes Available (277): 1, 0
libinput Send Events Mode Enabled (278): 0, 0
libinput Send Events Mode Enabled Default (279): 0, 0
Device Node (280): "/dev/input/event5"
Device Product ID (281): 1133, 50184
libinput Drag Lock Buttons (519): <no items>
libinput Horizontal Scroll Enabled (520): 1Last edited by Werzi2001 (2019-03-03 16:23:00)
Offline
Why is 10-evdev.conf in /etc/X11/xorg.conf.d/?
The xf86-input-evdev package installs it under /usr/share/X11/xorg.conf.d/ — try moving it back.
I'm sure seth will have a better suggestion though ![]()
EDIT: oh, you removed the evdev package, nevermind.
Last edited by Head_on_a_Stick (2019-03-03 16:26:45)
Jin, Jîyan, Azadî
Offline
The evdev config if "off", but the libinput one should work.
Did you try to alter
Driver "libinput"to
Driver "evdev"(w/ evdev installed)
Offline
I tried two different configurations
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
Driver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "8"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
EndSectionSection "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SendCoreEvents" "true"
Option "Buttons" "9"
Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
EndSectionI used the evdev version for multiple years until it suddenly stopped working. Then I switched to the libinput version that worked until some time ago. Now none seems to work.
Offline
Can you post an xorg log for the evdev version?
Also try to manipulate the evdev situation via xinput:
xinput set-prop 'Logitech USB Trackball' 'Evdev Wheel Emulation' 1
xinput set-prop 'Logitech USB Trackball' 'Evdev Wheel Emulation Button' 8Check whether they applied.
Offline
Here the log
[ 1057.344] (II) config/udev: Adding input device Logitech USB Trackball (/dev/input/event20)
[ 1057.344] (**) Logitech USB Trackball: Applying InputClass "evdev pointer catchall"
[ 1057.344] (**) Logitech USB Trackball: Applying InputClass "libinput pointer catchall"
[ 1057.344] (**) Logitech USB Trackball: Applying InputClass "Marble Mouse"
[ 1057.344] (**) Logitech USB Trackball: Applying InputClass "evdev pointer catchall"
[ 1057.344] (II) Using input driver 'evdev' for 'Logitech USB Trackball'
[ 1057.344] (**) Option "SendCoreEvents" "true"
[ 1057.344] (**) Logitech USB Trackball: always reports core events
[ 1057.344] (**) evdev: Logitech USB Trackball: Device: "/dev/input/event20"
[ 1057.398] (**) evdev: Logitech USB Trackball: ButtonMapping '1 8 3 4 5 6 7 2 9'
[ 1057.398] (--) evdev: Logitech USB Trackball: Vendor 0x46d Product 0xc408
[ 1057.398] (--) evdev: Logitech USB Trackball: Found 9 mouse buttons
[ 1057.398] (--) evdev: Logitech USB Trackball: Found relative axes
[ 1057.398] (--) evdev: Logitech USB Trackball: Found x and y relative axes
[ 1057.398] (II) evdev: Logitech USB Trackball: Configuring as mouse
[ 1057.398] (**) Option "EmulateWheel" "true"
[ 1057.398] (**) Option "EmulateWheelButton" "8"
[ 1057.398] (**) Option "YAxisMapping" "4 5"
[ 1057.398] (**) evdev: Logitech USB Trackball: YAxisMapping: buttons 4 and 5
[ 1057.398] (**) Option "XAxisMapping" "6 7"
[ 1057.398] (**) evdev: Logitech USB Trackball: XAxisMapping: buttons 6 and 7
[ 1057.398] (**) evdev: Logitech USB Trackball: EmulateWheelButton: 8, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 1057.398] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C408.0001/input/input27/event20"
[ 1057.398] (II) XINPUT: Adding extended input device "Logitech USB Trackball" (type: MOUSE, id 11)
[ 1057.398] (II) evdev: Logitech USB Trackball: initialized for relative axes.
[ 1057.399] (**) Logitech USB Trackball: (accel) keeping acceleration scheme 1
[ 1057.399] (**) Logitech USB Trackball: (accel) acceleration profile 0
[ 1057.399] (**) Logitech USB Trackball: (accel) acceleration factor: 2.000
[ 1057.399] (**) Logitech USB Trackball: (accel) acceleration threshold: 4
[ 1057.399] (II) config/udev: Adding input device Logitech USB Trackball (/dev/input/mouse1)
[ 1057.399] (II) No input driver specified, ignoring this device.
[ 1057.399] (II) This device may have been added with another device file.When triggering the xinput commands nothing happens. No error or any output at all. And scrolling still does not work.
Offline
Does "xinput list-props" change?
The config seems to be applied.
Offline
Yes it does
$ xinput list-props 11 | grep "Wheel Emulation"
Evdev Wheel Emulation (300): 0
Evdev Wheel Emulation Axes (301): 6, 7, 4, 5
Evdev Wheel Emulation Inertia (302): 10
Evdev Wheel Emulation Timeout (303): 200
Evdev Wheel Emulation Button (304): 8
$ xinput set-prop 'Logitech USB Trackball' 'Evdev Wheel Emulation' 1
$ xinput list-props 11 | grep "Wheel Emulation"
Evdev Wheel Emulation (300): 1
Evdev Wheel Emulation Axes (301): 6, 7, 4, 5
Evdev Wheel Emulation Inertia (302): 10
Evdev Wheel Emulation Timeout (303): 200
Evdev Wheel Emulation Button (304): 8Offline
Are the buttons swapped, does button 2 initiate the scroll?
Offline
I don't think so. I did some more tests and button 9 seems to work fine for scrolling (but is a different button). Then I tested "xev" and the events for button 8 are output as button 2 but I guess that's right as I have the ButtonMapping in place. Anyhow I noticed that the events shown by xev for button 8 (=2) aren't always right. It seems that sometimes events are missing. Maybe the hardware has a defect?
Offline
You should not get events for the wheelbutton at all (but button 4/5 instead) - however a disfunctional button (broken switch) is easy to determine: try a different button as wheel button.
Offline
A different wheel button works without problems. E.g. button 9 or button 3. So I guess the button 8 is really just broken somehow :-(
Offline
How many "few years"? The newer switches have a limited lifetime, but for the older switches it's more likely something physically sticks.
If you can (never owned one), open the trackball and clean it.
(Ensure you've got a bucket around, you'll know "why" when you need it ;-)
Offline
Should be around 5 years. I tried to clean it but that doesn't seem to be the problem. Actually the "track ball area" is quite well separated from the rest and there is no possibility for the dirt to get to the buttons. Also the button does a clear "click" so it doesn't seem to be stuck. I have another one of these mice at work. I'll try if this works on my laptop. If it does I guess a hardware defect can be confirmed.
Offline
You can buy (and replace) microswitches in many devices individually (they're relatively cheap)
Offline
I checked with my mouse from work and it works just fine. So it is a hardware defect. I'll see if I can/want to switch the switch.
Thanks a lot for your help :-)
Offline