Using Mint 16 Mate 64-bit.
I tried a solution on this forum that claimed to disable the side mouse buttons, to no avail. I too am driven nuts by accidental back/forward navigation from side buttons; this happens all the time, and in fact, it just happened as I was typing this post. I want to disable the side buttons forever.
My mouse is device #4 ( as opposed to #8 ) and gives ten numbers, and only modifying the suggested code to compensate as such:
xinput set-button-map 4 1 2 3 4 5 0 0 0 0 0
does nothing. In fact, changing them all to 0 does nothing. All buttons still work regardless of the settings.
Any other suggestions? Is there a configuration file I can just tweak?
I'd do surgery on this mouse and cut the lines to the two buttons but there are no screws, thus no inside access without tearing it up.
Thanks.
Unable to disable side mouse buttons with xinput
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Unable to disable side mouse buttons with xinput
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- I'm running Mint 18 Mate 64-bit
- 4.15.0-34-generic x86_64
- All my bash scripts begin with #!/bin/bash
- 4.15.0-34-generic x86_64
- All my bash scripts begin with #!/bin/bash
Re: Unable to disable side mouse buttons with xinput
Not sure if this is already the solution that you've tried but I managed to write a shell script that disabled the side buttons on my mouse. I too am running Mint 16 64bit with the Mate desktop and here's a link to the thread about killing off those pesky side buttons http://forums.linuxmint.com/viewtopic.php?f=42&t=142110
Some stuff I made using FOSS http://caz747.deviantart.com/
Re: Unable to disable side mouse buttons with xinput
Yes, I did try that to no avail. Apparently there are variations amongst machines regarding xinput settings...
Using device #8 per http://forums.linuxmint.com/viewtopic.php?f=42&t=142110 , the code gives me:
"Device has no buttons"
I discovered that my mouse is actually device #4 on my machine, so I can change the code accordingly, however, it has no effect on the side mouse buttons.
Rather than executing code to change the settings can I just take a look at the configuration file itself? ( Can I find the default settings in a configuration file on the disk? If so, where? )
Thanks
Maybe one day we'll have the luxury of configuring the mouse buttons from Control Center.
Using device #8 per http://forums.linuxmint.com/viewtopic.php?f=42&t=142110 , the code gives me:
"Device has no buttons"
I discovered that my mouse is actually device #4 on my machine, so I can change the code accordingly, however, it has no effect on the side mouse buttons.
Rather than executing code to change the settings can I just take a look at the configuration file itself? ( Can I find the default settings in a configuration file on the disk? If so, where? )
Thanks
Maybe one day we'll have the luxury of configuring the mouse buttons from Control Center.
- I'm running Mint 18 Mate 64-bit
- 4.15.0-34-generic x86_64
- All my bash scripts begin with #!/bin/bash
- 4.15.0-34-generic x86_64
- All my bash scripts begin with #!/bin/bash
Re: Unable to disable side mouse buttons with xinput
I found a couple of threads that might be of interest. I haven't tried out any of the suggestions as changing the settings via xinput and using a shell script to make the changes stick works for me, but as you say different machines react in different ways to the changes. Anyway, these two threads show some promise
http://forums.linuxmint.com/viewtopic.p ... 9&t=128144
http://www.butlerpc.net/blog/2011/01/us ... -commands/
btw, sorry about the delay in getting back to this thread, I forgot it was here.
http://forums.linuxmint.com/viewtopic.p ... 9&t=128144
http://www.butlerpc.net/blog/2011/01/us ... -commands/
btw, sorry about the delay in getting back to this thread, I forgot it was here.
Some stuff I made using FOSS http://caz747.deviantart.com/
Re: Unable to disable side mouse buttons with xinput
No problem, I'm not paying you, so all is well, lol. I just assume everyone on the forum is busy like I am.
Would installing xbindkeys interfere with compiz bindkeys or replace them? I use compiz for my keyboard bindkeys, and kind of don't like it because I'm limited to 20 bindkeys, but it is able to map key combinations to special actions that I don't think are supported by xbindkeys. So if I can disable the side mouse buttons with xbindkeys, great, but only if I can still use compiz keyboard bindkeys. Regarding the first link, it didn't appear there's an option to disable the mouse buttons, only assign them to something. If they are assigned to a blank value will that disable them? I definitely don't want to use the side mouse buttons at all; they're too easy to click accidentally. Also I didn't see anything in the second link about mouse buttons; just keys.
I'm thinking there may be an xinput solution but I just don't have the expertise and time to figure it out.
Thanks
Would installing xbindkeys interfere with compiz bindkeys or replace them? I use compiz for my keyboard bindkeys, and kind of don't like it because I'm limited to 20 bindkeys, but it is able to map key combinations to special actions that I don't think are supported by xbindkeys. So if I can disable the side mouse buttons with xbindkeys, great, but only if I can still use compiz keyboard bindkeys. Regarding the first link, it didn't appear there's an option to disable the mouse buttons, only assign them to something. If they are assigned to a blank value will that disable them? I definitely don't want to use the side mouse buttons at all; they're too easy to click accidentally. Also I didn't see anything in the second link about mouse buttons; just keys.
I'm thinking there may be an xinput solution but I just don't have the expertise and time to figure it out.
Thanks
- I'm running Mint 18 Mate 64-bit
- 4.15.0-34-generic x86_64
- All my bash scripts begin with #!/bin/bash
- 4.15.0-34-generic x86_64
- All my bash scripts begin with #!/bin/bash
Re: Unable to disable side mouse buttons with xinput
I not real sure as to what you can try next. xinput appears to be the easiest way to disable the buttons so it might be worth trying that way again. You might need to log out and back in again after the changes have been made to the xinput file before the changes will take effect, also it might be a good idea to write the shell script and set it to executable before login out. If you have already tried this then I'm sorry but I'm right out of ideas.
The only other thing that I can find, but this appears to be more to do with mapping the buttons, is "easystroke" It's available via synaptic.
There's some info here about it http://sourceforge.net/apps/trac/easystroke/ and under the tips and tricks section there's something about remapping buttons that are not needed. I've not tried any of this out though. Best of luck.
The only other thing that I can find, but this appears to be more to do with mapping the buttons, is "easystroke" It's available via synaptic.
There's some info here about it http://sourceforge.net/apps/trac/easystroke/ and under the tips and tricks section there's something about remapping buttons that are not needed. I've not tried any of this out though. Best of luck.
Some stuff I made using FOSS http://caz747.deviantart.com/