Skip to main content
Topic: IRToy Locks Up After a Few Sends on RPi With New Kernel (Read 5769 times) previous topic - next topic

Re: IRToy Locks Up After a Few Sends on RPi With New Kernel

Reply #15
It should all be there. This is a clone of my production system.

It gets started from
/etc/init.d/lirc-local

try as root: (psg is a little script I wrote in /usr/local bin/ to grep a process status)

on my system it returns the following:

psg lir

USER      PID %CPU %MEM    VSZ  RSS TTY      STAT START  TIME COMMAND
root      2174  0.0  0.2  1804  476 ?        Ss  Oct15  0:00 /usr/local/sbin/lircd /etc/lirc/lircd.conf
root      2233  0.0  7.3  72420 13932 ?        Sl  Oct15  0:03 /usr/local/bin/node /usr/local/src/lirc_web/app.js

Re: IRToy Locks Up After a Few Sends on RPi With New Kernel

Reply #16
Ok all seems to be fine now and the 'toy' is sending signals to the Onkyo and Squeezebox. I am used to lirc starting on boot up or with service lirc start (restart).

Having added my existing aircon conf file it is turning the aircon on and off with:

irsend SEND_ONCE TCL on
irsend SEND_ONCE TCL off

I have many more keys for the aircon in another conf file to add later.
It doesn't like recording my aircon remote, fails with something like 'that is strange 96 should be odd' but I have a full conf from earlier work I did.

After more testing I will save the image and then upgrade Raspbian by one release at a time from 622 to see where it breaks.

I'll send you a PM too.

Re: IRToy Locks Up After a Few Sends on RPi With New Kernel

Reply #17
Great! Glad to hear it's working.

I don't remember how I recorded the Onkyo and Squeezbox. I may have used the Windows lirc.

There have been quite a few changes to the Pi's USB driver recently, I'm hoping that there are some handles for controlling the various features without resorting to USB 1.1.

I'll look forward to hearing from you, good luck!

Re: IRToy Locks Up After a Few Sends on RPi With New Kernel

Reply #18
I tried a build from the latest sources, but despite using the same conf file as before it doesn't work. I don't get errors, the toy lights up as normal when trying to send a command, but nothing happens with the device that I'm trying to control.
It always worked in the past with the same device and conf file, be it only for 5-6 times of course.

Did you did anything special when building the latest sources or are doing so when running/using lirc in order to make it work with the toy?

Re: IRToy Locks Up After a Few Sends on RPi With New Kernel

Reply #19
The version of lirc that works with kernel #622 on the Pi was compiled from 0.9.0 source that was  manually patched with lirc-0.9.0-usb_irtoy.patch.  I have not tried to compile lirc from the latest sources.

Re: IRToy Locks Up After a Few Sends on RPi With New Kernel

Reply #20
[quote author="dennyfmn"]The version of lirc that works with kernel #622 on the Pi was compiled from 0.9.0 source that was  manually patched with lirc-0.9.0-usb_irtoy.patch.  I have not tried to compile lirc from the latest sources.[/quote]
Ah, then I completely misunderstood, my bad. The bit about the build started after the reference to the latest sources having the patches included.
In that case you might be out of luck. I've been using this combo for a while in the latest kernel (3.17) and the problems still occur. Not having switched to a lower USB speed though.