Kernel: 2.6.16.15.26
Lirc: 0.8.0
First, instal the following packages:
Code:
# sudo apt-get install build-essential
# sudo apt-get install linux-headers-2.6.15-26 (replace it by your kernel release number)
# sudo apt-get install dialog
Download the last lirc source from http://www.lirc.org. Untar it on a working folder:
Code:
# tar -xvjf lirc-0.8.0.tar.bz2
Chdir to lirc-0.8.0. Execute setup.sh
Code:
# cd lirc-0.8.0
# ./setup.sh
Select option "1 Driver Configuration". A new meu will show. Select option "4 Other serial port devices", select "b Pinnacle Systems PCTV (pro) reciever" on the new menu. Finally, select COM port where your IRD is connected.
Select option "2 Software configuration", and select "1 Compile tools for X-Windows" and "5 Use syslogd instead of own log file"
Select option "3 Save configuration & run configure".
Run make and make install:
Code:
# make
# sudo make install
Now install the packages for lirc. It will create some files that you will need.
Code:
# sudo apt-get install lirc
edit the file /etc/lirc/hardware.conf and change the following lines:
LOAD_MODULES="false"
DRIVER="pinsys"
DEVICE="/dev/ttyS0" #To COM1. To COM2, user /dev/ttyS1 and so on.
Copy the right lircd.conf.
# sudo cp /usr/share/lirc/remotes/pinnacle_systems/lircd.conf.pctv /etc/lirc/lircd.conf
Now the tricky part. The lirc package installed another copy of lirc binary, which didn't work for me. So, I had to replace it with the compiled one. To do this, execute the following commands:
Code:
# sudo mv /usr/sbin/lircd /usr/sbin/lircd-original
# sudo mv /usr/sbin/lircmd /usr/sbin/lircmd-original
# sudo cp /usr/local/sbin/lircd /usr/sbin
# sudo cp /usr/local/sbin/lircmd /usr/sbin
It's time to test. The best way I found is open two terminals. On the first one execute:
Code:
# sudo /etc/init.d/lirc stop
# sudo lircd --nodaemon
The message will be showed
lircd-0.8.0[28291]: lircd(pctv) ready
On the second terminal execute
Press the remote control buttons and you should see somenthing like this:
000000000000001b 00 vol+ PinnacleSysPCTVRemote
000000000000000b 00 Stop PinnacleSysPCTVRemote
0000000000000015 00 pause PinnacleSysPCTVRemote
000000000000000d 00 Play PinnacleSysPCTVRemote
If it's all ok, your system is ready. Press <CTRL-C> on both terminals and restart de daemon with:
Code:
# sudo /etc/init.d/lirc start
If something didn't work, take a look at /var/log/syslog. It can help you understand what didn't work.
Totem
I use totem as my movie player. To make it work with your remote control, create a file named .lircd in your home folder
Put the following lines on it:
# edit the "button =" part for each entry according to your remote,
# and stick this stuff in ~/.lircrc
begin
prog = Totem
remote = *
button = Play
repeat = 1
config = play
end
begin
prog = Totem
remote = *
button = pause
repeat = 0
config = pause
end
begin
prog = Totem
remote = *
button = FForward
repeat = 1
config = seek_forward
end
begin
prog = Totem
remote = *
button = Rewind
repeat = 1
config = seek_backward
end
begin
prog = Totem
remote = *
button = Fullscreen
repeat = 1
config = fullscreen
end
begin
prog = Totem
remote = *
button = vol+
repeat = 1
config = volume_up
end
begin
prog = Totem
remote = *
button = vol-
repeat = 1
config = volume_down
end
begin
prog = Totem
remote = *
button = next
repeat = 1
config = next
end
begin
prog = Totem
remote = *
button = YOUR_BUTTON
repeat = 1
config = previous
end
begin
prog = Totem
remote = *
button = Power
repeat = 1
config = quit
end
That's it! I hope this howto helps you.
Bookmarks