By Lubomir Petrik on Jun 28, 2008
Well, one thing drove me crazy on the OSDEVCON when using the ASUS M50SV laptop was that both touchpad and mouse were enabled and I sometimes unintentionally moved the mouse cursor using the touchpad. That meant I suddenly continued typing on a different line. I decided to turn the touchpad off.
I first tried to see what mouse drivers do I have:
> modinfo | grep mouse 113 fffffffff7a075b8 c50 116 1 mouse8042 (PS/2 Mouse 1.48, 05/10/25) 114 fffffffff8106000 2410 - 1 vuid3ps2 (mouse events to vuid events) 136 fffffffff8284000 2e08 - 1 usbms (USB mouse streams 1.26)
Since I don't have any PS/2 ports and my mouse is USB, mouse8042 must have been the driver I wanted to get rid of. As user with root role call:
> pfexec modunload -i 113
And indeed after unloading the driver touchpad is no longer working. Cool!
This got me thinking if I can enable the touchpad again by loading the driver back in. And seems like I can:
> pfexec modload /kernel/drv/amd64/mouse8042
Touchpad works again. Unfortunately if I do unload/load again the touchpad does not start working the second time (on svn91). Nevertheless it's OK with me since I always use USB mouse.
UPDATE (Dec 1st 2008):
I was told that this only worked due to a bug. Normally the driver should be automatically reloaded when unloaded. Probably only way in later OpenSolaris builds is to prevent the driver to be loaded in the first place.
Adding following line to /etc/system file:
will prevent the driver named mouse8042 from being loaded when system is starting.