You are not logged in.
Hi!
As I understand, KDE uses the libinput driver for the mouse and that's whay in mouse settings there are no more advanced options.
The option I am missing is the one to change the KDE default behaviour to scroll 3 lines with one "click" of the mouse wheel to a single line. I ahve to use big icons and fonts, scrolling 3 lines in every listiong is like jumping around.
From some posts I found that I have to enable the evdev driver for the mouse by adding:
Section "InputClass"
Identifier "evdev-mouse"
MatchIsPointer "yes"
Driver "evdev"
EndSection
to a Xorg Config file like "10-mouse-evDO dev.conf".
I have done that but I can not see any difference and I still have no otion to confifgure the line scrolling value.
There are a few things I am curious about:
- How to change the KDE mouse behaviour in a way the the scroll wheel scrolls one line per step?
- Using the Nvidia driver "nvidia", does my system even read the xorg.conf files?
- Do I have to remove or add any libinput packages to make this work?
thx for any help,
p.
Last edited by piedro (2020-03-31 13:12:42)
Offline
The mouse wheel is sending button press events. It's not sending fine-grained coordinates like the main sensor of the mouse. There is no scaling you can tweak at a low level in the driver. The thing you can tweak there is how things like a touchpad's scrolling gestures behave, but not for a mouse wheel. What I want to say: don't look into libinput or evdev, there's nothing you can do in their Xorg config settings.
You need to look into the configuration of your programs and look into what Qt and GTK can do about scrolling. I remember in KDE 4, the settings tool showed a setting about scrolling lines somewhere. It would only tweak KDE program behavior, it wasn't something that worked for all programs. That scroll setting is perhaps still there in KDE 5? Try to find it in the KDE settings tool.
About other programs, you can tweak the scrolling in web browsers. Firefox has scrolling settings somewhere in "about:config". For Chrome/Chromium there are extensions that can tweak scrolling so look around in the Google Chrome web store.
Offline
THx for your answer.
Yes there has been the setting "number of scroll lines" in the KDE advanced KDE mouse settings.
Since KDE uses libinput these advanced settings have been removed. At least that 's what I understand. So the advice is to use the evdev driver for the mouse which, as is suggested, brings back these settings within the KDE system settings.
So that is what I try to do.
But, as said, the adding of an xorg,conf.d conf file doesn't force the use of the evdev driver.
Any idea how to do that?
Offline
That file you showed should work. How do you know that it's not working? What do you see if you run "xinput list-props <id>" with the <id> being the number for your mouse from the output of "xinput list"?
In the output of "xinput list-props ...", you will see either "libinput" or "evdev" mentioned in the property names. That's how you'll know if you are using evdev or not.
I happen to use evdev, so I can show you an example of how things will look like with evdev:
$ xinput list-props 8
Device 'Logitech G305':
Device Enabled (149): 1
Coordinate Transformation Matrix (151): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Product ID (271): 1133, 16500
Device Node (272): "/dev/input/event3"
Evdev Axis Inversion (286): 0, 0
Evdev Axes Swap (288): 0
Axis Labels (289): "Rel X" (159), "Rel Y" (160), "Rel Horiz Wheel" (280), "Rel Vert Wheel" (281), "None" (0), "None" (0)
Button Labels (290): "Button Left" (152), "Button Middle" (153), "Button Right" (154), "Button Wheel Up" (155), "Button Wheel Down" (156), "Button Horiz Wheel Left" (157), "Button Horiz Wheel Right" (158), "Button Side" (275), "Button Extra" (276), "Button Forward" (277), "Button Back" (278), "Button Task" (279), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274), "Button Unknown" (274)
Evdev Scrolling Distance (291): 1, 1, 1
Evdev Middle Button Emulation (292): 0
Evdev Middle Button Timeout (293): 50
Evdev Middle Button Button (294): 2
Evdev Third Button Emulation (295): 0
Evdev Third Button Emulation Timeout (296): 1000
Evdev Third Button Emulation Button (297): 3
Evdev Third Button Emulation Threshold (298): 20
Evdev Wheel Emulation (299): 0
Evdev Wheel Emulation Axes (300): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (301): 10
Evdev Wheel Emulation Timeout (302): 200
Evdev Wheel Emulation Button (303): 4
Evdev Drag Lock Buttons (304): 0You can see there's an "evdev" word at the beginning of the property names.
Last edited by Ropid (2020-03-28 03:38:07)
Offline
Thank you a lot!
I installed xorg-input, checked the id and listed the props. Turns out I use evdev!
So I reinstalled the KDE "systemsettings" package and all the installed "kcm-pointing-devices-git". Rebooted the system...
...and there they are: the missing advanced settings!
I do not know which step has been the culprit here exactly but I am very glad it works now!
Thanks again!
Cheers, p.
p.s: Though it needs to be mentioned that Dolphin still scolls two lines at a time (before it's been six!)
I guess that the alternating background of lines creates a "one unit section". Since I do not know where to change the alternating background of the lines in Dolphin I can not confirm this hunch...
Last edited by piedro (2020-03-31 13:18:21)
Offline