View previous topic :: View next topic |
Author |
Message |
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Tue May 10, 2005 1:24 pm Post subject: Can't get lirc to work [solved] |
|
|
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Tue May 10, 2005 11:53 pm Post subject: |
|
|
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 |
|
|
kamagurka Veteran
Joined: 25 Jan 2004 Posts: 1026 Location: /germany/munich
|
Posted: Thu May 12, 2005 8:30 am Post subject: |
|
|
Come on! _________________ If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word |
|
Back to top |
|
|
shul n00b
Joined: 31 Oct 2003 Posts: 61
|
Posted: Sun Jun 12, 2005 11:02 am Post subject: |
|
|
Hi, did you try 'setserial /dev/ttySX uart none' ? |
|
Back to top |
|
|
Mental n00b
Joined: 04 Oct 2004 Posts: 45 Location: Estonia
|
Posted: Mon Aug 01, 2005 8:03 am Post subject: |
|
|
You must emerge sys-apps/setserial to get that working. |
|
Back to top |
|
|
|