Lirc works sometimes

My remote (homebrew serial) worked without a problem under 3.2 I upgraded to 4.0 and now the remote is intermitment.

Notsure where to look, does this mean anything:

grep lirc /var/log/messages

has a long list of:

Sep 3 21:30:02 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 21:30:02 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 21:30:06 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 21:30:06 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 21:30:06 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 21:30:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 21:30:07 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 21:30:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:03 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:03 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:12 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:12 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:13 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:13 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 3 22:00:13 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 3 22:00:13 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:02 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:02 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:06 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:07 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:32 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:32 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:32 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:32 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 00:00:33 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 00:00:33 FamilyRoom lircd-0.8.2-CVS[2647]: removed client
Sep 4 01:00:02 FamilyRoom lircd-0.8.2-CVS[2647]: accepted new client on /dev/lircd
Sep 4 01:00:02 FamilyRoom lircd-0.8.2-CVS[2647]: removed client

Just noticed that each entry

Just noticed that each entry was at a time "irsend" ran. I confirmed that if I run "irsend" a get a remove and accept??

Thanks

http://mythdora.com/?q=node/1709

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

Re:

I gave that a try. Mine works, but it becomes very lethargic after LIRC sends something. I haven’t figured the pattern out yet, but eventually it starts to work properly.

I checked my own /etc/rc.d/rc.local and it had:

#LIRC IRBlaster
/sbin/modprobe lirc_serial
sleep 2
/usr/sbin/lircd --device=/dev/lirc0 --output=/dev/lircd

I made the change to the lines you suggested so it now reads

setserial /dev/ttyS0 uart none #ttyS0=com1 ttyS1=com2
/sbin/modprobe lirc_serial
lircd --device=/dev/lirc0 --output=/dev/lircd
lircd --driver=default --device=/dev/lirc1 --output=/dev/lircd1 --pidfile=/var/run/lircd1.pid

Reboot went fine with no errors. I don't understand why there are two lircd lines?

Typing:

irsend --device=/dev/lircd1 SEND_ONCE 4dtv Power

gives me an error:

irsend: could not connect to socket
irsend: Connection refused

irsend --device=/dev/lircd SEND_ONCE 4dtv Power

and

irsend SEND_ONCE 4dtv Power

both work. However, the receiver then sometime becomes deaf for awhile? So no change.

I do see lircd1 in /dev:

ls -la /dev/l*
lrwxrwxrwx 1 root root 5 Sep 9 22:22 /dev/lirc -> lirc0
crw------- 1 root root 61, 0 Sep 9 22:22 /dev/lirc0
srw-rw-rw- 1 root root 0 Sep 9 22:21 /dev/lircd
srw-rw-rw- 1 root root 0 Sep 9 22:22 /dev/lircd1

Don't know where to go next?

Haven't had much time to

Haven't had much time to test, but one thing I want to check better, last night when the remote was very slow, I noticed that the machine was also recording a show via the PV150. Later the remote was back to normal and I checked and the machine was not recording anything.

Could this make any difference?

I hope to do some testing tonight.

IVTV update

Got a comment that ivtv 10.2 may address this problem. How do I update to 10.2?

You'll have to compile from

You'll have to compile from source or update to a new kernel which would entail upgrading any other kernel module to match the new kernel. The first option would be best.

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

Thanks, I complied from

Thanks, I complied from source and it seems to fix the problem. I have to kill ivtv and re-modprobe it to get the new code running, but when I reboot, it continues to load the old version. Do I need to remove the old version and re-install this new version? Not sure what to do from here.

Thank you for ALL your help, I think I am getting close to a solution to this problem.

Yes you should alway remove

Yes you should always remove what you previously had and then install the new. But no worries, just do a rpm -e ivtv-???? and then just do a /sbin/depmod -a and that will pick up the new modules. Then you can either remove the modules loaded at that time using modprobe rmmod ivtv and then reload it back or just reboot after depmod -a.

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

10.1 still

Okay, did

rpm -e ivtv-kmdl-2.6.20-1.2944.fc6.i686 ivtv-0.10.1-126.fc6.at.i386

and that removed those units. Did a new make and install of the new ivtv (10.5), then did

/sbin/depmod –a

Followed by

reboot.

After reboot:

dmesg | grep ivtv
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.10.1 (tagged release) loading
ivtv: Linux version: 2.6.20-1.2944.fc6 SMP mod_unload 686 4KSTACKS
ivtv: In case of problems please include the debug info between
......

Still showing 10.1, should be 10.5!

Re: Yes you should alway remove

d00dtv wrote:

Yes you should always remove what you previously had and then install the new. But no worries, just do a rpm -e ivtv-???? and then just do a /sbin/depmod -a and that will pick up the new modules. Then you can either remove the modules loaded at that time using modprobe rmmod ivtv and then reload it back or just reboot after depmod -a.

"Please ignore the man behind the curtain"
Dennis

Just to be clear, the ivtv-???? would be, for my system,
ivtv-kmdl-2.6.20-1.2944.fc6.i686

Yes it would be that and the

Yes it would be that and the others.

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

No luck

I can't seem to get them removed. Also was concerned it wants to remove ivtv-kmdl-2.6.20-1.2944.fc6.i686, which does not appear to be included in the ivtv source.

Tried a YUM update ivtv, but that wants to update kernel to 2.6.22.1-32.fc6 but with my list of repositories, it can't find. Was also not sure I wanted to update the kernel. I also tried to update just ivtv-kmdl-2.6.20-1.2944.fc6.i686, found no update. So I tried to do an install of ivtv-kmdl-2.6.20-1.2962.fc6.i686 but that wants a kernel update as well. Out of ideas, short of adding a repository and upgrading the kernel.

Yes you want to remove the

Yes you want to remove the ivtv-kmdl for sure. You may need to remove them both at the same time like rpm -e ivtv-kmdl-???? ivtv-???? all on one line. Do not upgrade the kernel!!!

"Please ignore the man behind the curtain"
Dennis

"Please ignore the man behind the curtain"
Dennis

IRQ problem?

Sure looks like a problem between recording and LIRCD. I was wondering if there is an irq conflict, but lsdev is not installed, how do I install this, or is there a better utility to check irq status?