View previous topic :: View next topic |
Author |
Message |
ralle Tux's lil' helper
Joined: 25 Mar 2003 Posts: 144 Location: Aachen, Germany
|
Posted: Tue Jul 22, 2003 4:54 pm Post subject: lirc lircd won't receive signals with irw |
|
|
I tried to emerge lircd, but it did not work for me...
mode2 shows some output, but irw won't show anything. I downloaded the conf file for my remote from lirc.org, and it works perfektly on a friend's pc with my receiver, so the hardware works too.
Here is what I did:
- in the kernel:
<M> Standard/generic (8250/16550 and compatible UARTs) serial support
[ ] Extended dumb serial driver options
[ ] Non-standard serial port support
- put 'LIRC_OPTS=LIRC_OPTS="--with-driver=serial --with-syslog=LOG_DAEMON"' into /etc/make.conf
- 'emerge lirc'
- 'mknod /dev/lirc c 61 0' (COM1)
- create /etc/modules.d/lirc with the alias, io and irq of com1
- 'update-modules'
- 'modprobe lirc_serial irq=4 io=0x3f8'
- copy my lirc conf file (from lirc.org, works on different pc) to /etc/lircd.conf
And here's the result:
- 'mode2' works and even loads the lirc_serial module by itself it it is not loaded
- 'mode2' works whether the serial (NOT the lirc_serial) modules is loaded or not
- 'mode2' works whether lircd is started or not
- 'irw' does not work at all (it does not work whether the serial modules is loaded or not, "Connection refused" error if lircd not running)
- 'lircd' does not load the lirc_serial module by itself when it's not loaded
Here's my /var/log/syslog output:
when I load lirc_serial
Jul 22 18:40:02 fry kernel: lirc_serial: auto-detected active low receiver
when I start lircd:
Jul 22 18:40:07 fry lircd 0.6.6[10596]: lircd(serial) ready
when I start irw:
Jul 22 18:40:26 fry lircd 0.6.6[10596]: accepted new client on /dev/lircd
when I quit irw:
Jul 22 18:40:52 fry lircd 0.6.6[10596]: removed client
Furthermore I don't know whether the kernel serial modules should be loaded before or after lirc_serial, or not at all.
And when I type 'lircd -H lala' to check which drivers are installed, it only gives me 'default', so I don't see a serial driver.
Can anybody using lirc with a serial driver post its 'lircd -H lala'?
Ralph |
|
Back to top |
|
|
sKewlBoy Guru
Joined: 03 Nov 2002 Posts: 406 Location: Portugal
|
Posted: Tue Jul 22, 2003 6:32 pm Post subject: |
|
|
Code: |
skewlb0x root # lircd -H lala
Driver `lala' not supported.
Supported drivers:
default
creative
logitech
pinsys
pixelview
silitek
slinke
dsp
null
|
just as requested |
|
Back to top |
|
|
sKewlBoy Guru
Joined: 03 Nov 2002 Posts: 406 Location: Portugal
|
Posted: Tue Jul 22, 2003 6:36 pm Post subject: |
|
|
about you second question:
Quote: |
Jul 22 19:32:42 skewlb0x lirc_serial: port 03f8 already in use, proceeding anyway
Jul 22 19:32:42 skewlb0x lirc_serial: compile the serial port driver as module and
Jul 22 19:32:42 skewlb0x lirc_serial: make sure this module is loaded first
Jul 22 19:32:43 skewlb0x lirc_serial: auto-detected active high receiver
|
I emerged lirc some time ago, but never got to try it. Now, I gave it a shot nad as you see, you have to load lirc_serial first...
I have serial builtin the kernel, so I'll try that later... |
|
Back to top |
|
|
sKewlBoy Guru
Joined: 03 Nov 2002 Posts: 406 Location: Portugal
|
Posted: Tue Jul 22, 2003 8:12 pm Post subject: |
|
|
Ok, now I have the module loading ok (before serial.o) and this is what happens when I run "irw":
Code: |
skewlb0x root # lircd -n
lircd 0.6.6: lircd(any) ready
lircd 0.6.6: accepted new client on /dev/lircd
lircd 0.6.6: could not open /dev/lirc
lircd 0.6.6: default_init(): No such file or directory
lircd 0.6.6: caught signal
Terminated
|
I do not have /dev/lirc ... |
|
Back to top |
|
|
sKewlBoy Guru
Joined: 03 Nov 2002 Posts: 406 Location: Portugal
|
Posted: Tue Jul 22, 2003 8:16 pm Post subject: |
|
|
Ups, now you "queston post" was helpful with nod for /dev/lirc now it holds on accepted new client, but irw prints nothing... nor mode2...
does mode2 print anything for you ?
--- EDIT ---
I really must be a dumbass (starting in using "Post new reply" instead of editing the last reply...). I forgot to use "-H" with lircd. So, now with "lircd -H pinsys -d /dev/ttyS1" it works. But PCTV remote control sucks (one send is received, the other 100 are not), I prefer using the one from the leaving room TV (clean keystrokes 100% "receivenance" ). |
|
Back to top |
|
|
ralle Tux's lil' helper
Joined: 25 Mar 2003 Posts: 144 Location: Aachen, Germany
|
Posted: Wed Jul 23, 2003 7:19 am Post subject: |
|
|
disabling acpi in vanilla-sources 2.4.21 did the trick for me...damn acpi! hope 2.6 will have a better implementation... |
|
Back to top |
|
|
|