Bug 449811

Summary: Mouse acceleration reset after mouse unplug/plug operation
Product: [Applications] systemsettings Reporter: Ivan <fio2003>
Component: kcm_mouseAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aagaande, me, nate
Priority: NOR Keywords: regression
Version: 5.24.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=435113
Latest Commit: Version Fixed In:

Description Ivan 2022-02-09 00:10:46 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Set mouse acceleration to flat profile and set pointer speed () to second position 
2. Unplug and plug mouse

OBSERVED RESULT
Acceleration restored to top acceleration value (scroll not changed)

EXPECTED RESULT
Acceleration restored to previously set value

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
(available in About System)
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0-r1
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Did not happen in 5.23.5 or any previous versions


dmesg:
[Feb 8 16:38] usb 1-5: USB disconnect, device number 71
[  +0.000003] usb 1-5.1: USB disconnect, device number 72
[  +0.045449] usb 1-5.3: USB disconnect, device number 73
[Feb 8 16:48] usb 1-5: new high-speed USB device number 74 using xhci_hcd
[  +0.145063] usb 1-5: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.44
[  +0.000003] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000001] usb 1-5: Product: 4-Port USB 2.0 Hub
[  +0.000002] usb 1-5: Manufacturer: Generic
[  +0.045768] hub 1-5:1.0: USB hub found
[  +0.001602] hub 1-5:1.0: 4 ports detected
[  +0.350575] usb 1-5.1: new full-speed USB device number 75 using xhci_hcd
[  +4.194090] usb 1-5.1: New USB device found, idVendor=1b1c, idProduct=1b13, bcdDevice= 3.08
[  +0.000004] usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000001] usb 1-5.1: Product: Corsair K70 RGB Gaming Keyboard 
[  +0.000001] usb 1-5.1: Manufacturer: Corsair
[  +0.000001] usb 1-5.1: SerialNumber: 1400701EAE3D8C8153AA2CE2F5001941
[  +0.952370] input: Corsair Corsair K70 RGB Gaming Keyboard  Keyboard as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.1/1-5.1:1.0/0003:1B1C:1B13.006D/input/input191
[  +0.052717] input: Corsair Corsair K70 RGB Gaming Keyboard  as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.1/1-5.1:1.0/0003:1B1C:1B13.006D/input/input192
[  +0.000044] input: Corsair Corsair K70 RGB Gaming Keyboard  as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.1/1-5.1:1.0/0003:1B1C:1B13.006D/input/input193
[  +0.000059] hid-generic 0003:1B1C:1B13.006D: input,hiddev1,hidraw1: USB HID v1.11 Keyboard [Corsair Corsair K70 RGB Gaming Keyboard ] on usb-0000:2a:00.1-5.1/input0
[  +0.626940] hid-generic 0003:1B1C:1B13.006E: hiddev2,hidraw2: USB HID v1.11 Device [Corsair Corsair K70 RGB Gaming Keyboard ] on usb-0000:2a:00.1-5.1/input1
[  +0.029148] elogind-daemon[3407]: Watching system buttons on /dev/input/event12 (Corsair Corsair K70 RGB Gaming Keyboard  Keyboard)
[  +0.048755] usb 1-5.3: new full-speed USB device number 76 using xhci_hcd
[  +0.107821] usb 1-5.3: New USB device found, idVendor=2ea8, idProduct=2203, bcdDevice= 1.02
[  +0.000003] usb 1-5.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000001] usb 1-5.3: Product: Xtrfy M4
[  +0.000001] usb 1-5.3: Manufacturer: Wings Tech
[  +0.105111] input: Wings Tech Xtrfy M4 as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.3/1-5.3:1.0/0003:2EA8:2203.006F/input/input194
[  +0.000069] hid-generic 0003:2EA8:2203.006F: input,hidraw3: USB HID v1.11 Mouse [Wings Tech Xtrfy M4] on usb-0000:2a:00.1-5.3/input0
[  +0.004111] input: Wings Tech Xtrfy M4 Keyboard as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.3/1-5.3:1.1/0003:2EA8:2203.0070/input/input195
[  +0.052003] hid-generic 0003:2EA8:2203.0070: input,hiddev3,hidraw4: USB HID v1.11 Keyboard [Wings Tech Xtrfy M4] on usb-0000:2a:00.1-5.3/input1
[  +0.038171] elogind-daemon[3407]: Watching system buttons on /dev/input/event16 (Wings Tech Xtrfy M4 Keyboard)
[Feb 8 17:23] usb 1-5: USB disconnect, device number 74
[  +0.000003] usb 1-5.1: USB disconnect, device number 75
[  +0.058468] usb 1-5.3: USB disconnect, device number 76
[Feb 8 18:14] usb 1-5: new high-speed USB device number 77 using xhci_hcd
[  +0.145271] usb 1-5: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.44
[  +0.000003] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000001] usb 1-5: Product: 4-Port USB 2.0 Hub
[  +0.000001] usb 1-5: Manufacturer: Generic
[  +0.041518] hub 1-5:1.0: USB hub found
[  +0.001601] hub 1-5:1.0: 4 ports detected
[  +0.345602] usb 1-5.1: new full-speed USB device number 78 using xhci_hcd
[  +4.219084] usb 1-5.1: New USB device found, idVendor=1b1c, idProduct=1b13, bcdDevice= 3.08
[  +0.000005] usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000001] usb 1-5.1: Product: Corsair K70 RGB Gaming Keyboard
[  +0.000001] usb 1-5.1: Manufacturer: Corsair
[  +0.000000] usb 1-5.1: SerialNumber: 1400701EAE3D8C8153AA2CE2F5001941
[  +0.936364] input: Corsair Corsair K70 RGB Gaming Keyboard  Keyboard as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.1/1-5.1:1.0/0003:1B1C:1B13.0071/input/input197
[  +0.051737] input: Corsair Corsair K70 RGB Gaming Keyboard  as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.1/1-5.1:1.0/0003:1B1C:1B13.0071/input/input198
[  +0.000033] input: Corsair Corsair K70 RGB Gaming Keyboard  as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.1/1-5.1:1.0/0003:1B1C:1B13.0071/input/input199
[  +0.000059] hid-generic 0003:1B1C:1B13.0071: input,hiddev1,hidraw1: USB HID v1.11 Keyboard [Corsair Corsair K70 RGB Gaming Keyboard ] on usb-0000:2a:00.1-5.1/input0
[  +0.627947] hid-generic 0003:1B1C:1B13.0072: hiddev2,hidraw2: USB HID v1.11 Device [Corsair Corsair K70 RGB Gaming Keyboard ] on usb-0000:2a:00.1-5.1/input1
[  +0.027474] elogind-daemon[3407]: Watching system buttons on /dev/input/event12 (Corsair Corsair K70 RGB Gaming Keyboard  Keyboard)
[  +0.049415] usb 1-5.3: new full-speed USB device number 79 using xhci_hcd
[  +0.107184] usb 1-5.3: New USB device found, idVendor=2ea8, idProduct=2203, bcdDevice= 1.02
[  +0.000003] usb 1-5.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000002] usb 1-5.3: Product: Xtrfy M4
[  +0.000001] usb 1-5.3: Manufacturer: Wings Tech
[  +0.103085] input: Wings Tech Xtrfy M4 as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.3/1-5.3:1.0/0003:2EA8:2203.0073/input/input200
[  +0.000056] hid-generic 0003:2EA8:2203.0073: input,hidraw3: USB HID v1.11 Mouse [Wings Tech Xtrfy M4] on usb-0000:2a:00.1-5.3/input0
[  +0.004104] input: Wings Tech Xtrfy M4 Keyboard as /devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-5/1-5.3/1-5.3:1.1/0003:2EA8:2203.0074/input/input201
[  +0.051709] hid-generic 0003:2EA8:2203.0074: input,hiddev3,hidraw4: USB HID v1.11 Keyboard [Wings Tech Xtrfy M4] on usb-0000:2a:00.1-5.3/input1
[  +0.039154] elogind-daemon[3407]: Watching system buttons on /dev/input/event16 (Wings Tech Xtrfy M4 Keyboard)
Comment 1 Anders Aagaard 2022-02-11 10:28:15 UTC
Also seeing this on archlinux. This is a regression from 5.23.

When hotplugging a mouse (which I do a ton of times every day due to a vfio setup) the mouse acceleration is very high. Going into settings my correct values are there, but they are clearly not in effect. If I change mouse movement speed down one step and back up again my mouse moves normally again.
Comment 2 Nate Graham 2022-02-11 21:46:33 UTC
What kind of mice do you have? Normal boring mice, or fancy gaming mice with internal memory?

Seems like Bug 435113.
Comment 3 Nate Graham 2022-02-11 22:02:58 UTC
Yeah seems like Bug 435113, which has become worse/more reproducible recently.

*** This bug has been marked as a duplicate of bug 435113 ***
Comment 4 Ivan 2022-02-11 23:04:10 UTC
It is a wired mouse: Xtrfy M4 RGB
It does not seem like it has internal memory. However, it has a switch to change pooling rate, a button to change DPI, and a button to change light color. 
In dmesg it is shown as a keyboard.
Comment 5 Anders Aagaard 2022-02-13 20:23:12 UTC
Mine is definitely in the fancy gaming mouse category. Logitech G502 Hero.