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

LIRC: irsend is too slow and laggy
http://forum.linhes.org/viewtopic.php?f=23&t=22360
Page 1 of 1

Author:  turpie [ Mon Dec 05, 2011 4:59 pm ]
Post subject:  LIRC: irsend is too slow and laggy

I am using a mce-usb irblaster to "forward" volume and power button presses from my (non-learning) MCE remote to my Loewe TV.
It all works but it is very slow, which is annoying when you need to change the volume. You hit the button a couple of times and its still too loud so you push it again, but the first commands are still flowing through and the volume ends up too quiet.
This is particularly noticeable if you hold down the button for a couple of seconds as the volume keeps changing for several seconds after you release the button.

I have created a test script that sends ten commands and it takes 5 seconds to complete.
Code:
[root@mythtv mythtv]# cat irsendTest.sh
#!/bin/bash
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
/usr/bin/irsend SEND_ONCE Loewe_150_TV Left; echo "Sent."
[root@mythtv mythtv]# time ./irsendTest.sh
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.

real    0m5.369s
user    0m0.006s
sys     0m0.012s


Does anyone know how I can speed this up?

Author:  mattbatt [ Tue Dec 06, 2011 1:39 am ]
Post subject: 

buy a universal remote that "knows" the MCE codes and your TV codes save yourself all the hassle.

Author:  turpie [ Tue Dec 06, 2011 4:27 pm ]
Post subject: 

Well I had a Logitech Harmony 525 but even though I had it programmed properly no one ever used the extra features, and I didn't really like the feel of it.
So when it died I bought a MCE remote because they are good quality, come with a usb ir receiver, and were supposed to have programmable power and volume buttons. Unfortunately the newer models are unable to learn commands from your existing tv remotes.
Using irsend I can get 95% of what I want, it'll just be a little confusing for people not used to the lag in processing volume buttons.

Author:  jams [ Wed Dec 07, 2011 10:48 am ]
Post subject: 

Don't have a solution for you, but others have also reported irsend to be laggie. This is regards to lirc in general, even for people not using linhes.

Author:  goofee [ Wed Dec 07, 2011 1:45 pm ]
Post subject: 

For interest sake, I ran your script on my hardware substituting my remote name. It completed in half the time.
Code:
time ./irsendtest
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.
Sent.

real    0m2.457s
user    0m0.009s
sys     0m0.011s

I'm running R7.1 with a serial ir blaster from irblaster.info

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