Problems about swapping mouse buttons

Bug #1247534 reported by Xue Fuqiao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xinput (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

Revision history for this message
Xue Fuqiao (xfq-free) wrote :
Revision history for this message
Xue Fuqiao (xfq-free) wrote :

Add lspci-vvnn.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lsusb-v" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Xue Fuqiao (xfq-free)
tags: removed: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.