I have a Lenovo ThinkPad T430s running with Arch Linux/Gnome 3.6 and I want to switch the left and right button of the trackpoint buttons (the upper ones). I can switch the left/right buttons of ALL mouses (trackpoint/touchpad/bluetooth mouses/usb mouses etc) with the gnome control center no problem, but not specifically for the trackpoint.
When I enter
xinput set-button-map 14 3 2 1 4 5 6 7
where 14 is the current xinput list device id of my trackpoint, everything is fine until I reboot, which also changes the device id somehow. It is possible to specify the device by name:
xinput set-button-map "TPPS/2 IBM TrackPoint" 3 2 1 4 5 6 7
but later I found out that this setting is lost after suspend. So I tried and created a x11 conf:
/etc/X11/xorg.conf.d/50-trackpoint.conf
with the content:
Section "InputClass"
Identifier "trackpoint"
MatchProduct "TPPS/2 IBM TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "ButtonMapping" "3 2 1 4 5 6 7"
EndSection
but that is not working. It seems like this configuration is loaded before gnome and gnome changes everything back. So how do I do this?
xinput set-button-map "TPPS/2 IBM TrackPoint" 3 2 1 4 5 6 7
to my gnome session. It does the trick, but it is ugly. As i learned the gnome settings daemon overrides xorg settings.