Mouse scroll wheel - set lines scrolled

How do set the number of lines scrolled for the minimum scroll wheel movement of my mouse? (Leap 15.4)

Please tell us which desktop environment you are using, and more information about the particular device in question…

sudo libinput list-devices

It is usb mouse - logitech M525

Desktop is kde:
KDE 5.90.0 Plasma 5.24.4
Qt: 5.15.2
X11

libinput (in part)
Device: Logitech M525
Kernel: /dev/input/event3
Group: 5
Seat: seat0, default
Capabilities: pointer
Tap-to-click: n/a
Tap-and-drag: n/a
Tap drag lock: n/a
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: button
Click methods: none
Disable-w-typing: n/a
Accel profiles: flat *adaptive
Rotation: n/a

The output you shared confirms that the mouse is being handled by the libinput driver (as expected). When using libinput, the KDE System Settings Mouse config shows

If using the evdev Xorg driver instead, the following advanced settings are possible…

You can create a custom Xorg config file (eg /etc/X11/xorg.conf.d/90-mouse.conf) which specifies that th evdev driver shall be used. It can be made device specific, or if you’re feeling lazy you can copy 10-evdev.conf to 90-override.conf so to ensure that it overrides other config files so that all input devices will use it…

sudo cp /etc/X11/xorg.conf.d/10-evdev.conf /etc/X11/xorg.conf.d/90-override.conf

It will take effect the next time the X-server is started. You can do that by holding CTRL+ALT+Backspace down until it restarts.

Confirm the input drivers that are in use with…

grep "Using input" /var/log/Xorg.0.log

Hope that helps.

BTW, a similar thread that may be of interest…
https://bbs.archlinux.org/viewtopic.php?id=254027

That works everywhere but firefox which still scrolls 5 or 6 lines per wheel event
Is there a way to fix that?

Yes, that is an application specific configuration that is required.

Hinted at in the archlinux thread I linked to…

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.

Open a new tab > type ‘about:config’ > search for ‘mousewheel.min_line_scroll_amount’ > adjust the value as required.

I did the about:config thing and changed mousewheel.min_line_scroll_amount to 1 but it made no difference.

Have you tried solaar to change the mouse settings?

I have no idea why that didn’t work for you.

It’s mentioned here and other places…
https://wiki.archlinux.org/title/Firefox/Tweaks
https://www.reddit.com/r/firefox/comments/ivf0iy/mousescroll_speed_adjustments/