Bug 402740

Summary: Cannot configure wheel emulation on Wayland
Product: [Applications] systemsettings Reporter: Javier Ortega Conde (Malkavian) <malkavian666>
Component: kcm_mouseAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: major CC: bugseforuns, unassigned-bugs
Priority: NOR    
Version: 5.14.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Javier Ortega Conde (Malkavian) 2019-01-01 01:27:25 UTC
I have a 3M Ergonomic Mouse which should emulate the wheel when middle button is pressed and mouse moved. It is configurable in xorg.conf but for Wayland I didn't find a way to do it manually with libinput commands or config files. I read that for Wayland, Plasma should give you the configure options to configure libinput so I am asking for it so I would be able to use Plasma over Wayland instead of xorg.

SOFTWARE/OS VERSIONS
Debian testing + unstable
Linux Kernel 4.19.0-1-rt-amd64
KDE Plasma 5.14.3
Qt version 5.11.2
Comment 1 Patrick Silva 2019-03-26 21:14:45 UTC

*** This bug has been marked as a duplicate of bug 383379 ***
Comment 2 Javier Ortega Conde (Malkavian) 2022-09-15 19:42:47 UTC
Solution found at https://www.reddit.com/r/kde/comments/cihn8b/is_there_a_way_to_enable_scroll_emulation_for_the/

You must run krunner (the Plasma command box that you can run with Alt+F2) from Wayland, write KWin and it will show "Open kwin debug console" as first option probably. Run that, there go to "Input devices tab", probably enlarge first column by click and move in the small bar between columns so you can see complete names, search there your mouse, mine is called "PixArt USB Optical Mouse" and inside it in the first options there is "sysName", for me its value is "event20". Exit kwin debug console and in linux commandline run this command (Where XX is the mouse device event value, for me 20):

qdbus org.kde.KWin /org/kde/KWin/InputDevice/eventXX org.kde.KWin.InputDevice.scrollOnButtonDown true


It should work after reboot too.