maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Autorun script when plugging in usb keyboard with udev (https://talk.maemo.org/showthread.php?t=1728)

fido 2006-04-01 21:54

Autorun script when plugging in usb keyboard with udev
 
Hi!

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 bla..
And I have written an udev rule (very general at the moment) for an usb keyboard:

/etc/udev/udev.rules:
Code:

BUS=="usb", SUBSYSTEM=="input", RUN+="/etc/udev/usbhid.hotplug"
The script is called, when a usb keyboard is plugged in, but not when it is unplugged. Does anyone know, why there is no "remove" event?

Hermann


All times are GMT. The time now is 16:30.

vBulletin® Version 3.8.8