View previous topic :: View next topic |
Author |
Message |
zuboskal14 n00b
Joined: 30 Mar 2009 Posts: 34 Location: Moscow, Russia
|
Posted: Thu Feb 24, 2011 9:26 pm Post subject: [solved] Cannot get lirc to work with pctv remote |
|
|
Hi, everybody..
I cannot get lirc to work with PCTV Remote connected on serial port on 64 multilib system.
I try it with gentoo-sources-2.6.36-r5, but lirc.org say it bad idea:
Quote: | lirc-0.8.7 has been tested with kernel versions up to 2.6.35.
...
From 2.6.36 on all LIRC kernel drivers are already included in the kernel. There has been a slight interface change in the LIRC ioctls that will affect 64-bit kernels. We're already working on a 0.9.0 release which is supposed to be fully functional with the in-kernel drivers. In the meanwhile you should use a 0.9.0-pre snapshot.
|
I also tried 2.6.32 but it did not work too, and now I use 2.6.35 kernel.
On this forum have some good themes about this hardware (first,second,third), but this did not help me
May be because the posts are very old, or something I did not understand.
Now I have:
kernel config
Code: | $ dmesg | grep -i tty
[ 0.000000] console [tty0] enabled
[ 0.536232] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.557231] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.090490] Bluetooth: RFCOMM TTY layer initialized
|
Code: | $ dmesg | grep -i lirc gives nothing (???)
|
Code: | $ cat /etc/conf.d/lircd
# for devices with lirc-kernel-module
LIRCD_OPTS="-d /dev/ttyS0"
|
My /etc/lirc/lircd.conf (from lirc.org)
Code: | $ cat /etc/make.conf | grep -i lirc
LIRC_DEVICES="pctv" |
I start lircd withoud daemon to see what happens:
Code: |
# setserial /dev/ttyS0 uart none
# lircd -n --driver=pinsys --device=/dev/ttyS0
lircd-0.8.7[10988]: lircd(pinsys) ready, using /var/run/lirc/lircd
lircd-0.8.7[10988]: accepted new client on /var/run/lirc/lircd
lircd-0.8.7[10988]: could not reset tty
lircd-0.8.7[10988]: Failed to initialize hardware
lircd-0.8.7[10988]: select() failed
lircd-0.8.7[10988]: Bad file descriptor
lircd-0.8.7[10988]: removed client
^CУбито |
I emerge lirc after compiling kernel, but cannot load module lirc_serial - module not found.
'accepted new client' it start 'irw' in another terminal.
After starting 'irw' immediately dies itself.
Also I try start lircd without setserial and modules:
Code: | # lircd -n --driver=pinsys --device=/dev/ttyS0
lircd-0.8.7[10988]: lircd(pinsys) ready, using /var/run/lirc/lircd
lircd-0.8.7[10988]: accepted new client on /var/run/lirc/lircd |
Then 'irw' starts, but silent on pressed keys.
After a few days with this I do not know what else to do. Therefore, I ask for help from you. |
|
Back to top |
|
|
zuboskal14 n00b
Joined: 30 Mar 2009 Posts: 34 Location: Moscow, Russia
|
Posted: Sun Feb 27, 2011 5:44 pm Post subject: |
|
|
Well, if it's interesting to anyone but me, solution is:
gentoo-sources-2.6.35
lirc-0.8.7
Code: | cat /etc/conf.d/lircd
LIRCD_OPTS="--driver=pinsys --device=/dev/ttyS0" |
Code: |
$ cat /etc/make.conf | grep -i lirc
LIRC_DEVICES="pctv" |
modprobe lirc_serial - it wrong: http://www.lirc.org/html/table.html#@hw-tv-card |
|
Back to top |
|
|
|
|
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
|
|