I have noticed that I often brush the touchpad of my agora whilst typing, and this often moves the cursor to another line in the text I am typing, or changes focus to a different window. It can be very frustrating!
Neerav Bhatt also mentioned that he was having this problem, and I flashed back to all my google searching when I was trying to enable the touchpad in Ubuntu Netbook Remix. I came across some information on how to disable the touchpad, which was completely the opposite to what I was trying to achieve. Flash forward to today, and it now seems pretty useful!
I have dug up that information, and now I have my touchpad disabled whilst I type. When I stop typing, 1 second after the last key press, the touchpad is re-enabled.
To achieve this I used a program called ‘syndaemon’ which is, according to it’s manual page, “a program that monitors keyboard activity and disables the touchpad when the keyboard is being used”.
You will need to enable SHMConfig for syndaemon to work though. I have documented how to do this in an earlier post describing how to install and use gsynaptics.
To enable syndaemon, in a terminal enter:
syndaemon -i 1 -k -d
The -i 1 argument tells syndaemon to wait 1 second to re-enable the touchpad after typing (you can adjust this if you need more time). The -k will mean syndaemon does not disable the touchpad if modifier keys are being pressed, eg ctrl. Finally, -d will make syndaemon run in daemon mode – in the background.
Your touchpad should now be disabled as you type. This command will need to be issued whenever your operating system restarts, so to save yourself the hassle, in Ubuntu you can add it to your Startup Applications. From the Preferences menu, click Startup Applications, and then click “Add”. Enter “Disable touchpad while typing” for the name, the syndaemon command from above for the command, and click “Add”. Now you can click “Close” and you are done. Enjoy!