[maemo-users] [maemo-users] Running a script when plugging in usb keyboard

From: Hermann Lacheiner hermann.lacheiner at gmx.at
Date: Sun Apr 2 23:35:13 EEST 2006
Hi all!

I'm experimenting with udev, so that for example the display won't be 
dimmed when a usb keyboard is plugged in.
Dim time can be set with gconftool-2 -set ...
And I have written an udev rule (very generic at the moment) for an usb 
keyboard:

/etc/udev/udev.rules:
BUS=="usb", SUBSYSTEM=="input", RUN+="/etc/udev/usbhid.hotplug"

The usbhid.hotplug script is called, when an usb keyboard is plugged in, 
but not when it is unplugged. Does anyone know, why there is no "remove" 
event sent by hotplug?

Hermann

More information about the maemo-users mailing list