![]() |
[Linux] HOW-TO Logitech Harmony One - NFY! - 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] HOW-TO Logitech Harmony One - NFY! (/showthread.php?tid=63731) |
- lpallard - 2011-04-08 My receiver is a HP OVU400103/00 Media Center USB IR Infrared Receiver. Confirmed to be compatible with both the harmony one and Linux by bmcclure on his thread on openelec. No the receiver did not come with a remote. Let me know what you think! - Hammi - 2011-04-09 Are you able to get any readings with mode2 instead of irw? - lpallard - 2011-04-09 Yes mode2 output signals. I can see pulse 450 pulse 500 pulse 800 stuff like that. What does it mean? - Hammi - 2011-04-10 Your remote/receiver is working. Try using irrecord to create a working config. - lpallard - 2011-04-10 Ok I hope you're right! I will try with irrecord and post back! - Hammi - 2011-04-11 fingers xed! - lpallard - 2011-04-11 Mmm OK I "think" I might have found the problem. The lircd.conf file I have been using so far was the file available for the harmony one on lirc's website (http://lirc.sourceforge.net/remotes/logitech/HarmonyOne) I just realized the file header says: Quote:# NOTE: SO I think this config file is good only IF you configure the remote as MythTV remote with the Logitech software... Am I right? If I'm right, then I'm confused as to how to configure the remote and create a config file for a general experience (both within XBMC and on the desktop)? I configured the remote using Logitech's software and the instructions at http://openelec.tv/forum/12-guides-tips-and-tricks/3218-in-progress-harmony-one-complete-guide My final goal is to have the remote used to control my TV (no big deal already working), start and stop specific applications (Mplayer, VLC, Amarok, MythTV, etc) and most of all, control XBMC.... If I use irrecord, I understand it will record the IR pulses, but how do I associate them with specific OS commands?? Thanks a lot! ![]() - Hammi - 2011-04-12 lpallard Wrote:If I'm right, then I'm confused as to how to configure the remote and create a config file for a general experience (both within XBMC and on the desktop)? It works - with any software supporting lirc -, if lirc understands correctly what your remote sends. It really doesn't matter how you configure your Harmony unless that setup is one which you reflect in lirc as well. With other, non-configurable remotes, you just have less options, as you would need to choose the right lirc config (or create your own with irrecord). For the Harmony, the options are (significantly) increased, which might be what's confusing you. For XBMC, the steps should be: (1) configure lirc so that irw reads keypresses from your harmony; (2) configure XBMC so that it does, upon keypresses, what you want. The easiest approach is probably to configure the Harmony as MCE remote, to use a pre-existing lirc MCE configuration, and then start off with the standard XBMC config. - lpallard - 2011-04-13 OK so far here's what I've done: 1- used irrecord to capture the remote's keypresses and store the config in /etc/lircd.conf 2- created a keymap.xml file in Code: $HOME/.xbmc/userdata/keymaps/keymap.xml during irrecord, I assigned the key_pause to the key Pause. Then in keymap.xml I entered the mapping like: <key_pause>Pause</key_pause> Am I on the right track or not?? - Hammi - 2011-04-13 If, with the config you have put together using irrecord, irw does show output when you press keys on your remote, then you have configured your remote in lirc properly. For use in XBMC, you need Lircmap.xml and keymap.xml. For some basic functionality, there should be no need to adjust keymap.xml. If you want or have to, please take care that you only use "valid" key names for the keys. E.g., <key_pause> will not work, but the key has to be named <pause>. See the wiki as linked above for valid key names. Finally, there is also a short how-to on the wiki for configuring lirc with irrecord to work with XBMC. - lpallard - 2011-04-22 ok this is getting on my nerves and maybe you or anybody else know what to do... i used irrecord to record the keystrokes of my harmony remote. i entered the namespaces that described the best the function of the key i was pressing. for example the volume + key i used key_volumeup as the namespace. i enter totally different namespaces for each keys. the issue is when i try the key mapping with irw, i get the same output for different keys. a good example in my case is with the little restart button just located beside the mute button. i assigned the namespace key_restart to this key. while i was verifying the mapping with irw i noticed that when i press the menu button i also get blablabla_key_restart just like if i had entered the same namespace twice. it also happened with the touchscreen buttons yellow and red who have the same output as channel up and channel down.... i tried several time to redo from scratch but same problem. any idea? thanks! - Hammi - 2011-04-22 Could you please post your current config? - lpallard - 2011-04-22 Here you go mister: Quote:# Please make this file available to others I also noticed that I really forgot 2 keys while I was recording the keystrokes with irrecord. DO I need to restart again from scratch or I can start a new recording session and only record these 2 keys, and copy/paste the codes in the existing lircd.conf file? - Hammi - 2011-04-23 Yes, C&P into the config works. What's the output of mode2, when you press the keys which trigger two key presses? Sometimes, individual keys send more than one key code. - lpallard - 2011-04-23 hey Hammi, the faulty keys do not output two codes at the same time but the wrong code instead. Lets take the exit button that outputs the same code as the restart button as an example. As you can see in my config file above, both the key keyUrestart & key_exit have the same hex code 0x1BDC so thats why irw output the same thing no matter if i press the exit or restart key. i hope we are on the same page ![]() as for your request, ive sent the output of mode2 for each keys separately in two txt files using mode2 > file.txt and heres the result: key exit: Code: space 16777215 and key restart: Code: space 16777215 |