How can I disable the mouse scroll wheel while keeping the middle-click functionality?

0
50
Asked By PixelProwler99 On

I'm having an issue with my mouse's scroll wheel sensor—it seems to be malfunctioning, causing my document to jump around when I scroll. This is really frustrating, especially since it also impacts the middle-click function when I want to open links. I'm on Linux Mint 22.2 and I'm looking for a way to completely disable the scroll wheel but still keep the ability to middle-click. Any advice on how to configure my system for this?

5 Answers

Answered By CuriousCoder On

Honestly, from what I can tell, it could be a hardware issue. You might want to test with a different mouse to see if the problem persists. If it doesn't, then it might be time to look for a new mouse.

Answered By CleanMousePro On

Best case scenario, it's just dirt inside causing the scroll wheel to misbehave. Try blowing some compressed air into the gaps around the wheel, or if you're handy, disassemble it, clean it, and put it back together.

Answered By TrackballTroubles On

Hey, is it a Kensington trackball by chance? I faced a similar issue and ended up with a dead wheel too!

Answered By GadgetGuru On

If you're experiencing this issue, it might be worth checking if there's any physical damage to the mouse or if dust has gotten inside the sensor area. Sometimes, simply cleaning it out with some compressed air can resolve the problem.

Answered By TechSavvyTom On

You can actually disable the scroll wheel using a command called `xinput`. Typically, the scroll wheel's up and down actions are represented as buttons 4 and 5. To disable them while keeping middle-click, you can run a command like this:

```bash
xinput set-button-map 'Kensington USB Wheel Mouse' 1 2 3 0 0 6 7
```

This will disable the scrolling. You can find your mouse's name by running `xinput` without any arguments, and use `get-button-map` to check your current settings. Just a heads up, this setting won’t stick after a reboot, so you’ll want to add this command to your startup applications so it runs automatically each time you log in.

User1234 -

I haven't used it in forever, but I think you can set inputs permanently through the `libinput.conf` in `xorg.conf.d`.

MouseMaster99 -

That worked perfectly for me! Just a tip: I initially had a wireless setup, and `xinput` showed both my mouse and the USB dongle. I had to disable the settings for the USB receiver instead of the mouse itself.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.