Quite annoyingly, I was unable to disable touchpad on laptop through the dedicated fn combination. Bit of googling brought results fast, here’s a simple script I use now for switching on and off.
#!/bin/bash if [ "$1" = "off" ]; then sudo modprobe -r psmouse elif [ "$1" = "on" ]; then sudo modprobe psmouse else echo "usage: $0 [on|off]" fi
Update: you can also use the following “toggle” script, if you want to avoid having to specify on/off each time:
#!/bin/bash lsmod | grep psmouse &> /dev/null if [ "$?" = "1" ]; then modprobe psmouse else modprobe -r psmouse fi