Linux [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Linux [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus (/showthread.php?tid=133071) |
[xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - bennyp - 2012-06-03 Hi, I've just installed XBMCBuntu onto a new Zotac ZBOX nano AD10 and everything is good, apart from a couple of buttons don't seem to work. The box comes with a built-in IR port (identifies as: ITE8704 CIR transceiver), an MCE remote and a USB IR extender (identifies as: PHILIPS MCE USB IR Receiver- Spinel plus) (It seems that the remote only works when using the extender, which is fine as the box is mounted on the back of the TV.) I've been monitoring the debug log when pressing all the buttons and it seems that I need to use lirc to get more of the buttons to work. Using Windows Media Center Transceivers/Remotes (all) doesnt seem to do anything, but Linux input layer (/dev/input/eventX) does. Using the remote without making any changes, the following buttons do not work: Sleep Wake Teletext Program Windows button Red Blue Green Yellow If I reconfigure lirc setting to Linux input layer (/dev/input/eventX) using the device 'usb-PHILIPS_MCE_USB_IR_Receiver-_Spinel_plus-event-ir', the following do not work: Teletext Windows button Red Blue Green Yellow But for Sleep/Wake/Progam I get: Code: 14:54:21 T:3491584 DEBUG: LIRC: Update - NEW at 57848:000000008001008e 00 KEY_SLEEP devinput (KEY_SLEEP) I then installed evtest, selected event2 (The phillips USB) and pressed the Windows button/Teletext/Coloured buttons, nothing happens at all. If I then change to use event3 with evtest (The internal IR receiever), pressing the buttons above produces: Code: Windows button: So it seems that the internal IR receiver can understand the remote, but the USB extender cannot? Is there a way to somehow use the driver from the internal with the USB so that I can map the keys? Or even any way to get those buttons to work so they can be mapped to xbmc? I've seen this (from this post), but that relates to openELEC. Would it be a case of doing something similar, but for XBMCbuntu? Some relevant bits and pieces: xbmc@xbmc-lounge:~$ cat /proc/bus/input/devices Code: I: Bus=0003 Vendor=0471 Product=20cc Version=0100 Code: xbmc@xbmc-lounge:~$ cat /etc/lirc/hardware.conf Code: xbmc@xbmc-lounge:~$ cat /etc/lirc/lircd.conf RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - FernetMenta - 2012-06-03 You would need to compile the kernel to get the oe patches. I have created a hid driver for lirc and added a config for this remote control: https://github.com/FernetMenta/lirc This makes all buttons work. The remote would still be recognized as a keyboard by X11. Make X11 ignore it: Code: Section "InputClass" RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - bennyp - 2012-06-03 Hi FernetMenta, Are you saying I just need to use the config file, or do I need to remove lirc and compile from the one in your repo? If I try and run ./setup.sh && make install from a clone of yours, I get "Can't open ./setup-driver.sh" ? RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - FernetMenta - 2012-06-03 Yes, you need to compile lirc from my repo. ./autogen.sh ./setup.sh (requires package dialog, select driver zotac, save & configure) make sudo make install I use this udev rule which crates a symlink for the receiver and fires an event to upstart. In this case the device lirc connects to will be /dev/remote Code: SUBSYSTEM=="usb" , ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", SYMLINK+="remote", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait ir-ready" RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - bennyp - 2012-06-03 Ah, I missed the ./autogen.sh previously, but I still get an error: Code: xbmc@xbmc-lounge:~/tmp/FernetMenta-lirc-c336b00$ ./autogen.sh Code: ./setup.sh Code: xbmc@xbmc-lounge:~/tmp/FernetMenta-lirc-c336b00$ make Thanks for the help! RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - FernetMenta - 2012-06-03 Don't continue if one of the steps fails. Check the output, it tells you what's missing. Install required packages for build. In this case automake RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - bennyp - 2012-06-03 Thanks FernetMenta, I installed automake, and libtool and now it compiles just fine, although the buttons still don't work I also edited /usr/share/X11/xorg.conf.d/10-evdev.conf so that it contains: Code: Section "InputClass" and added to /etc/udev/rules.d/10-local.rules: Code: SUBSYSTEM=="usb" , ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", SYMLINK+="remote", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait ir-ready" xbmc@xbmc-lounge:~$ cat /etc/lirc/lircd.conf Code: # Please make this file available to others xbmc@xbmc-lounge:~$ cat /etc/lirc/hardware.conf Code: # hardware.conf for eb1501 There are some errors in /var/lib/lircd as well: Code: Jun 3 20:26:18 xbmc-lounge lircd: lircd(zotac) ready, using /var/run/lirc/lircd RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - FernetMenta - 2012-06-03 looks like lirc does not work at all and you still get keyboard events. Make X11 ignore the ir receiver. Test lirc with irw zortac -> zotac REMOTE="Zortac MCE Remote" REMOTE_DRIVER="zortac" REMOTE_LIRCD_CONF="zortac/lircd.conf.zortac" RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - bennyp - 2012-06-03 Ah, good spot! I totally didn't see that! Thanks! Ok, so if I run sudo /usr/local/sbin/lircd -H zotac -d /dev/remote -n in one console and then sudo irw in another, I can see all the buttons working, result! As an aside, it seems that whenever I run the above the first time I get this, so I just make the folder and it works fine. Code: lircd: can't open or create /var/run/lirc/lircd.pid So now, how do I make this load on start and I guess work with xbmc? Thanks for your help so far, you've got me much further than I was! Edit: Ok, so the init.d script was failing because /usr/sbin/lircd was missing so after doing the below, it starts putting things in the log file. Code: xbmc@xbmc-lounge:/usr/sbin# sudo ln -s ../local/sbin/lircd lircd Now if I run irw, in /var/log/lirc I get Code: Jun 3 21:48:30 xbmc-lounge lircd: lircd(zotac) ready, using /var/run/lirc/lircd Looking in /dev it seems that /dev/remote has changed the location of where it was pointing now that lirc is loading up on startup Code: lrwxrwxrwx 1 root root 19 2012-06-03 21:48 remote -> /var/run/lirc/lircd= Edit 2: That was my mistake, I was playing about with the init.d script, put it back and it now loads up properly, and I can see the commands in the xmbc log! Code: 22:18:16 T:6522624 DEBUG: LIRC: Update - NEW at 193993:00000000ffbc005b 00 KEY_RED zotac.conf (KEY_RED) Big thanks, FernetMenta! Now to figure out why the remote isnt actually moving anything on the screen... Edit 3: Its because I was missing a Lircmap.xml file RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - bennyp - 2012-06-04 BIG thanks to FernetMenta! I ended up playing around a bit with various bits, but basically I did the following to get all the buttons working. 1. Remove lirc Code: > sudo apt-get remove lirc 2. Install some extra packages Code: > sudo apt-get install automake dialog libtool 3. Download the version from FernetMenta (In case it ever moves, I've forked it over at my account) Code: > wget https://github.com/FernetMenta/lirc/tarball/master -O lirc.tar.gz 4a. Configure and install the new lirc, when running setup.sh, select driver zotac under usb, save & configure Code: > ./autogen.sh 4b. If missing, create links in /usr/sbin Code: > cd /usr/sbin 5. Stop X11 from registering device as keyboard by putting the following at the bottom of /usr/share/X11/xorg.conf.d/10-evdev.conf Code: Section "InputClass" 6. Add a alias in udev to /dev/remote by creating a new file at /etc/udev/rules.d/10-local.rules with the following: Code: SUBSYSTEM=="usb" , ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", SYMLINK+="remote", ACTION=="add", RUN+="/sbin/initctl --quiet emit --no-wait ir-ready" 6. Create config files - see below 7. Reboot and hopefully it should all work /etc/lirc/hardware.conf Code: # hardware.conf for Zotac /etc/lirc/lircd.conf Code: # Please make this file available to others ~/.xbmc/userdata/Lircmap.xml Code: <lircmap> RE: [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - spocky184 - 2012-06-06 Hi, that is great ! I`ve investigated many hours to get the Zotac Remote running, without any success. Now your descriptions seems to be the way to get it running. But i have a problem compiling lirc. After running make i get the following error: Quote:Making all in toolssorry, error message is in german. after the command 'mv -f .deps/lirc_client.Tpo .deps/lirc_client.Plo' the mv stats that .deps/lirc_client.Tpo can not be found and then make ends. Any ideas ? Thank you very much for your help. spocky184 PS: I would love to get that to run ;-) RE: [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - bennyp - 2012-06-06 I didn't have to install anything else to get it to compile on mine. Although, I've just realised I installed autoconf, not automake - might make a difference? RE: xbmcbuntu some buttons not working with PHILIPS MCE USB IR Receiver- Spinel plus - schmick - 2012-06-10 (2012-06-03, 16:59)FernetMenta Wrote: You would need to compile the kernel to get the oe patches. I have created a hid driver for lirc and added a config for this remote control: https://github.com/FernetMenta/lirc Fernet! great job on the zotac remote! Compiled like a charm. I'm using Ubuntu 12.04 32bit on a zotac zboxnano a10 with the internal IR disabled and the external USB IR receiver. I followed bennyp's minihow-to post. Just some issues. - I have to sudo mkdir /var/run/lirc every time I boot. - sudo make install didn't create a startup (init.d) script. (any example on how to make one?) - Running sudo lircd -H zotac --device=/dev/remote -n, irw shows connecting and all buttons work. But running XBMC, I see no connections being made to lirc. BTW, I can't seem to see /dev/lircd or lirc0. Should it exist? I'll go back and reinstall your fork from the begining to see if I missed something, but I'd like to know if I'm expecting somethin your pakage does not do (init script or so). THX! RE: [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - FernetMenta - 2012-06-11 I forked the lirc source project but did not create a package. You can use udev and upstart for starting lirc. /etc/udev/rules.d/85-xbmc.rules Code: #Remote Control /etc/init/lirc.conf Code: description "lirc" lirc will automatically start at system boot. Use sudo start/stop lirc for manually start/stop lirc RE: [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - guilmxm - 2012-08-04 Hi, I have somes troubles with the zotac remote control using Fermenta's lirc built, the remote control works but i always have some latency or key repeating, i would say it works more or less... I tested it on fresh install on Ubuntu minimal and desktop versions, i'm sure the install is very clean, and also X11 does not register the device as a keyboard, X11 message logs: [ 12.164] (II) config/udev: Adding input device PHILIPS MCE USB IR Receiver- Spinel plus (/dev/input/event2) [ 12.164] (**) PHILIPS MCE USB IR Receiver- Spinel plus: Ignoring device from InputClass "PHILIPS MCE USB IR Receiver- Spinel plus" I can even see using irw (with X11 stopped) that latency or key repeat, i also tried to uncomment suppress key in lircd.conf min_repeat 9 suppress_repeat 9 With this setting i have less repeating key but always latency, as far an example one key sometimes works, sometimes you have to re-press the key wich will proceed in 2 keys pressed... A little bit frustrating :-( Thanks for your help!!! |