Monitoring /dev/input/event0 for button presses
Hi,
I'm running Debian 6.0.4 on an Iomega ix2-200 (Marvell Kirkwood) and I
can use /dev/input/event0 to detect button presses via the gpio-keys
driver.
So far I'm using a simple perl script to read from /dev/input/event0 and
do things like shutdown the box when pressed for more than 5 seconds etc.
Is there a an existing system in Debian that does something like this
already, perhaps something like the kbrequest action in init?
Regards,
Nigel
Reply to: