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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux