Comment 1 for bug 92175

Revision history for this message
aceJacek (acejacek) wrote :

I attached this script as the one to be executed when mouse is connected:

#!/bin/sh
mouse=`lsusb | grep Mouse`
if [ "$mouse" != "" ]; then
    `synclient TouchpadOff=1`
    echo "off" > /tmp/touchpad_status
else
    `synclient TouchpadOff=0`
    echo "on" > /tmp/touchpad_status
fi

File "/tmp/touchpad_status" is updated only when mouse is connected (either hot or cold plugged).
There is no reaction form this script when mouse is disconnected.

It seems that gnome-volume-manager notices only connections of USB mouse not disconnedctions.