Problem: touchpad recognized as PS2 mouse, Fn+F5 enabling/disabling does not work.
Laptop: Dell Precision M4600
OS: Fedora 14
Notes: The bug is quiet general and is due most likely to the fact that the touchpad is an ALPS component, for which there isn's yet a proprietary driver (seems like they will release soon though).
I have been surfing for a while and I think the situation is like this: since there are no proprietary drivers, at the moment seems possible to only work around by
1. Patching the kernel (repatch at every kernel update)
2. Using a script
I prefer the latter because is more intuitive to me and don't have to repeat every time the kernel updates.
How the script basically works
It turns out that to disable/enable the touchpad (and, unfortunately, the pointing stick too) only one command line is necessary, provided you have the device id. Thus, the relevant code for switching on/off the touchpad is just
1. get the device id
1.a if xinput misses, do
sudo yum install xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PS/2 Generic Mouse id=12 [slave pointer (2)]
2. disable device with
xinput set-int-prop 12 "Device Enabled" 8 0
3. enable device with
xinput set-int-prop 12 "Device Enabled" 8 1
Now, I found two scripts which perform this command asking the system the device status, one in bash and one in python. The bash one executes every time a proper keyboard shotcut is called, while the python one starts at initialization and last until you switch off the laptop.
I find the bash one very elementary and, thus, suitable to most of people, however I will attach both.
Download the script, put it somewhere, let's say /bin/touchpad.sh
Give it 755 permissions with
sudo chmod 755 /bin/touchpad.sh
Create a keyboard shortcut with
System > Preferences > Keyboard Shortcuts > Add > Name: touchpad, Command: /bin/touchpad.sh
Set now the preferred keyboard shortcut. DONE
Python SCRIPT (not tested though)[Rename from touchpad.py.txt to touchpad.py]
Download the script, put it somewhere, let's say /bin/touchpad.py. Give it 755 permissions. Now, in the konsole
sudo emacs -nw /etc/rc.local
Ctrl-x Ctrl-s, to save
Ctrl-x Ctrl-c, to quit
I put some further reading, even for the kernel patch