Harmony / USB-UIRT / LIRC configuration question - 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: Harmony / USB-UIRT / LIRC configuration question (/showthread.php?tid=61265) |
Harmony / USB-UIRT / LIRC configuration question - antiloop222 - 2009-11-10 Hello, I plan to use XBMC on my new HTPC but before, I try to configure my Harmony 555 with a USB-UIRT and I have some issues. First step, choose what remote controller my Harmony will emulate, in order to configure LIRC accordingly. I selected MCE USB and successfully configured Harmony with the logitech software. Second step, check that everything is correct with LIRC. For that, I typed: Code: sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb On another console, Code: irw But nothing happened when I push the Harmony buttons So to be sure that everything was OK with the IR receiver, I typed: Code: sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_raw As soon as I push a button, pulse/space lines appear... So what's wrong with my configuration ? Thanks - Robgue - 2009-11-11 You should be getting output when you run irw. Check your conf in /etc/lirc/hardware.conf I had a hard time getting usb-uirt running in ubuntu. The wiki instructions didn't work for me. Here's a sample of mine but using a hauppauge remote. (also using a harmony) # /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="Hauppauge TV card" REMOTE_MODULES="lirc_dev lirc_i2c" REMOTE_DRIVER="usb_uirt_raw" REMOTE_DEVICE="/dev/lirc0" REMOTE_SOCKET="" REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge" REMOTE_LIRCD_ARGS="-d /dev/ttyUSB0" #Chosen IR Transmitter TRANSMITTER="None" TRANSMITTER_MODULES="" TRANSMITTER_DRIVER="" TRANSMITTER_DEVICE="" TRANSMITTER_SOCKET="" TRANSMITTER_LIRCD_CONF="" TRANSMITTER_LIRCD_ARGS="-d /dev/ttyUSB0" #Enable lircd START_LIRCD="true" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD="false" #Try to load appropriate kernel modules LOAD_MODULES="true" # Default configuration files for your hardware if any LIRCMD_CONF="" #Forcing noninteractive reconfiguration #If lirc is to be reconfigured by an external application #that doesn't have a debconf frontend available, the noninteractive #frontend can be invoked and set to parse REMOTE and TRANSMITTER #It will then populate all other variables without any user input #If you would like to configure lirc via standard methods, be sure #to leave this set to "false" FORCE_NONINTERACTIVE_RECONFIGURATION="false" START_LIRCMD="" - antiloop222 - 2009-11-11 Hello, thanks for your answer. I retrieved a Leadtek WinFast remote controller and tried to make the same hardware.conf as you (expect the config file which is /usr/share/lirc/remotes/leadtek/lircd.conf.PVR2000) but without any success (still seing messages with mode2 but nothing with lircd) BTW I have several questions about your configuration: 1) You use lirc_dev and lirc_i2c modules, but are they useful with usb_uirt (I think they are requested only if you plug the original IR receiver coming with your hauppauge remote controller), could you make a test without activating these modules ? 2) I see you set REMOTE_DEVICE to /dev/lirc0 but in the same time sending -d /dev/ttyUSB0 as additional arguments to lircd. Don't you think it is a duplicate configuration ? And do you really have a /dev/lirc0 and if yes, is it linked to another file/socket ? Thanks for your help. - miked2024 - 2009-11-12 here's my hardare.conf file using a usb_uirt... Code: # /etc/lirc/hardware.conf and here's my lircd.conf in /etc/lirc/: Code: #This configuration has been automatically generated via the included files were just taken from lirc.org. all 3 remotes work, so i'm not sure if the mceusb line is even required in the hardware.conf, to be honest. - Robgue - 2009-11-13 I just copied miked2024's hardware.config (replacing lircd_conf with my remote). Worked great. I'm using that cleaner version now. The one from before was all trial and error. Thanks. - miked2024 - 2009-11-13 glad i could help. - Robgue - 2009-11-13 just for fun i tried using the old xbox remote and couldn't get it going. changed this line to: REMOTE_LIRCD_CONF="atiusb/lircd.conf.atiusb" I also changed the lirc.conf to: #microsoft_xbox include "/etc/lirc/lircd.conf.microsoft_xbox" but couldn't get any irw output. i was hoping it would be that simple. any suggestions? (I'd rather use the xbmc remote if i could for several reasons) - Nick8888 - 2009-11-13 Robgue Wrote:just for fun i tried using the old xbox remote and couldn't get it going. The lircd.conf.microsoft_xbox file exists right? On a different topic, do you suppose you could post your /etc/init.d/lircd file as I've been unable to load lirc on startup.. instead have to type "sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw" which is a pain. Thanks sharing your config files.. to tell you the truth I forget what remote I used to get my mx-810 and uirt to work with lirc.. Also have you guys had any luck with adding extra <universalremote> buttons to the keymap? - miked2024 - 2009-11-13 Robgue Wrote:just for fun i tried using the old xbox remote and couldn't get it going. hrm. all i've had to do to add extra remotes is add them to the lirc.conf file, make sure the included file exists and restart lirc. so make sure the xbox file exists, if not you can get it here: http://lirc.sourceforge.net/remotes/microsoft/ i think i used the first one (Xbox), but either should work. - Robgue - 2009-11-16 nick8888, here you goes the init.d/lircd: http://pastebin.com/m4508eaf6 got the xbox remote going btw. - Nick8888 - 2009-11-16 thanks a lot robgue. using both the hardware.conf above and your init.d/lirc I was able to get my usb-uirt working on startup! no complaints about controlling xbmc now. using JollysFastVNC from my laptop, the iphone remote(no substitute for a hard button remote) and an MX-810 (in conjunction with usb-uirt) still not working - IlCyPHeRlI - 2009-12-18 High, I'm using the harmony one to a usb-uirt to XBMC 9.11b2 live. I'm running into the same problem as the original post on this forum. I can run sudo mode2 -d /dev/ttyUSB0 -H usb_uirt_raw and get output but I don't get any output in irw. I have changed my hardware.conf file to match the one posted by miked2024 except that I changed the remote_lircd_conf= to "logitech/lircd.conf.logitech" I added the include "/usr/share/lirc/remotes/logitech/lircd.conf.logitech" to the lircd.conf file. Still no response from the remote. What am I doing wrong? - KeithLM - 2009-12-31 I'm also using a Harmony and usb-uirt and am having no luck with irw. When I run the mode2 command above I get several spaces and pulse, but the messages end with: readdata() failed and the mode2 command exits. - Th3R00st3r - 2010-03-21 I cannot get irw working either. /etc/lirc/lirc.hardware.conf Code: # /etc/lirc/hardware.conf /etc/lirc/lircd.conf.Microsoft_Xbox360 Code: # this config file was automatically generated irw has no output when pressing buttons. Mode2 has pulse code that do show on button presses Running this command doesn't have any output either when pressing buttons. Code: xbmc@xbmc:/etc/lirc$ sudo lircd -n -d /dev/ttyUSB0 -H usb_uirt_raw /etc/lirc/lircd.conf.Microsoft_Xbox360 This is the last step in getting this up and running, and the most stubborn part of this whole install. I would love to get this working with any of the remote I have at the moment. (Harmony 520, Microsoft Xbox Universal Remote) - hjbotha - 2010-03-21 Instead of using a preset conf file it is possible to create your own. The irrecord command will output a conf file. For what it's worth though, I've programmed my Harmony to use Plex Plex Player. Has a couple of extra F buttons that can be programmed to do stuff in xbmc. /etc/lirc/hardware.conf: Code: # /etc/lirc/hardware.conf /etc/lirc/lircd.conf: Code: # Please make this file available to others |