Author
Topic: USB-UIRT to Learn a new remote (Read 5269 times)

Yeah, started there actually. What I got from it is you use irrecord to create a conf file and import it into LinuxMCE. But I can't get irrecord to work at all. I know the usb-uirt and remote work together because I've used them on a windows pc to learn and control the tv. -Ruben

The wiki says to use irrecord to generate a lirc conf file and then import it into Linux MCE. Is it alright to apt-get lirc or should it be lirc-pluto? Or is there something else wrong that it's not already installed? -Ruben

ok, I just installed a fresh copy of ubuntu on the same laptop I was having trouble with earlier and I've gotten irrecord to work, so hopefully someone else can help me figure out where to go from there. This is what I've gotten so far:

But it silently fails. I know it's not running using "ps aux |grep lirc".It seems like no matter what I put in /etc/lirc/hardware.conf, I can't get it to start through /etc/init.d/lircBUT: I can get results if I run

lircd --nodaemon

and then in another terminal:

irrecord -d /dev/ttyUSB0 -H usb_uirt_raw test.conf

that starts up irrecord which now recognizes my remote and creates a config. I haven't finished a full one yet, but even once I do, I'm not sure how to get the actual lirc daemon to start. -Ruben

I chose "Configuration" and hit add, gave it a comment, then just put the location of the file (/home/linuxmce/lircd.conf) where it says "Default Value" as that's the only thing I could figure out to do.So this might be a stupid question but, now what? How do I make sure it's set up properly? Do I have to add a media scenario to turn the tv on when a dvd is put in or what can I do to test that it is working correctly?Also, right now I've got a gyration mouse hooked up and my tv remote, would it be a good idea to just get one of the Gyration MCE or Fiire remotes to replace the two of them? Either of those are both learning remotes and gyro mice aren't they? I guess this is what I have in mind as the ideal setup for controlling ir gear:

1 usb-uirt pointed positioned such that it can hit the tv but also accessible to a remote in the majority of the room. Or possibly a second ir emitter plugged in facing the tv so the usb-uirt faces the room. Then one of the GyrationMCE remotes would be able to learn the tv ir codes and control both the tv functions and mouse duties correct? I haven't been able to get my hdhomerun to work with Time Warner here in Austin and being able to access movies on demand and ppv is a showstopper with myth tv so I think I'm going to have to rely pretty heavily on ir. This means for dvds or downloaded movies it would be running off of one connection and using the mouse control, and for live tv, it would use another connection and switch to using normal ir, but does it do that automatically?

And here's how I finally got the usb-uirt to work with lirc: /etc/lirc/hardware.conf:

# /etc/lirc/hardware.conf## Arguments which will be used when launching lircdLIRCD_ARGS="--output=/dev/lircd"

#Don't start lircmd even if there seems to be a good config file#START_LIRCMD=false

#Try to load appropriate kernel modulesLOAD_MODULES=false

# Run "lircd --driver=help" for a list of supported drivers.DRIVER="usb_uirt_raw"# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be# automatically used insteadDEVICE="/dev/ttyUSB0"MODULES=""

after that I can get irrecord, irw and, irsend to work, but not mode2. That should give you the conf file you need. I'm not sure if LMCE actually uses the lirc stuff, but this file should be in /etc/lirc/lircd.conf