Bug 451067

Summary: Mouse reversed scrolling is wrong after disconnecting and reconnecting the mouse
Product: [Plasma] kwin Reporter: Aaron Miller <kdeaaron>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: kde, sander.lindeman
Priority: NOR    
Version: 5.24.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:

Description Aaron Miller 2022-03-03 06:21:00 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. For Mouse settings, check Invert scroll direction
2. Suspend system
3. Wake up system
4. Scroll with the mouse wheel

OBSERVED RESULT
Scrolling is not inverted.

EXPECTED RESULT
Scrolling direction is inverted.

Note: unchecking "Invert scroll direction", applying, then checking, and applying again, temporarily fixes the issue only until the system is suspended again.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2022-03-14 23:34:31 UTC
X or wayland?
Comment 2 Aaron Miller 2022-03-15 00:43:18 UTC
This is X. I am unable to test Wayland anytime soon.
Comment 3 Sander Lindeman 2022-03-17 10:39:40 UTC
I'm having the same issue on X11. I've tried using Wayland but I could not reproduce the issue there.

It does not seem to be suspend-related. If I turn off and on the bluetooth on my mouse, I get the same result: scroll direction is reverted back. Also when I switch my mouse from bluetooth to usb-dongle the same happens.

Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.17.0-rc8 (64-bit)
Graphics Platform: X11
Comment 4 Aaron Miller 2022-03-19 06:43:21 UTC
(In reply to Sander Lindeman from comment #3)
> I'm having the same issue on X11. I've tried using Wayland but I could not
> reproduce the issue there.
> 
> It does not seem to be suspend-related. If I turn off and on the bluetooth
> on my mouse, I get the same result: scroll direction is reverted back. Also
> when I switch my mouse from bluetooth to usb-dongle the same happens.
> 
> Operating System: Kubuntu 21.10
> KDE Plasma Version: 5.24.3
> KDE Frameworks Version: 5.92.0
> Qt Version: 5.15.2
> Kernel Version: 5.17.0-rc8 (64-bit)
> Graphics Platform: X11

I think you are correct, and I was mistaken. I have a USB wireless mouse, not Bluetooth, and I can reproduce the scrolling problem by unplugging and plugging back in the USB dongle.

I will change the bug title accordingly.
Comment 5 Sander Lindeman 2022-03-21 06:51:15 UTC
A bug report about this has made it to the 15-minute bug initiative: https://bugs.kde.org/show_bug.cgi?id=435113
So hopefully this will be addressed soon!
Comment 6 Sander Lindeman 2022-03-21 06:52:14 UTC

*** This bug has been marked as a duplicate of bug 435113 ***