From: Jim S. <ji...@st...> - 2004-12-31 18:36:34
|
I just realized that I copied the wrong lines from syslog. The lines I copied are before I plugged the receiver back in the serial port. Here are the correct lines: Dec 31 12:30:28 woodland kernel: lirc_serial: in init_timing_params, freq=38000, duty_cycle=50, clk/jiffy=3178496, pulse=41822, space=41822, conv_us_to_clocks=3178 Dec 31 12:30:29 woodland kernel: lirc_serial: auto-detected active low receiver Dec 31 12:30:29 woodland kernel: lirc_dev: lirc_register_plugin:sample_rate: 0 Jim Jim Stuhlmacher wrote: > I have not been able to get mode2 to output anything. I have tried > suggestions in the FAQ and have not found anything on the mailing list > archive. I am running 2.6.8 kernel so I got the latest source from > CVS. I purchased a Ready-made home-brew receiver from www.zapway.de. I > know the receiver works because I tested it with a different PC using > WinLIRC. I also tested the serial port on my Linux system by using > pilot-xfer to hot sync my Palm. I compiled and installed with: > > ./setup.sh # picked serial, io: 0x3f8 irq: 4 > ./autogen.sh > ./configure.sh --prefix /usr > make > make install # as root > > This seemed to work fine. I confirmed that the BIOS setup has the same > io address and irq. After a reboot, I get the following: > > # lsmod|grep lirc > lirc_dev 14028 0 > > I then run: > > # setserial /dev/ttyS0 uart none > # modprobe lirc_serial debug=1 > > which causes > > # lsmod|grep lirc > lirc_serial 13504 0 > lirc_dev 14028 1 lirc_serial > > and syslog gets: > > Dec 31 11:30:55 woodland kernel: lirc_serial: in init_timing_params, > freq=38000, duty_cycle=50, clk/jiffy=3178496, pulse=41822, space=41822, > conv_us_to_clocks=3178 > Dec 31 11:30:56 woodland kernel: lirc_serial: auto-detected active high > receiver > Dec 31 11:30:56 woodland kernel: lirc_dev: > lirc_register_plugin:sample_rate: 0 > > when I run the command: > > # mode2 > > syslog gets: > > Dec 31 11:31:09 woodland kernel: lirc_serial: Interrupt 4, port 03f8 > obtained > > However, pressing the same buttons on the remote that works fine with > WinLIRC causes no output from mode2. When I break out of mode2, syslog > gets: > > Dec 31 11:32:00 woodland kernel: lirc_serial: freed IRQ 4 > > Here is diagnostic info: > > # ls -l /dev/lirc* > crw-rw-r-- 1 root root 61, 0 Dec 30 19:43 /dev/lirc > srw-rw-rw- 1 root root 0 Dec 30 21:28 /dev/lircd > prw-rw-rw- 1 root root 0 Dec 30 17:47 /dev/lircm > > Here is my .setup.config: > > LIRC_DRIVER=serial > LIRC_PORT=0x3f8 > LIRC_IRQ=4 > LIRC_MAJOR=61 > IRTTY=none > DRIVER_PARAMETER=com1 > SOFT_CARRIER=on > TRANSMITTER=off > IGOR=off > TIMER=65536 > X11_WINDOWS=on > DEBUG=off > NO_DAEMONIZE=off > NO_LONG_CODES=off > USE_SYSLOG=off > DYNCODES=off > > What do I need to do to get the driver/mode2 to work? > > Thanks for your help, > > Jim > > > > |