(2013-04-10, 21:11)Samu-rai Wrote: I'll try and have a look at the remote thing later tonight.
Glad to be of use!
The other thing I did today was to teach my Harmony universal remote control two new commands. Keyboard button T for toggle subtitles and Keyboard button O for Diagnostic Info. But I wasn't sure what I needed to change on the XBMC PC to get that working.
I had a complete nightmare with RC remote controls and Ubuntu / XBMC, took me ages to get the MCE remote working. I am not using LIRC as when I did I had issues with double commands / presses being sent to the XBMC PC. So I uninstalled LIRC and followed a guide to do everything in kernel for RC remotes. I had to modify the imon and mce keymap files for two of my HTPCs and basically change most of the lines in them to get them working.
RC Remote control is working well now for standard MCE buttons, but I am unable to add any custom buttons.
In Windows 7 I had a great setup with the Harmony remote. For example I could teach the Harmony remote a new keyboard command like Ctrl+Alt+1 or Ctrl+Alt+2, I then used AutoHotKey and that would run in the system tray and I had a AutoHotKey script that would detect Ctrl+Alt+1 from the remote control, the AutoHotKey script could then run any .cmd file. So I setup .cmd files to send http requests to my VeraLite Home Automation system. So a .cmd file might run a http request to turn off a Z-wave light for example.
So on the harmony remote I would have a custom button on the LCD screen to turn off the light and another custom button to turn on the light. I press the button on the remote, it sends a keyboard command to the IR on the PC, AutoHotkey would then detect this and in turn run a .cmd file that contained a command to send a http request to the home automation system to do something.
I could turn any Harmony remote into a Z-wave remote via the HTPC.
Would love to be able to do this in Linux but I wouldn't know where to start, would be happy to get XBMC keyboard shortcuts T and O working LOL.