5 Oct 2009 22:09
how do I read events from a Hama MCE remote (keyboard+mouse)
Péter Szabó <ptspts+libhid <at> gmail.com>
2009-10-05 20:09:55 GMT
2009-10-05 20:09:55 GMT
Hi, I have a Hama MCE remote control, whose USB dongle registers itself as two HID devices on my machine running stock Ubuntu Jaunty 64-bit desktop: [210440.980030] usb 2-6: new low speed USB device using ohci_hcd and address 5 [210441.192962] usb 2-6: configuration #1 chosen from 1 choice [210441.216468] input: HID 05a4:9881 as /devices/pci0000:00/0000:00:04.0/usb2/2-6/2-6:1.0/input/input9 [210441.245334] generic-usb 0003:05A4:9881.0006: input,hidraw3: USB HID v1.10 Keyboard [HID 05a4:9881] on usb-0000:00:04.0-6/input0 [210441.274963] input: HID 05a4:9881 as /devices/pci0000:00/0000:00:04.0/usb2/2-6/2-6:1.1/input/input10 [210441.324278] generic-usb 0003:05A4:9881.0007: input,hidraw4: USB HID v1.10 Mouse [HID 05a4:9881] on usb-0000:00:04.0-6/input1 Whenever I press a key on the remote, a few bytes become available for reading on /dev/input/event7 or /dev/input/event8 (depending on the key pressed; some of the keys emulate a mouse key, others emulate a keyboard key). So the hardware seems to work, keypresses can be propagated to userspace (e.g. with `cat /dev/input/event7'). My questions are the following: 1. How do I prevent the remote from sending keyboard events (such as Enter, BackSpace, PageUp and numpad number keys) to the text-mode virtual terminal and to X11? I don't want my remote to be recognized as a regular keyboard or mouse -- but I have several USB keyboards and(Continue reading)
RSS Feed