Again, glad to say that I resolved my cheap ebay USB remote problem
The problem was that I didn't understand how the input is handled....
After some googling, I found out the solution, here:
http://wiki.xbmc.org/index.php?title=HO ... for_Ubuntu
I followed the instructions for finding out to which device the remote was assigned - in my case it was "/dev/input/event4" - it can be found out easily by comparing the output of
BEFORE plugging the USB remote receiver and AFTER plugging it in.
After the remote receiver is plugged in the USB port, you will usually find two new events - in my case those were "event4" and "event5".
The rest was easy, following the above instructions.
What I did is to issue two commands:
- this gave me the Vendor ID and Product code numbers (identified by "Handlers: XXX" line - in my case there were two items, one had line "Handlers=kbd event4" and the other had "Handlers=mouse1 event5".
After that, I issued two commands:
Code: Select all
udevadm info -q all -n /dev/input/event4
udevadm info -q all -n /dev/input/event5
Those gave me the required MINOR and MAJOR numbers, and I was finally able to do:
Code: Select all
vi /etc/udev/rules.d/10-irremote.rules
and then I entered the following:
Code: Select all
SUBSYSTEM=="input",ATTRS{idVendor}=="1d57",ATTRS{idProduct}=="ad02",ATTR{dev}=="13:68",SYMLINK="input/irremote0"
SUBSYSTEM=="input",ATTRS{idVendor}=="1d57",ATTRS{idProduct}=="ad02",ATTR{dev}=="13:69",SYMLINK="input/irremote1"
("Vendor ID" and "Product" codes might be diferent for other devices, though - this worked for mine, after finding WHICH devices those were as described above....)
Saved the file, and then issued
and there it was, after issuing "ls - l /dev/input", I got two new devices:
Code: Select all
crw-r----- 1 root root 13, 68 2013-05-27 22:16 event4
crw-r----- 1 root root 13, 69 2013-05-27 22:16 event5
lrwxrwxrwx 1 root root 6 2013-05-27 22:16 irremote0 -> event4
lrwxrwxrwx 1 root root 6 2013-05-27 22:16 irremote1 -> event5
crw-r--r-- 1 root root 13, 0 2002-08-31 22:31 js0
(those are "irremote0" and "irremote1").
After that, I changed the device in "/etc/empcd.conf" to "/dev/input/irremote0", saved changes to disk, rebooted, and lo and behold, it works!!!!
Hope this helps someone else, too....
Next I'll probably try to do the same for a homebrew serial IR receiver, since I have enough parts to solder several of those....