mouse buttons stopped working (Logitech MX 518)

Hi all,

my mouse (Logitech MX 518, not the original version but the new release - about one year old) stopped working in OpenSuse Leap 15.1. Another mouse works fine.

The cursor is fine, but the buttons do not seem to work or show “random” results. If I open a firefox browser, everything (even the buttons) works fine as long as I stay inside the firefox window. But if I switch to another window, it seems all button clicks are still captured by firefox. In Dolphin, every button click is handled as “on directory up”. And on a blank desktop, the only action that works is “mouse wheel up/down”, which seems to trigger switching between virtual desktops.

As my machine is dual boot and the mouse works fine in Win10, I assume it is not a hardware problem with the mouse. OpenSuse 15.1 has latest updates. The last time it worked was two days ago (13th march), the latest updates were on 9th.

Does anybody have suggestions how to do further analysis? I don’t even know what keywords to use for a google search…

I found hints about a file “/etc/X.11/xorg.conf.d/11-mouse.conf”, but this file does not exist.

Many thanks in advance

Wolfgang

From your reference to Dolphin, I assume that you’re using KDE. Xorg session?

echo $DESKTOP_SESSION
echo $XDG_SESSION_TYPE

Report back with this output.

These commands might give us some more information to help with any online researching…

sudo libinput list-devices
dmesg|grep input

I found hints about a file “/etc/X.11/xorg.conf.d/11-mouse.conf”, but this file does not exist.

Many thanks in advance

Wolfgang

This reads like you are referring to a custom file that can be created/edited as required. Share links to such hints if you want others to comment further.

BTW, the directory that you referred to is ‘/etc/X11/xorg.conf.d/’ not ‘/etc/X.11/xorg.conf.d/’.

When that happen here (with an M325), I throw it out and purchase another. A logitech mouse usually lasts around 2 years here, before I need to replace it. A Dell wired mouse that came with the computer eventually ran into similar problems. It seems that they make these things with cheap micro-switches that have a limited life.

If I open a firefox browser, everything (even the buttons) works fine as long as I stay inside the firefox window. But if I switch to another window, it seems all button clicks are still captured by firefox.

That sounds more like a desktop software problem. But we don’t know what desktop environment you are using.

Here, I use KDE (Plasma 5), and I have it configured for “focus follows mouse”

And on a blank desktop, the only action that works is “mouse wheel up/down”, which seems to trigger switching between virtual desktops.

There’s a desktop setting for mouse actions on the desktop itself (I’m assuming that you are using KDE). I have that set so the mouse wheel changes activities.

My experience – after about a year of use, the micro-switches start misbehaving (giving double clicks or triple clicks when I click once). It gets worse over time, but I can usually live with it for another year. And yes, Microsoft Windows does seem to have better debouncing in its mouse software. So I notice the problem more on linux than on Windows. Of course, I hard ever use Windows, and maybe that’s why I don’t notice it so much there.

It gets even more mysterious: after working on the windows side for several hours and rebooting to linux, the mouse worked fine. Then the machine was switched off one hour and I booted directly into linux. Now the mouse shows the same errors as yesterday. Might be a hardware issue if the mouse is “cool”?

To answer the questions of deano_ferrari:

Yes, I meant “/etc/X11/xorg.conf.d/’” - it was a typo in the post.

echo $DESKTOP_SESSION
/usr/share/xsessions/plasma5

echo $XDG_SESSION_TYPE
x11

Output of “dmesg | grep input”:

    1.181666] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
    1.400436] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
    1.400499] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
    1.511204] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3
    3.581610] input: PC Speaker as /devices/platform/pcspkr/input/input4
    3.648756] input: Logitech MX518 Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:046D:C08E.0001/input/input10
    3.650595] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input5
    3.651568] hid-generic 0003:046D:C08E.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech MX518 Gaming Mouse] on usb-0000:00:14.0-4/input0
    3.651581] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input6
    3.651723] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input7
    3.651745] input: Logitech MX518 Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/0003:046D:C08E.0002/input/input11
    3.651850] input: HDA Intel HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/sound/card0/input8
    3.652028] input: HDA Intel HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.0/sound/card0/input9
    3.712269] hid-generic 0003:046D:C08E.0002: input,hiddev96,hidraw1: USB HID v1.11 Keyboard [Logitech MX518 Gaming Mouse] on usb-0000:00:14.0-4/input1
    3.741284] snd_hda_codec_realtek hdaudioC1D2:    inputs:
    3.756053] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card1/input12
    3.756395] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input13
    3.756717] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input14
    3.757100] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card1/input15
    3.757128] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card1/input16
    4.416416] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input17
    4.416463] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input18
    4.416492] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input19
    4.416519] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/input20


The output of “libinput list-devices”:

Output of libinput list-devices

Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event3
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Power Button
Kernel:           /dev/input/event1
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA NVidia HDMI/DP,pcm=3
Kernel:           /dev/input/event17
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA NVidia HDMI/DP,pcm=7
Kernel:           /dev/input/event18
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA NVidia HDMI/DP,pcm=8
Kernel:           /dev/input/event19
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA NVidia HDMI/DP,pcm=9
Kernel:           /dev/input/event20
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel HDMI HDMI/DP,pcm=3
Kernel:           /dev/input/event6
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel HDMI HDMI/DP,pcm=7
Kernel:           /dev/input/event7
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel HDMI HDMI/DP,pcm=8
Kernel:           /dev/input/event8
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel HDMI HDMI/DP,pcm=9
Kernel:           /dev/input/event9
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel HDMI HDMI/DP,pcm=10
Kernel:           /dev/input/event11
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Logitech MX518 Gaming Mouse
Kernel:           /dev/input/event5
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           Logitech MX518 Gaming Mouse
Kernel:           /dev/input/event10
Group:            5
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH Rear Mic
Kernel:           /dev/input/event13
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH Front Mic
Kernel:           /dev/input/event14
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH Line
Kernel:           /dev/input/event15
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           HDA Intel PCH Line Out
Kernel:           /dev/input/event16
Group:            4
Seat:             seat0, default
Capabilities:     
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event0
Group:            6
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Best regards

Wolfgang

I have the default (leftmost option) - “Click to focus”. When switching to “Focus under mouse”, other strange things happen, but it does not work. E.g. the window bar at the bottom is not clickable.

This archwiki page might help with respect to bespoke button configuration…
https://wiki.archlinux.org/index.php/Mouse_buttons

An old thread, but its advice regarding btnx may still be applicable…
https://forums.opensuse.org/showthread.php/484932-Configure-5-buttons-mouse

Another discussing using btnx in a systemd environment…
https://ooz.github.io/blog/2017/mx518-ubuntu.html

A Linux Mint thread discussing MX 518 button configuration via a custom Xorg file…
https://forums.linuxmint.com/viewtopic.php?t=264790

Well, today the issue occured also in Windows once, and I had to reboot the system - the replacement mouse did not “fix” the issue, as works with linux. So it might really be a hardware problem.

I applied the config snippet from https://linux-bsd-sharing.blogspot.com/2008/08/logitech-mx518-under-freebsd.html to a file “50-logitech.conf”, but it did not change anything - I don’t even know whether is was actually picked. Sorry - I’m a noob :frowning:


Section "InputDevice"
Identifier "Logitech MX518"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/event4"
Option "Buttons" "10"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7 8 9 10 4 5"
Option "Emulate3Buttons" "false"
EndSection

Attached is a snippet from “/var/log/Xorg.0.log” (without the custom config file):


     7.074] (II) config/udev: Adding input device Logitech MX518 Gaming Mouse (/dev/input/event15)
     7.074] (**) Logitech MX518 Gaming Mouse: Applying InputClass "evdev pointer catchall"
     7.074] (**) Logitech MX518 Gaming Mouse: Applying InputClass "evdev pointer catchall"
     7.074] (**) Logitech MX518 Gaming Mouse: Applying InputClass "libinput pointer catchall"
     7.074] (II) Using input driver 'libinput' for 'Logitech MX518 Gaming Mouse'
     7.074] (**) Logitech MX518 Gaming Mouse: always reports core events
     7.074] (**) Option "Device" "/dev/input/event15"
     7.074] (**) Option "_source" "server/udev"
     7.132] (II) event15 - Logitech MX518 Gaming Mouse: is tagged by udev as: Mouse
     7.132] (II) event15 - Logitech MX518 Gaming Mouse: device is a pointer
     7.132] (II) event15 - Logitech MX518 Gaming Mouse: device removed
     7.172] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.3/3-2.3:1.0/0003:046D:C08E.0001/input/input15/event15"
     7.172] (II) XINPUT: Adding extended input device "Logitech MX518 Gaming Mouse" (type: MOUSE, id 9)
     7.172] (**) Option "AccelerationScheme" "none"
     7.172] (**) Logitech MX518 Gaming Mouse: (accel) selected scheme none/0
     7.172] (**) Logitech MX518 Gaming Mouse: (accel) acceleration factor: 2.000
     7.172] (**) Logitech MX518 Gaming Mouse: (accel) acceleration threshold: 4
     7.232] (II) event15 - Logitech MX518 Gaming Mouse: is tagged by udev as: Mouse
     7.232] (II) event15 - Logitech MX518 Gaming Mouse: device is a pointer
     7.232] (II) config/udev: Adding input device Logitech MX518 Gaming Mouse (/dev/input/mouse0)
     7.232] (II) No input driver specified, ignoring this device.
     7.232] (II) This device may have been added with another device file.
     7.233] (II) config/udev: Adding input device Logitech MX518 Gaming Mouse (/dev/input/event16)
     7.233] (**) Logitech MX518 Gaming Mouse: Applying InputClass "evdev keyboard catchall"
     7.233] (**) Logitech MX518 Gaming Mouse: Applying InputClass "system-keyboard"
     7.233] (**) Logitech MX518 Gaming Mouse: Applying InputClass "evdev keyboard catchall"
     7.233] (**) Logitech MX518 Gaming Mouse: Applying InputClass "libinput keyboard catchall"
     7.233] (II) Using input driver 'libinput' for 'Logitech MX518 Gaming Mouse'
     7.233] (**) Logitech MX518 Gaming Mouse: always reports core events
     7.233] (**) Option "Device" "/dev/input/event16"
     7.233] (**) Option "_source" "server/udev"
     7.233] (II) event16 - Logitech MX518 Gaming Mouse: is tagged by udev as: Keyboard
     7.233] (II) event16 - Logitech MX518 Gaming Mouse: device is a keyboard
     7.233] (II) event16 - Logitech MX518 Gaming Mouse: device removed
     7.252] (II) libinput: Logitech MX518 Gaming Mouse: needs a virtual subdevice
     7.252] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.3/3-2.3:1.1/0003:046D:C08E.0002/input/input16/event16"
     7.252] (II) XINPUT: Adding extended input device "Logitech MX518 Gaming Mouse" (type: MOUSE, id 10)
     7.252] (**) Option "AccelerationScheme" "none"
     7.252] (**) Logitech MX518 Gaming Mouse: (accel) selected scheme none/0
     7.252] (**) Logitech MX518 Gaming Mouse: (accel) acceleration factor: 2.000
     7.252] (**) Logitech MX518 Gaming Mouse: (accel) acceleration threshold: 4
     7.252] (II) event16 - Logitech MX518 Gaming Mouse: is tagged by udev as: Keyboard
     7.252] (II) event16 - Logitech MX518 Gaming Mouse: device is a keyboard
...
     7.271] (**) Logitech MX518 Gaming Mouse: Applying InputClass "evdev keyboard catchall"
     7.271] (**) Logitech MX518 Gaming Mouse: Applying InputClass "system-keyboard"
     7.271] (**) Logitech MX518 Gaming Mouse: Applying InputClass "evdev keyboard catchall"
     7.271] (**) Logitech MX518 Gaming Mouse: Applying InputClass "libinput keyboard catchall"
     7.271] (II) Using input driver 'libinput' for 'Logitech MX518 Gaming Mouse'
     7.271] (**) Logitech MX518 Gaming Mouse: always reports core events
     7.271] (**) Option "Device" "/dev/input/event16"
     7.271] (**) Option "_source" "_driver/libinput"
     7.271] (II) libinput: Logitech MX518 Gaming Mouse: is a virtual subdevice
     7.271] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.3/3-2.3:1.1/0003:046D:C08E.0002/input/input16/event16"
     7.271] (II) XINPUT: Adding extended input device "Logitech MX518 Gaming Mouse" (type: KEYBOARD, id 12)
     7.271] (**) Option "xkb_model" "pc105"
     7.271] (**) Option "xkb_layout" "de"
     7.271] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"


Do you have any more ideas? If not, I will buy a replacement mouse.

Best regards

Wolfgang

This confirms libinput is handling the MX518 (via the generic catchall config file). Your custom config is not being applied. I’m note sure if the Xorg mouse driver is viable or not in any case.

Do you have any more ideas? If not, I will buy a replacement mouse.

Best regards

Wolfgang

I think replacing the mouse is worth a go.

The new mouse works fine.

Thanks for all the attempts to help. I have never seen this kind of “mouse death” - thus I first thought it might be a software problem.

Best regards

Wolfgang

Thanks for the update. Not surprised to read that it was due to hardware failure.