How to get a seamless remote experience - 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: How to get a seamless remote experience (/showthread.php?tid=104541) |
- mason - 2011-07-08 LB06 just want to say thanks for this post lot of work you put in. Its a very good overview with a lot of usefull detail! - SirHc - 2011-07-08 LB06 Wrote:Thank you for testing! So I guess there's a bug in the i386 version of ir-keytable that prevents some scancodes from getting loaded properly. I'll see if I can submit a proper bug report. I'm not 100% sure if it's really ir-keytables since I tried several self-compiled versions of it as well. Ok it's possible, that this error is existent for some time now, and no one spotted it so far, but it's also possible, it's within the kernel. I don't have more time at the moment to test other Installations, but maybe someone else could check out some latest kernel version for example or debian unstable. - teeedubb - 2011-07-10 Thanks for the guide LB06. After completing the steps to have lirc working with the kernel drivers should I have a fully mapped remote? The only buttons that have any effect in xbmc are up/right/down/left and play pause etc, and its been like this on install (although I had double key presses, but this must have had to do with multiple protocols being used), after setting up the kernel and after the lirc portion of the install. Everything seems to be installed and configured fine. I have a harmony remote programmed as a mce remote which key mappings have worked out of the box with lirc and lucid. The 'ok' button is one that doesnt register with xbmc: Code: $ cat /etc/rc.local Code: $ sudo ir-keytable Code: $ lsmod | grep irc Code: $ cat /etc/lirc/hardware.conf Code: $ sudo ir-keytable -t Code: $ cat /etc/lirc/lircd.conf Code: $ sudo irw Code: $ cat /etc/rc_keymaps/rc6_mce Any suggestions? - LB06 - 2011-07-10 XBMC doesn't seem to listen to KEY_OK. Use KEY_ENTER instead. Also, you should map ALL your keys in /etc/rc_keymaps/rc6_mce. Not just one. You probably have, since you're saying the default keys work, but I'm mentioning it just in case. You should modify the mappings in /etc/rc_keymaps/rc6_mce to suit your needs, because XBMC doesn't listen on all those mappings. KEY_OK was just one example. I you want to do it properly you should probably start with an empty file and start mapping manually. So have ir-keytable -r open, press a button, copy the scancode, prepend it with "0x" and assign the key that you want. There's also no reason for you to use lirc afaik. Stop it and disable to lirc protocol. You only want to bridge lirc if you really need functionality that is unavailable through ir-keytable. And just mapping buttons isn't one of them. Using lirc might only complicate the situation. RE: [Linux] How-to get a seamless remote experience - teeedubb - 2011-07-10 One thing worth mentioning is that to resume from the remote with newer kernels you need to enable wake up on the actual receiver device aswell as the usb port. ***EDIT: see this post for a better method of enabling wakeup on usb devices using udev: http://forum.kodi.tv/showthread.php?tid=104541&pid=1920715#pid1920715 lsusb will list your attached usb devices: Code: $ lsusb The bold line of text is my usb mce ir receiver. Use the device id (5168 in my case) with the following command to find your device in /sys/bus/usb/devices Code: $ grep 5168 /sys/bus/usb/devices/*/idProduct Now use that location to check if wakeup from the device is enabled with: Code: $ cat /sys/bus/usb/devices/4-2/power/wakeup The following command will change this setting to enabled: Code: $ sudo sh -c 'echo "enabled" > /sys/bus/usb/devices/4-2/power/wakeup' This setting will be reset on boot so to enable it on every boot I added the following line to my /etc/rc.local file (the first line is to enable wake up on the usb port, as per this wiki article.) Code: echo USB1 > /proc/acpi/wakeup Make sure /etc/rc.local is executable with the command Code: sudo chmod +x /etc/rc.local This got wake from the remote working for me, and after some testing it seems to work more reliably than on lucid... - LB06 - 2011-07-10 Good point. I didn't really think about this, because my HTPC is also a 24/7 server and NAS, but obviously most HTPCs are put in standby/hibernate when not used. I will reference your post in the FAQ. Thanks! - teeedubb - 2011-07-10 Yeah I read that in your guide, but I thought id post it here as this guide helped me get my head around how the remote works with newer kernels and it relates to this thread. I did some more poking around and your reply confirms what I was thinking, that I need to edit the /etc/rc_keymaps/rc6_mce to work with xbmc. Im going to reference /usr/share/xbmc/system/Lircmap.xml to configure my rc6_mce file. Ill see how this works before I remove lirc as I want to use the remote to run scripts via irexec. - LB06 - 2011-07-10 Yes then LIRC is still the only option (bridged or not) - gazrat - 2011-07-12 Just wanted to say that I've managed to get mine working I used a version of ir-keytables from the linuxtv.org website and followed the first part of these instructions http://2cheeseburgers.blogspot.com/2010/11/imon-with-mce-remote-under-maverick.html (I didn't need to rename the RC-6 protocol, but one to watch out for) Thanks a lot to LB06, your help was much appreciated. Finally back to using XBMC as it should be used, from the couch - LB06 - 2011-07-12 They pull the latest version of ir-keytable. Apparently the bug has already been squashed in git . Good luck with the remote. Glad it worked out! - blubyu - 2011-07-13 gazrat Wrote:Just wanted to say that I've managed to get mine working This worked for me also. Once I downloaded and compiled this version of ir-keytable everything started working just like it was supposed to. Thank you everybody for your help. - teeedubb - 2011-07-14 Ok, I've made some test edits to the /etc/rc_maps/mceusb and to the devinput section of /usr/share/xbmc/system/lircmaps.XML and this has gotten the 'ok' button working on my remote. Looks like I'm going to have to edit some commands in /etc/rc_maps/mceusb and add a few commands to the devinput section of /usr/share/xbmc/system/lircmaps.XML as it doesn't include all the commands I can send from my remote. Glad I'm not going to have to make a keyboard.XML from scratch. Thanks again for the great guide LB06! - toliman - 2011-07-27 gazrat Wrote:Just wanted to say that I've managed to get mine working absolutely, i found myself stuck trying to figure out why ir-keytable -r wasn't loading the list with -a or -w options. thinking it was some kind of LIRC interaction problem, or kernel issue, or what-not and it was just a broken version of ir-keytable. only took what, 4 hours to figure that i needed a new ir-keytable. i also had to change the RC6_MCE table around a bit, (i think swapping ENTER for OK was one of the items i saw elsewhere) as some buttons don't function using the Xorg keyboard interface, as per the guide, i've added a few functions via XBMC 's lircmaps, but i'm not 100% on changing this yet. i've also found a few new 3rd party apps as remotes that work in case LIRC changes or a kernel module fails, or another update breaks things again. - LB06 - 2011-07-27 For verification: do you have a 32-bits distro? - Jayphen - 2011-08-24 I'm failing at the first hurdle – Code: ir-keytable -c -p RC5,RC6,NEC,SONY,JVC -w /etc/rc_keymaps/test -t Any idea what I've done wrong? |