PDA

View Full Version : quick lirc question


sh0stak
2008-06-04, 18:19
I got my new Harmony 550 remote and its great but I'm having a slight issue. When I first hooked it up it wasnt working with xbmc, so I started killing lirc processes and restarting them and trying irw and such and eventually I did things in the right order so that it ended up working. Yay. Now I rebooted my computer last night and its not working again and I can't seem to find that same magical order of commands to get it working. So how do you guys have lirc setup so that it just works at startup?

This question is not specific to XBMC, I am using irw to test if the remote it working. I am running Ubuntu 8.04, the latest LIRC and the MCE remote kit (phillips).

thanks

zAo_OSX
2008-06-04, 19:13
You should stop lirc by running:
sudo /etc/init.d/lircd stop
stop also can be start and restart.

What does you dmesg say about lirc?

sh0stak
2008-06-04, 19:40
looks like something is up with IR port but I'm not quite sure what it means.
any ideas?


alex@ODIN:~$ sudo /etc/init.d/lirc stop
* Stopping remote control daemon(s): LIRC [ OK ]
alex@ODIN:~$ sudo /etc/init.d/lirc start
* Loading LIRC modules [ OK ]
* Starting remote control daemon(s) : LIRC [ OK ]
alex@ODIN:~$ dmesg | tail
[ 237.526832] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port closed
[ 265.067417] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port opened
[ 283.143436] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port closed
[ 319.637747] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port opened
[ 336.877347] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port closed
[ 400.956448] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port opened
[ 1185.612439] console-kit-dae[5388]: segfault at 00000000 eip b7df4307 esp bf951bc4 error 4
[41539.502498] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port closed
[41548.068411] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port opened
[41562.643280] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port closed

sh0stak
2008-06-04, 19:45
Sorry posted that a bit too quick and cant edit. It looks like the port opened/closed messages were a result of me running irexec. When I run irexec I get the following:


alex@ODIN:~$ sudo irexec
irexec: could not open config files /home/alex/.lircrc and /etc/lirc//lircrc
irexec: No such file or directory


which results in 2 lines being added to dmesg:


[42842.036714] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port opened
[42842.039096] /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_imon/lirc_imon.c: IR port closed


I didnt think irexec was used for communication with xbmc but I'm wasn't exactly sure so I was trying to run it anyway.

Checking with modprobe -l I can see that all the modules have been loaded properly.

sh0stak
2008-07-16, 15:30
Just wanted reply and say I finally fixed this issue. The problem had to do with the fact that the lirc_imon module was loading along with the mceusb2 module and a conflict was occurring. I had been using lirc_imon previously for the VFD on my Antec Fusion case but I had not been using it recently. I couldn't find why it was deciding to load lirc_imon in hardware.conf or lircd.conf (anyone know where I should be looking?) so I just blacklisted the module and now my remote works fine after a reboot. yay

boba23
2008-07-16, 16:14
Just wanted reply and say I finally fixed this issue. The problem had to do with the fact that the lirc_imon module was loading along with the mceusb2 module and a conflict was occurring. I had been using lirc_imon previously for the VFD on my Antec Fusion case but I had not been using it recently. I couldn't find why it was deciding to load lirc_imon in hardware.conf or lircd.conf (anyone know where I should be looking?) so I just blacklisted the module and now my remote works fine after a reboot. yay

What's wrong with using imon as IR receiver? Imon in my Black Fusion works perfectly fine with a MCE remote, though I don't know of course if it will play nice with a logitech harmony by default. But I am pretty sure you could configure the harmony to act as a MCE compatible Remote as well for the imon.

boba

sh0stak
2008-07-18, 21:27
My Harmony remote is actually programmed from an MCE remote. I bought the MCE remote kit with the receiver because at the time I was told the IMON receiver only worked with IMON remote codes. I'm not sure if it has just recently become compatible with MCE remotes or not. I did hear the imon receiver was compatible with MCE remotes in windows, but not linux. The friendly people here suggested a MCE remote kit and the harmony and it has been working pretty flawlessly besides this original issue.

BLKMGK
2008-07-19, 01:17
My Harmony remote is actually programmed from an MCE remote. I bought the MCE remote kit with the receiver because at the time I was told the IMON receiver only worked with IMON remote codes. I'm not sure if it has just recently become compatible with MCE remotes or not. I did hear the imon receiver was compatible with MCE remotes in windows, but not linux. The friendly people here suggested a MCE remote kit and the harmony and it has been working pretty flawlessly besides this original issue.

I have a case with that IRDA receiver I believe. I tried to get it working with LIRC and it was a PITA requiring patches etc. so I purchased an MCE setup and have it working like you do. My issue with the IMON was that it required "non-standard" stuff to get it working. If I could have just loaded up Lirc, set a setting, and been done I'd probably still be using it. But the MCE stuff was like $20 and was PnP easy as cake! If Lirc revs I just update, cake. The VFD on my case is another issue - it too requires tricks and won't work with LCDproc out of the box - hence it not being used either right now <sigh>