mousewheel not working in KDE

Since upgrading to LP 15.4 the mousewheel does not work in KDE anymore.
Strange, the mousewheel DOES work in firefox though…

I use a Logitech M330 cordless mouse with a Logitech USB receiver.

What helps is to plug the receiver and put it back.

But, as mentioned in firefox mousewheel always works, just not in KDE, but always pulling the receiver is not my desired solution…

Any hints?


**# **dmesg | grep -i mouse                                                                                                                                                 
    3.152872] **mouse**dev: PS/2 **mouse** device common for all mice 
    8.989353] logitech-djreceiver 0003:046D:C52F.0002: hidraw1: USB HID v1.11 **Mouse** [Logitech USB Receiver] on usb-0000:05:00.3-1.3.2.2/input0 
    9.109902] logitech-hidpp-device 0003:046D:4057.0004: input,hidraw3: USB HID v1.11 **Mouse** [Logitech B330/M330/M331] on usb-0000:05:00.3-1.3.2.2/input1:1 
 2565.517766] logitech-djreceiver 0003:046D:C52F.0009: hidraw1: USB HID v1.11 **Mouse** [Logitech USB Receiver] on usb-0000:05:00.3-1.3.2.2/input0 
 2565.638081] logitech-hidpp-device 0003:046D:4057.000B: input,hidraw3: USB HID v1.11 **Mouse** [Logitech B330/M330/M331] on usb-0000:05:00.3-1.3.2.2/input1:1



Looks like you’re using a different driver than here, where there’s nothing wireless involved:

# inxi -S
System:
  Host: ab85m Kernel: 5.14.21-150400.24.18-default ... Distro: openSUSE Leap 15.4
# dmesg | grep -i mouse
    0.866784] mousedev: PS/2 mouse device common for all mice
    2.188357] hid-generic 0003:046D:C404.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech Trackball] on usb-0000:00:14.0-6/input0

Maybe a switch would clear it up.

Journal from notebook with attached cordless mouse:

**notebook:~ #** lsusb -s 001:002                      
**Bus 001 Device 002: ID 046d:c542 Logitech, Inc. Wireless Receiver** 
**notebook:~ #** journalctl -b 0 _KERNEL_SUBSYSTEM=usb 
Aug 19 08:36:00 notebook kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.19 
Aug 19 08:36:00 notebook kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 
Aug 19 08:36:00 notebook kernel: usb usb1: Product: xHCI Host Controller 
Aug 19 08:36:00 notebook kernel: usb usb1: Manufacturer: Linux 5.19.1-1-default xhci-hcd 
Aug 19 08:36:00 notebook kernel: usb usb1: SerialNumber: 0000:00:14.0 
Aug 19 08:36:00 notebook kernel: hub 1-0:1.0: USB hub found 
Aug 19 08:36:00 notebook kernel: hub 1-0:1.0: 12 ports detected 
Aug 19 08:36:00 notebook kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.19 
Aug 19 08:36:00 notebook kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 
Aug 19 08:36:00 notebook kernel: usb usb2: Product: xHCI Host Controller 
Aug 19 08:36:00 notebook kernel: usb usb2: Manufacturer: Linux 5.19.1-1-default xhci-hcd 
Aug 19 08:36:00 notebook kernel: usb usb2: SerialNumber: 0000:00:14.0 
Aug 19 08:36:00 notebook kernel: hub 2-0:1.0: USB hub found 
Aug 19 08:36:00 notebook kernel: hub 2-0:1.0: 6 ports detected 
**Aug 19 08:36:01 notebook kernel: usb 1-3: new full-speed USB device number 2 using xhci_hcd 
Aug 19 08:36:01 notebook kernel: usb 1-3: New USB device found, idVendor=046d, idProduct=c542, bcdDevice= 3.02 
Aug 19 08:36:01 notebook kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 
Aug 19 08:36:01 notebook kernel: usb 1-3: Product: Wireless Receiver 
Aug 19 08:36:01 notebook kernel: usb 1-3: Manufacturer: Logitech 
**Aug 19 08:36:01 notebook kernel: usb 1-5: new high-speed USB device number 3 using xhci_hcd 
Aug 19 08:36:01 notebook kernel: usb 1-5: New USB device found, idVendor=04ca, idProduct=707d, bcdDevice= 0.05 
Aug 19 08:36:01 notebook kernel: usb 1-5: New USB device strings: Mfr=3, Product=1, SerialNumber=2 
Aug 19 08:36:01 notebook kernel: usb 1-5: Product: HP Webcam 
Aug 19 08:36:01 notebook kernel: usb 1-5: Manufacturer: DGWW... 
Aug 19 08:36:01 notebook kernel: usb 1-5: SerialNumber: 2009... 
Aug 19 08:36:01 notebook kernel: usb 1-6: new full-speed USB device number 4 using xhci_hcd 
Aug 19 08:36:01 notebook kernel: usb 1-6: New USB device found, idVendor=0bda, idProduct=b00a, bcdDevice= 1.10 
Aug 19 08:36:01 notebook kernel: usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3 
Aug 19 08:36:01 notebook kernel: usb 1-6: Product: Bluetooth Radio  
Aug 19 08:36:01 notebook kernel: usb 1-6: Manufacturer: Realtek  
Aug 19 08:36:01 notebook kernel: usb 1-6: SerialNumber: 00e0... 
Aug 19 08:36:05 notebook kernel: usb 1-5: Found UVC 1.00 device HP Webcam (04ca:707d) 
Aug 19 11:20:49 notebook kernel: usb 1-5: reset high-speed USB device number 3 using xhci_hcd 
Aug 19 11:20:49 notebook kernel: usb 1-6: reset full-speed USB device number 4 using xhci_hcd 
**notebook:~ #**

What does your system report?

Try

yast2-/etc/sysconfig Editor-Hardware-Mouse-Console-MOUSETYPE.

Try the different options

You can try to install

xdotool 

or

xev

to test your mouse.

Impacted by this bug perhaps?
https://bugzilla.opensuse.org/show_bug.cgi?id=1200781

This happens, when you do an online distribution upgrade, you carry old, deprecated configuration files along…

Cause for the problem was an outdated **/etc/X11/xorg.conf.d/50-mouse.conf

**Changing

Driver "evdev"

to

**Driver “libinput”

**did the trick, this is now the working 50-mouse.conf I use.

Though, maybe you even do not need 50-mouse.conf at all, but haven´t tried that yet.
I guess /etc/X11/xorg.conf.d/40-libinput.conf automatically sets up everything, for now I stick with 50-mouse.conf.



$ cat /etc/X11/xorg.conf.d/50-mouse.conf 

Section "InputDevice"

        Identifier  "Logitech-M330"

        # Driver      "evdev" # probably deprecated !
        Driver  "libinput"

        # /dev/input/mouse1 is external mouse, mouse0 is touchpad
        Option      "Device" "/dev/input/mouse1"
        
        Option      "CorePointer"
        Option      "ConstantDeceleration" "5"
        Option      "AccelerationProfile" "-1"
EndSection


That can happen, but removing 50-mouse.conf should have been sufficient here. You should have 40-libinput.conf present to take care of the necessary.