[mythtv-users] LIRC ledxmit ir blaster daemon dies

M. Barnabas Luntzel mark at luntzel.com
Fri Dec 31 03:00:21 UTC 2004


fedora core 3, kernel 2.6.9-1.681_FC3, mythtv 0.16...all working fine,  
except for the ledxmitd stuff:

following directions on  
http://losdos.dyndns.org:8080/public/mythtv-info/ 
MythTV_DISH_IR_LED_TX_via_Modified_LIRC.htm

  the kernel module from lirc 0.7.0 seems to load fine, except for the  
"Badness in sleep_on_timeout" business shown below (trying to track  
this down, bugzilla seems to be down currently)

ledxmit_dev: IR Remote Control driver registered, at major 72
Badness in sleep_on_timeout at kernel/sched.c:3022
  [<02306ddb>] sleep_on_timeout+0x5d/0x23a
  [<0211bba9>] default_wake_function+0x0/0xc
  [<02125a64>] __request_region+0x52/0x74
  [<22d6389e>] init_port+0x1c7/0x22b [ledxmit_serial]
  [<22d6427f>] init_module+0x33/0x89 [ledxmit_serial]
  [<0213be92>] sys_init_module+0x207/0x2ef
ledxmit_serial: auto-detected active high receiver
ledxmit_dev: ledxmit_register_plugin:sample_rate: 0


lsmod | grep led
ledxmit_serial         13600  0
ledxmit_dev            13708  1 ledxmit_serial

dmesg shows ttyS0 on irq 4:

Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

I've run

  /bin/setserial /dev/ttyS0 uart none

numerous times, just to be sure theres nothing hanging around on the  
port.

I get this:

ledxmit_serial: IRQ 3 busy

in /var/log/messages, and this in /tmp/ledxmitd.log:

Dec 30 18:33:10 toecutter.warpath.org ledxmitd 0.7.0: ledxmitd(serial)  
ready
Dec 30 18:33:18 toecutter.warpath.org ledxmitd 0.7.0: accepted new  
client on /dev/ledxmitd
Dec 30 18:33:18 toecutter.warpath.org ledxmitd 0.7.0: could not open  
/dev/ledxmit
Dec 30 18:33:18 toecutter.warpath.org ledxmitd 0.7.0: default_init():  
Device or resource busy
Dec 30 18:33:18 toecutter.warpath.org ledxmitd 0.7.0: caught signal

this happens every time I try to run   
/usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE JVC_RAW 2

these files exist:

ls -la /dev/ledxmit*
lrwxrwxrwx  1 root root    13 Dec 30 18:00 /dev/ledxmit -> /dev/ledxmit0
crw-r--r--  1 root root 72, 0 Dec 30 18:04 /dev/ledxmit0
srw-rw-rw-  1 root root     0 Dec 30 18:33 /dev/ledxmitd

modprobe ledxmit_serial barks:

WARNING: /etc/modprobe.conf line 19: ignoring bad line starting with  
'below'
WARNING: /etc/modprobe.conf line 21: ignoring bad line starting with  
'pre-install'

the overall behavior exists when I comment these two lines out as well.

here is whats in my modprobe.conf:

alias char-major-61 lirc_i2c
alias eth0 sk98lin
alias scsi_hostadapter sata_via
alias snd-card-0 snd-via82xx
options snd-card-0 index=0
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx &&  
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-via82xx { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; };  
/sbin/modprobe -r --ignore-remove snd-via82xx
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
# ivtv modules setup
alias char-major-81 videodev
alias char-major-81-0 ivtv
#alias msp3400 msp3400-ivtv
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe --ignore-install  
lirc_i2c
# nvidia kernel module
alias char-major-195 nvidia-1_0-6629
# Module for IR out
alias char-major-72 ledxmit_serial
below ledxmit_serial ledxmit_dev
options ledxmit_serial irq=3 io=0x3f8
pre-install lirc_serial /bin/setserial /dev/ttyS0 uart none


I've tried to strace the daemon:

open("/dev/ledxmit", O_RDWR)            = -1 EBUSY (Device or resource  
busy)


probably trying to use IRQ 3, but I modified the myth-ledxmit.sh  
configure line like so:

./configure --program-prefix=ledxmit- --prefix=/usr/local/lirc-ledxmit \
   --with-major=72 --with-port=0x2f8 --with-irq=4 --with-transmitter \
   --enable-sandboxed --with-driver=serial

to use 4 instead of 3.

anyway. thanks for your help. hope thats enough background info...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3846 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20041230/6a787830/attachment.bin


More information about the mythtv-users mailing list