Timeline for Is it possible for a daemon (i.e. background) process to look for key-presses from a USB keyboard?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 9, 2013 at 23:51 | comment | added | Jeight | This looks helpful. thelinuxdaily.com/2010/05/… | |
Oct 9, 2013 at 23:43 | comment | added | Jeight | Not really. Keyboard event handling is pretty complex. Read the following stackoverflow.com/questions/3792733/… | |
Oct 9, 2013 at 23:37 | comment | added | KyleL | @Jeight: Once I find the correct device node, do you know how I can access key presses? | |
Oct 9, 2013 at 22:44 | comment | added | Gilles 'SO- stop being evil' |
No, by-id is correct. For example my USB keyboard is available as /dev/input/by-id/usb-_USB_Keyboard-event-kbd and /dev/input/by-path/pci-0000:00:1d.2-usb-0:2:1.0-event-kbd .
|
|
Oct 9, 2013 at 22:40 | comment | added | Jeight | @Gilles: I see you edited the answer and change the path to input rather than disk. In that case I believe it would be input/by-path and not disk/by-id. I suspect either would work. | |
Oct 9, 2013 at 22:28 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |
added 1 characters in body
|
Oct 9, 2013 at 21:41 | history | edited | peterph | CC BY-SA 3.0 |
mentioning need for udev
|
Oct 9, 2013 at 21:30 | comment | added | Jeight | @peterph: You are correct. If not using udev the first suggestion won't work. | |
Oct 9, 2013 at 21:26 | comment | added | peterph |
The entries in /dev/disk/by-id/ are imho created by udev - question is whether this is available in this partcular case (embedded platform).
|
|
Oct 9, 2013 at 21:25 | history | edited | peterph | CC BY-SA 3.0 |
quoting
|
Oct 9, 2013 at 21:24 | history | answered | Jeight | CC BY-SA 3.0 |