Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lirc lircd won't receive signals with irw
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Tue Jul 22, 2003 4:54 pm    Post subject: lirc lircd won't receive signals with irw Reply with quote

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
View user's profile Send private message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Tue Jul 22, 2003 6:32 pm    Post subject: Reply with quote

Code:

skewlb0x root # lircd -H lala
Driver `lala' not supported.
Supported drivers:
        default
        creative
        logitech
        pinsys
        pixelview
        silitek
        slinke
        dsp
        null


just as requested :P
Back to top
View user's profile Send private message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Tue Jul 22, 2003 6:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Tue Jul 22, 2003 8:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
sKewlBoy
Guru
Guru


Joined: 03 Nov 2002
Posts: 406
Location: Portugal

PostPosted: Tue Jul 22, 2003 8:16 pm    Post subject: Reply with quote

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" :P).
Back to top
View user's profile Send private message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Wed Jul 23, 2003 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum