Public bug reported:

I use the following script to swap right-click and middle-click buttons:

  # swap middle and right button
  MY_MOUSE_ID=$(xinput list | grep "Mouse" | sed -r 's/.*id=([0-9]+).*/\1/')
  xinput --set-button-map ${MY_MOUSE_ID} 1 3 2

It can work, but after a while (about 30min-1h), the buttons
automatically swap back so I have to execute the commands again...

I'm using Ubuntu 13.10 (with xinput 1.6.0-1).  It's a USB optical mouse.

$ uname -a
Linux xfq-Inspiron-5437 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 
2013 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/version_signature
Ubuntu 3.11.0-12.19-generic 3.11.3

** Affects: xinput (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "lsusb-v"
   https://bugs.launchpad.net/bugs/1247534/+attachment/3898983/+files/lsusb-v

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xinput in Ubuntu.
https://bugs.launchpad.net/bugs/1247534

Title:
  Problems about swapping mouse buttons

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xinput/+bug/1247534/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to