Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a new thinkpad x220t running Arch Linux. There seems to be a problem in the products hardware architecture as the TrackPoint is moving when you convert the thinkpad into tablet mode and put pressure on the screen. Therefore I'd like to toggle the TrackPoint using a little bash script called by ACPId. I so far wrote this code snippet which disables the TouchPad, but not the TrackPoint (aka. Clit Mouse).


status=`synclient|awk '/TouchpadOff/{printf$3}'`
status=`expr \( $status + 1 \) \% 2`
synclient TouchpadOff=$status

Is there any possibility to toggle the TrackPoint Status using a bash script?

share|improve this question
up vote 6 down vote accepted

Try xinput. First list the devices, so you can find out how the TrackPoint is called: xinput list. For this example I'll use my logitech mouse which goes by the string "Logitech USB-PS/2 Optical Mouse". You have to replace the string with the correct one for your TrackPoint, of course. Now I can disable the mouse with: xinput set-prop "Logitech USB-PS/2 Optical Mouse" "Device Enabled" 0 and enable it again with: xinput set-prop "Logitech USB-PS/2 Optical Mouse" "Device Enabled" 1.

share|improve this answer
Perfect Thank you very much. The Device Name is "TPPS/2 IBM TrackPoint" for any future use. – Momo Feb 29 '12 at 3:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.