|
From: R B <for...@ya...> - 2007-06-17 09:53:13
|
I have a Compaq Armada laptop with a built-in IR port. The Compaq BIOS setup utility indicates the following as Enabled: "Generic FAST INFRARED PORT" IRQ 4 I/O Range 0x03E8-0x03EF This laptop is running Fedora Core 4. So "uname -a" says: Linux fc4lt1 2.6.17-1.2142_FC4 #1 Tue Jul 11 22:41:12 EDT 2006 This is a section from "dmesg": .... Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A .... I have downloaded and installed lirc-0.8.2 After running "setup.sh" the "lirc-0.8.2/.setup.config" file contains: LIRC_DRIVER=sir LIRC_PORT=0x3e8 LIRC_IRQ=4 LIRC_MAJOR=61 IRTTY=none DRIVER_PARAM_TYPE=com DRIVER_PARAMETER=com3 SOFT_CARRIER=on TRANSMITTER=on IGOR=off TIMER=65536 X11_WINDOWS=on DEBUG=off NO_DAEMONIZE=off NO_LONG_CODES=off USE_SYSLOG=off DYNCODES=off Then I did a reboot. To get things going, I copied a config file from one of the remotes at: http://lirc.sourceforge.net/remotes/ to "/etc/lircd.conf" I created a new entry: mknod /dev/lirc c 61 2 Checking for the lirc files in /dev ls -al /dev/li* crw-rw-rw- 1 root root 61, 2 Jun 16 01:41 /dev/lirc srw-rw-rw- 1 root root 0 Jun 16 01:44 /dev/lircd The "/etc/rc.d/rc.local" file: #!/bin/sh touch /var/lock/subsys/local /sbin/modprobe lirc_sir /usr/local/sbin/lircd To start lircd: /usr/local/sbin/lircd To see if lircd is running: ps aux | grep lir root 10827 0.0 0.5 1572 544 tty5 S+ 00:25 0:00 /usr/local/sbin/lircd root 10888 0.0 0.7 3712 660 pts/4 S+ 00:32 0:00 grep lir First the "/var/log/lircd" contains: Jun 17 00:17:06 fc4lt1 lircd: lircd(sir) ready So, I did a test with: irsend LIST "" "" Nothing happens. I get the command line again. Now the "/var/log/lircd" contains: Jun 17 00:17:06 fc4lt1 lircd: lircd(sir) ready Jun 17 00:21:19 fc4lt1 lircd: accepted new client on /dev/lircd Jun 17 00:21:19 fc4lt1 lircd: could not open /dev/lirc Jun 17 00:21:19 fc4lt1 lircd: default_init(): No such device Jun 17 00:21:19 fc4lt1 lircd: caught signal Of course, lircd is not running any more: ps aux | grep lir root 10906 1.0 0.7 3716 660 pts/4 R+ 00:36 0:00 grep lir "lsmod" says: Module Size Used by lirc_dev 16416 0 ipv6 248513 18 parport_pc 28461 1 lp 13185 0 parport 37897 2 parport_pc,lp autofs4 22085 1 rfcomm 37845 0 l2cap 24385 5 rfcomm bluetooth 48933 4 rfcomm,l2cap sunrpc 162917 1 dm_mod 61269 0 uhci_hcd 24525 0 i2c_piix4 9425 0 i2c_core 22721 1 i2c_piix4 3c589_cs 13637 1 floppy 61373 0 ext3 135881 1 jbd 60373 1 ext3 So why does it say... .... lircd: could not open /dev/lirc .... lircd: default_init(): No such device "/dev/lirc" and "/dev/lircd" still exist. What did I do wrong? Did I miss something? ------------------------------------------ ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC |