Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Cannot get lirc to work with pctv remote
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
zuboskal14
n00b
n00b


Joined: 30 Mar 2009
Posts: 34
Location: Moscow, Russia

PostPosted: Thu Feb 24, 2011 9:26 pm    Post subject: [solved] Cannot get lirc to work with pctv remote Reply with quote

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 :cry:
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
View user's profile Send private message
zuboskal14
n00b
n00b


Joined: 30 Mar 2009
Posts: 34
Location: Moscow, Russia

PostPosted: Sun Feb 27, 2011 5:44 pm    Post subject: Reply with quote

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
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