2014-12-16, 03:09
(2014-12-16, 02:59)corona Wrote:(2014-12-16, 02:17)JasonPell Wrote:(2014-12-15, 06:00)corona Wrote: Ah... I gladly moved away from lirc a few years ago now, it was always a headache to deal with.
The kernel rc support is so much nicer, all the key remapping I need in a single config file in etc and then the remote just acts like a normal keyboard - much easier. I've picked up a couple of $20 'mce' style remotes&usb receivers on ebay, the advantage of them being the receivers have been multi-protocol so the one receiver has worked well with multiple disparate remotes.
I am playing around with getting the kernel rc stuff working with xbmc. Can you recommend any good tutorials especially for mapping things like KEY_OK and KEY_EXIT to appropriate xbmc ones
I remap any keys like those to more normal keyboard ones, ie KEY_OK -> Space and KEY_EXIT -> Escape.
I'm coming from a mythtv background though (~10 year), and have only been using xbmc regularly for about 6 months. To ease this transition with my partner I've put a lot of work into making my xbmc behave more like myth, so my key choices reflect that.
Basically I have a modified rc script in /etc/rc_keymaps/rc6_mce with keymaps for my two main remotes (I've got three floating around that get used interchangeably)
http://pastebin.com/qNxyXzMf
I then force this script to get loaded at startup, as I had problems making it work automatically:
/etc/rc.local :There's also ways to ensure this gets run via udev etc so that it's right after receiver is unplugged/replugged but I'm not sure that I've bothered with that at the moment, can't remember for sure.Code:/usr/bin/ir-keytable -P 1000 -c -w /etc/rc_keymaps/rc6_mce
This is all dependent on the receiver having right drivers etc.with no arguments will print out any it finds. Then with -t to get printouts of keypresses to match up with what's desired in the config file.Code:ir-keytable
Hi,
But the Space bar will not activate a menu option in XBMC. So do you have a lircmap.xml as well? Can you share that.
I have a HP Media Centre receiver and keys like the OK button and the back button and volume up / down are not recognised by XBMC with the linux kernel ir support. I enabled debugging in XBMC and they are not even recognised by xbmc as key presses.
11:45:14 T:139765148841920 DEBUG: Keyboard: scancode: 0xb6, sym: 0x1008ff56, unicode: 0x0000, modifier: 0x0
11:45:14 T:139765148841920 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
11:45:14 T:139765148841920 DEBUG: Previous line repeats 3 times.
11:45:14 T:139765148841920 DEBUG: OnKey: 0 (0xf200) pressed, action is
This is why I use lirc, as after deploying the config file it just worked with xbmc without having to modify any xbmc config files.
I am going to keep trying to figure this out, but its not positive so far