Alex Asked: 2009-05-29 02:21:28 +0800 CST2009-05-29 02:21:28 +0800 CST 2009-05-29 02:21:28 +0800 CST Mouse/touchpad toggle in Ubuntu 772 How to tune Ubuntu to automatically deactivate a touchpad on mouse connect and activate on its disconnect? ubuntu mouse 4 Answers Voted Grumbel 2009-05-30T03:00:56+08:002009-05-30T03:00:56+08:00 You can manually disable an input device via: xinput set-int-prop "B16_b_02 USB-PS/2 Optical Mouse" 'Device Enabled' 8 0 and reenable it via: xinput set-int-prop "B16_b_02 USB-PS/2 Optical Mouse" 'Device Enabled' 8 1 You can get the list of device names via: xinput list If you want to automate the whole process you could write a script to listen to HAL, which will tell you when devices are plugged in or removed. As a starting point you can have a look at xboxdrv-daemon.py Adam 2009-05-29T04:40:28+08:002009-05-29T04:40:28+08:00 Have you seen this thread? Looks like they're almost there. Eugene Morozov 2009-05-30T04:53:44+08:002009-05-30T04:53:44+08:00 I use the following command in the Awesome startup script: lsusb | egrep -i 'Mouse' > /dev/null && synclient TouchpadOff=1 || synclient TouchpadOff=0 Vasili 2010-07-03T09:45:55+08:002010-07-03T09:45:55+08:00 I have an old Compaq Armada 110, and just installed Ubuntu. I have connected a PS/2 mouse, which the system cannot see. On the other hand it can see the touchpand as a PS/2 vitual mouse. Can i change this so that i could only use the PS/2 mouse and not the touchpad ?
You can manually disable an input device via:
xinput set-int-prop "B16_b_02 USB-PS/2 Optical Mouse" 'Device Enabled' 8 0
and reenable it via:
xinput set-int-prop "B16_b_02 USB-PS/2 Optical Mouse" 'Device Enabled' 8 1
You can get the list of device names via:
xinput list
If you want to automate the whole process you could write a script to listen to HAL, which will tell you when devices are plugged in or removed. As a starting point you can have a look at xboxdrv-daemon.py
Have you seen this thread? Looks like they're almost there.
I use the following command in the Awesome startup script:
I have an old Compaq Armada 110, and just installed Ubuntu.
I have connected a PS/2 mouse, which the system cannot see. On the other hand it can see the touchpand as a PS/2 vitual mouse.
Can i change this so that i could only use the PS/2 mouse and not the touchpad ?