[mythtv-users] LIRC: mode2 works but irw stuttering

Kilian kilian27 at googlemail.com
Fri Feb 27 12:56:07 UTC 2009


Hello everyone!

(I already posted this in an Ubuntu forum but did not receive an answer. So
I hope for some LIRC experts here on this list!)

I am using LIRC 0.8.3 on Mythbuntu 8.10 with an homebrew serial IR receiver.
The mainboard is an Asus M3N78.
In principle, the receiver works: Its LED is flashing when I press a button
on the remote. Also, mode2 generates a lot of output lines immediately on
every keypress. But with irw, the output is very "stuttering", i.e. it shows
a signal only every 10 seconds or for one in 50 keypresses or so.
Google gave me some hint about using hdparm for IDE drives, but my HDD is a
SATA drive, only the CD-ROM is IDE (but was not in use during my LIRC
experiments). The system was idle.
When I grep for LIRC in /var/log/messages I find some "ignoring spike" lines
which appeared in those times when I tried to get something out of irw.

See below for the output of several commands.

Has anyone an idea what could cause the problem?
Thanks in advance!
Kilian


I call this script on startup through a link in /etc/rcS.d/ :

~> cat /etc/init.d/homebrew
#! /bin/sh
setserial /dev/ttyS0 uart none
modprobe lirc_serial
modprobe lirc_dev
sleep 1
ln /dev/lirc0 /dev/lirc
start-stop-daemon --start --quiet --exec /usr/sbin/lircd

~> cat /etc/modprobe.d/lirc-serial
alias char-major-61 lirc_serial
options lirc_serial irq=4 io=0x3f8

Continously pressing keys on the remote for some minutes gives only very few
signals received by irw:
~> irw
0000000000000090 00 Program_Up Sony_RM-836
0000000000000090 01 Program_Up Sony_RM-836
0000000000000090 02 Program_Up Sony_RM-836
0000000000000090 03 Program_Up Sony_RM-836
0000000000000092 00 Volume_Up Sony_RM-836
0000000000000092 00 Volume_Up Sony_RM-836
00000000000001cf 00 Down Sony_RM-836

mode2 reacts immediately:
~> sudo /etc/init.d/lirc stop
~> sudo mode2
space 2964651
pulse 2322
space 484
pulse 620
space 562
pulse 813
[..] (about 20-30 "space" and "pulse" lines for each button press)

~> grep lirc /var/log/messages
Feb 24 21:55:10 mythbox kernel: [   15.852836] lirc_dev: IR Remote Control
driver registered, major 61
Feb 24 21:55:10 mythbox kernel: [   16.352151] lirc_serial: auto-detected
active low receiver
Feb 24 21:55:10 mythbox kernel: [   16.352155] lirc_dev:
lirc_register_plugin: sample_rate: 0
Feb 24 22:03:37 mythbox kernel: [  525.940872] lirc_serial: ignoring spike:
1 1 49a460a9 49a460a9 d5a7b d4e47
Feb 24 22:03:42 mythbox kernel: [  530.940905] lirc_serial: ignoring spike:
1 1 49a460ae 49a460ae d5a9c d4fcf
Feb 24 22:03:45 mythbox kernel: [  533.940920] lirc_serial: ignoring spike:
0 1 49a460b1 49a460b1 d5aab d4e23
Feb 24 22:03:50 mythbox kernel: [  538.940949] lirc_serial: ignoring spike:
0 1 49a460b6 49a460b6 d5ac8 d4f58
Feb 24 22:03:59 mythbox kernel: [  547.940998] lirc_serial: ignoring spike:
0 1 49a460bf 49a460bf d5af9 d4d8e
Feb 24 22:04:08 mythbox kernel: [  556.941047] lirc_serial: ignoring spike:
0 1 49a460c8 49a460c8 d5b2a d5050
Feb 24 22:04:09 mythbox kernel: [  557.941055] lirc_serial: ignoring spike:
1 1 49a460c9 49a460c9 d5b32 d4e62
Feb 24 22:04:10 mythbox kernel: [  558.941060] lirc_serial: ignoring spike:
1 1 49a460ca 49a460ca d5b38 d4f1b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090227/8d1f03fa/attachment.htm>


More information about the mythtv-users mailing list