LinHES Forums
http://forum.linhes.org/

lirc sometimes uses 100% cpu on powerup
http://forum.linhes.org/viewtopic.php?f=21&t=24894
Page 1 of 1

Author:  knappster [ Tue Aug 20, 2019 7:17 pm ]
Post subject:  lirc sometimes uses 100% cpu on powerup

On both 8.6.0 and 8.6.1 I've had an intermittent LIRC issue that happens infrequently. Sometimes when I power the machine up, the remote is unresponsive and if I ssh into the machine, LIRC is using 100% of CPU. It seems that the only way to recover is a reboot of the machine. Today I tried "sudo sv restart remotes" and it was no longer using 100% CPU, but the mythwelcome screen still did not respond to button presses. I tried "killall mythwelcome" to restart mythwelcome and it restarted but still did not respond to button presses. Ultimately, I rebooted the machine and it was fine on the next boot.

I don't see anything obvious in the logs, but when I tried to restart "remotes" I get these messages:
Code:
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Info: Using remote: Streamzap_PC_Remote.
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Notice: lircd(default) ready, using /var/run/lirc/lircd
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Notice: accepted new client on /var/run/lirc/lircd
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Info: Cannot configure the rc device for /dev/lirc0
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: default_init(): No such file or directory
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Warning: Failed to initialize hardware
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: default_init(): No such file or directory
Aug 20 06:20:56 linhes lircd-0.10.1[3047]: Notice: accepted new client on /var/run/lirc/lircd
Aug 20 06:20:57 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:20:57 linhes lircd-0.10.1[3047]: default_init(): No such file or directory
Aug 20 06:20:58 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:20:58 linhes lircd-0.10.1[3047]: default_init(): No such file or directory
Aug 20 06:20:59 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:20:59 linhes lircd-0.10.1[3047]: default_init(): No such file or directory
Aug 20 06:21:00 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:21:00 linhes lircd-0.10.1[3047]: default_init(): No such file or directory
Aug 20 06:21:01 linhes lircd-0.10.1[3047]: Error: could not get file information for /dev/lirc0
Aug 20 06:21:01 linhes lircd-0.10.1[3047]: default_init(): No such file or directory


It seems that I've had USB issues a couple times in the past and I don't know if this could be related to the motherboard or streamzap receiver hardware or if it is more likely software. Also if I could somehow automatically detect and recover from this it would be helpful as well.

Author:  mattbatt [ Wed Aug 21, 2019 2:19 pm ]
Post subject:  Re: lirc sometimes uses 100% cpu on powerup

Shot in the dark here (no pun intended) are you using a streamzap receiver with the little indicator LED on top? Is if flashing wildly even when you aren't doing anything? I've had CFL bulbs that cause IR interference and a kids toy that broadcast tons of IR for communicating with a box.

Author:  knappster [ Wed Aug 21, 2019 9:15 pm ]
Post subject:  Re: lirc sometimes uses 100% cpu on powerup

Thanks for the suggestions. It is a streamzap with the red LED, but I dont think it was behaving erratically. After restarting lirc, I think it flashed as if it was normal, but the computer did not respond. I am not sure what the LED did while lirc was at 100% CPU, though. I noticed that there is a remotes.log file in /tmp, so maybe that will offer some useful data when it happens again.

Author:  mattbatt [ Sat Aug 24, 2019 3:50 pm ]
Post subject:  Re: lirc sometimes uses 100% cpu on powerup

The LED is a simple stupid circuit that will react to any IR it receives with no logic involved. It's only useful to see interference and know your remote is transmitting something.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/