Ubuntu/Linux disable extra Mouse Buttons Microsoft Comfort Mouse 4500

I find it very annoying that this mouse has buttons on the side where you grip it and the left one goes back in the browser and the right one goes forward.  Imagine if you\'re filling out a form and hit it, most forms/websites have no protection against it.

Source: http://ubuntuforums.org/showthread.php?t=2065400

Here's how I fixed it with xinput, it\'s too bad there\'s no good standard GUI tool to set mouse buttons:

xinput list

This will show your input devices, in my case "10" was the case.

xinput list 10
Microsoft Microsoft® Comfort Mouse 4500    id=10    [slave  pointer  (2)]
    Reporting 5 classes:
        Class originated from: 10
        Buttons supported: 13
        Button labels: Button Left Button Middle Button Right Button Wheel Up Button Wheel Down Button Horiz Wheel Left Button Horiz Wheel Right Button Side Button Extra Button Unknown Button Unknown Button Unknown Button Unknown
        Button state:
        Class originated from: 10
        Keycodes supported: 248
        Class originated from: 10
        Detail for Valuator 0:
          Label: Abs X
          Range: -1.000000 - -1.000000
          Resolution: 1 units/m
          Mode: relative
        Class originated from: 10
        Detail for Valuator 1:
          Label: Abs Y
          Range: -1.000000 - -1.000000
          Resolution: 1 units/m
          Mode: relative
        Class originated from: 10
        Detail for Valuator 2:
          Label: Abs Gas
          Range: -1.000000 - -1.000000
          Resolution: 1 units/m
          Mode: relative

Solution

It is tedious but copy and paste the "Button labels" and put each one in a text file (that has numbered lines) and separate each "Button" at the beginning of each like this (this will make it easier to number each button you want and disable them).

  1. Button Left
  2. Button Middle
  3. Button Right
  4. Button Wheel Up
  5. Button Wheel Down
  6. Button Horiz Wheel Left
  7. Button Horiz Wheel Right
  8. Button Side
  9. Button Extra
  10. Button Unknown
  11. Button Unknown
  12. Button Unknown
  13. Button Unknown


xinput set-button-map 10 1 2 3 4 5 6 7 0 0 10 11 12 13
 

Note the "10" after "set-button-map" that corresponds to your device number/id.

Note the "0 0" after "7" corresponds to the two side buttons, you set 0 in place of the button number to disable it.


Tags:

ubuntu, linux, disable, microsoft, browser, websites, http, ubuntuforums, org, showthread, php, xinput, gui, input, devices, quot, reg, pointer, reporting, originated, supported, labels, horiz, keycodes, valuator, label, abs, resolution, mode, relative, tedious, text, numbered, corresponds,

Latest Articles

  • systemd-journald high memory usage solution
  • How to Install FreePBX in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist
  • How to Install Any OS on a Physical Drive from Windows Using VMware Workstation (Linux, Windows, BSD)
  • CDN Cloudflare how to set and preserve the real IP of the client without modifying application code on Apache
  • CentOS 7 fix Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was 14: curl#6 -
  • Ubuntu Debian How To Install Recommended Packages Automatically
  • How to set Linux Ubuntu Redhat Debian Command Line http https socks proxy for yum apt
  • How to resize a pdf without losing much quality in Linux Mint Ubuntu Debian Redhat Solution
  • qemu: could not load PC BIOS 'bios-256k.bin' solution