Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed Linux Mint 19.x on two machines to dual boot with a Windows OS.
On both machines, I cannot figure out how to get my USB wheel mouse to behave as it does in the Windows OS when running Mint.
I want to be able to "scroll lock" by pressing the wheel and have this functionality in any application. I also want to be able to set the speed of scrolling when turning the wheel. (the default is very slow).
By default libinput is handling input devices now. It is not a given that all pointing devices will have the same features available or configuration options as a Windows environment might offer.
Install 'libinput-tools' (if not already installed) and then run
Code:
sudo libinput list-devices
Post the output here. That might help others to advise further.
I am a newbie at Linux, so I don't know exactly what all that means, but it looks like the update I did to Mint V.19.3 a few days ago did not install the Libinput-Tools.
Played with ImWheel in the past... it does nothing for scroll lock.
Ok... although the link you posted above did nothing for me on previous attempts, this time around it installed the libinput-tools. Here is the output I believe is pertinent.
Played with ImWheel in the past... it does nothing for scroll lock.
Are you sure? It mentions about editing ~/.imwheelrc
In particular, I note the following information...
Quote:
Code:
".*"
None, Up, Button4, 3
None, Down, Button5, 3
"3" at the end of lines two and three represent the number of lines to scroll ("3" should be default) - modify this number to suit your needs. Once you're done, save the file.
The first (".*") line from the code used above represents is used to specify in which applications to use those settings. ".*" means everywhere, but you can also apply application-specific settings by changing ".*" to the window name (and add multiple application-dependent settings). Run "man imwheel" for more information.
And finally, the last 4 lines in the code above are there to allow Ctrl / Shift with mouse scroll wheel up / down to work (for instance, to allow zooming in on a webpage in the web browser, etc.), which is the default behaviour.
Beyond using imwheel, I'm not sure that any other desktop-wide solution exists. I know applications such as firefox can be tweaked individually, but I imagine this is not what you're looking for.
This Linux Mint thread also discusses mouse wheel scrolling https://forums.linuxmint.com/viewtopic.php?t=283141
It does mention the systemd-hwdb (hardware database) which provides a list of common mice attribute values (refer /usr/lib/udev/hwdb.d/70-mouse.hwdb) and it is possible to create a custom .hwdb file with adjusted values for a given input device. I've seen this approach used to alter mice speed, but it is not a newbie exercise so I don't want to lead you down that experimental path with your level of knowledge. Instead, I'll leave you with a couple of links to pages discussing this subject (then you can decide for your self if you think it's beyond you etc)....
Ferrari... imwheel does indeed affect lines scrolled per "clicks" of the mouse wheel, but it didn't help for what I'm seeking.
In any MS Windows app that covers more than a page, you can press the mouse wheel down one time to "scroll lock", which then makes your cursor appear as a 4 arrow circular pointer, and you can then move the mouse in any direction to scroll large images, pages, text files, etc, left, right, up or down.
This is the effect I'm looking to replicate in Linux Mint.
Yes, imwheel will only help with setting the scroll wheel speed (which you also requested).
It does appear that libinput 1.15 onwards is providing this feature. You can get the libinput version using
Code:
libinput --version
Quote:
libinput and button scrolling locks
For a few years now, libinput has provided button scrolling. Holding a designated button down and moving the device up/down or left/right creates the matching scroll events. We enable this behaviour by default on some devices (e.g. trackpoints) but it's available on mice and some other devices. Users can change the button that triggers it, e.g. assign it to the right button. There are of course a couple of special corner cases to make sure you can still click that button normally but as I said, all this has been available for quite some time now.
New in libinput 1.15 is the button lock feature. The button lock removes the need to hold the button down while scrolling. When the button lock is enabled, a single button click (i.e. press and release) of that button holds that button logically down for scrolling and any subsequent movement by the device is translated to scroll events. A second button click releases that button lock and the device goes back to normal movement. That's basically it, though there are some extra checks to make sure the button can still be used for normal clicking (you will need to double-click for a single logical click now though).
Yes, it's not available yet AFAIU. I did find build instructions here, but that was for 1.14.901 (and it took a little effort to get the dependencies sorted). In short, I think it's best to wait until it's available for your distro.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.