Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get lirc to work [solved]
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
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Tue May 10, 2005 1:24 pm    Post subject: Can't get lirc to work [solved] Reply with quote

I got my IR-sensor today (bought at http://www.zapway.de), and i thought it would be real simple to set up, so I tried following the Howto in the wiki (which by the way is not exactly the best howto I ever read), and somehow it Just Doesn't Work(tm); when I try testing it with irw, this is what I get:
Code:
lircd -n -d /dev/tts/0
lircd 0.7.0[24715]: lircd(serial) ready
lircd 0.7.0[24715]: accepted new client on /dev/lircd
lircd 0.7.0[24715]: could not get hardware features
lircd 0.7.0[24715]: this device driver does not support the new LIRC interface
lircd 0.7.0[24715]: major number of /dev/tts/0 is 4
lircd 0.7.0[24715]: LIRC major number is 61
lircd 0.7.0[24715]: check if /dev/tts/0 is a LIRC device
lircd 0.7.0[24715]: caught signal
zsh: 24715 terminated  lircd -n -d /dev/tts/0

I tried it with tts 1 through five, I am definetely missing something.

[edit]Turns out I made several capital errors here.
1. I had serial support compiled into the kernel, which apparently prevents lirc from taking over the serial port it needs
2. I had to emerge and run setserial on /dev/ttyS*
3. The devices lircd craves is not at all the /dev/tty** that points to the serial port, but the /dev/lirc0 device that is created when the lirc_serial module is inserted.

Maybe I'll write a howto about this. The one in the wiki really is abismal.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word


Last edited by kamagurka on Thu May 12, 2005 9:46 am; edited 2 times in total
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Tue May 10, 2005 11:53 pm    Post subject: Reply with quote

I've been screwing around some more with this, and I found this gem of an error:
Code:
# modprobe lirc_serial
FATAL: Error inserting lirc_serial (/lib/modules/2.6.10-gentoo-r6/misc/lirc_serial.ko): Device or resource busy

And I get this in /var/log/messages
Code:
May 11 01:46:26 kumquad lirc_serial: port 03f8 already in use
May 11 01:46:26 kumquad lirc_serial: use 'setserial /dev/ttySX uart none'
May 11 01:46:26 kumquad lirc_serial: or compile the serial port driver as module and
May 11 01:46:26 kumquad lirc_serial: make sure this module is loaded first
May 11 01:51:22 kumquad lirc_serial: port 03f8 already in use
May 11 01:51:22 kumquad lirc_serial: use 'setserial /dev/ttySX uart none'
May 11 01:51:22 kumquad lirc_serial: or compile the serial port driver as module and
May 11 01:51:22 kumquad lirc_serial: make sure this module is loaded first

Now I have no idea what port 03f8 is and I have no command called setserial. I'm really at a loss, here.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Thu May 12, 2005 8:30 am    Post subject: Reply with quote

Come on!
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
shul
n00b
n00b


Joined: 31 Oct 2003
Posts: 61

PostPosted: Sun Jun 12, 2005 11:02 am    Post subject: Reply with quote

Hi, did you try 'setserial /dev/ttySX uart none' ?
Back to top
View user's profile Send private message
Mental
n00b
n00b


Joined: 04 Oct 2004
Posts: 45
Location: Estonia

PostPosted: Mon Aug 01, 2005 8:03 am    Post subject: Reply with quote

You must emerge sys-apps/setserial to get that working.
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