This tutorial works with ubuntu 9.10, 10.04, 10.10, 11.04, 11.10.
This howto is for the Pinnacle PCTV (pro) serial remote.
Also a little howto on how to use this remote with XBMC Eden.
First we have to download lirc: http://www.lirc.org/.
Download version 0.8.6 (on the left).
Download it to your Download folder and extract it there.
Now open an console.
Log in as root
No CD to the lirc folder.
Code:
cd /home/"username"/Downloads/lirc-0.8.6/
Now we need to configure lirc.
Select option "1. Driver Configuration".
Now a new menu will open. Select option "4. Other serial port devices".
Then select "Pinnacle Systems PCTV (pro) reciever" you have to scroll a bit for this.
Now select the com port where the IR is connected. If you don know select "/dev/ttyS0"
Select option "2. Software Configuration",
and select "1. Compile tools for X-Windows" and "5. Use syslog instead of own log file".
Select option "3. Save configuration & Run configure".
Now lirc says you need to run make & make install, DON'T DO THIS!
We need to install lirc from the repository's first.
Code:
apt-get install lirc
Now we need to select the device.
Select "Pinnacle Systems PCTV (pro) reciever"
Now the IR transmitter.
Select "Serial Port (UART) : Direct TV Reciever"
Now we need to stop the Lirc service.
and kill al remaining stuff of lircd
Code:
service lirc stop
rm /var/run/lirc/*
Now enter make & make install (watch the dubble &&).
Code:
make && make install
Now edit the file /etc/lirc/hardware.conf.
Code:
gedit /etc/lirc/hardware.conf
Change te following lines:
REMOTE_DRIVER="pinsys"
REMOTE_DEVICE="/dev/ttyS0" # (for COM1, for COM2 /dev/ttyS1 and so on).
TRANSMITTER_DEVICE="/dev/lirc"
LOAD_MODULES="false"
Now we need to copy some files to the right place.
Code:
cp /usr/share/lirc/remotes/pinnacle_systems/lircd.conf.pctv /etc/lirc/lircd.conf
cp /usr/local/sbin/* /usr/sbin/
Now we have to reconfigure setserial.
Code:
dpkg-reconfigure setserial
Set setserial to manuel.
Edit the file autoserial.conf and delete serial.conf
Code:
rm /etc/serial.conf
gedit /var/lib/setserial/autoserial.conf
Remove all the lines from autoserial.conf except the line where stands /dev/ttyS0 or if you used COM2 /dev/ttyS1. You don't have to delete the comment lines (#).
Start lirc service again.
and start testing configuration.
NOTE! For Ubuntu 11.10 this will not work! Restart computer for changes to take effect!
Code:
service lirc start
irw
now press some buttons on your remote.
If it is ok you should see something like this: (if not just reboot computer and then try irw)
000000000000001b 00 vol+ PinnacleSysPCTVRemote
000000000000000b 00 Stop PinnacleSysPCTVRemote
0000000000000015 00 Pause PinnacleSysPCTVRemote
000000000000000d 00 Play PinnacleSysPCTVRemote
I used XBMC as test program. XBMC has build-in lirc support your remote should work in xbmc.
Code:
add-apt-repository ppa:team-xbmc
apt-get update
// For ubuntu 11.10:
apt-get install xbmc
// For older ubuntu:
apt-get install xbmc xbmc-standalone
For XBMC Eden this remote doesn't work directly anymore to change this:
edit /usr/share/xbmc/system/Lircmap.xml
Code:
gedit /usr/share/xbmc/system/Lircmap.xml
Look for the line that says <remote device="PinnacleSysPCTVRemote">
and change the lines according to this:
Code:
<remote device="PinnacleSysPCTVRemote">
<play>KEY_PLAY</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<left>Vol-Rew</left>
<right>Vol+FF</right>
<up>Chan+Play</up>
<down>Chan-Stop</down>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<select>middle</select>
<back>KEY_UNDO</back>
<menu>KEY_MENU</menu>
<title>KEY_L</title>
<info>KEY_INFO</info>
<skipplus>KEY_NEXT</skipplus>
<display>Fullscreen</display>
<record>KEY_RECORD</record>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<one>KEY_1</one>
<two>KEY_2</two>
<three>KEY_3</three>
<four>KEY_4</four>
<five>KEY_5</five>
<six>KEY_6</six>
<seven>KEY_7</seven>
<eight>KEY_8</eight>
<nine>KEY_9</nine>
<zero>KEY_0</zero>
</remote>
Now your remote also works in XBMC Eden
For help you can mail me, or use the forum.
Bookmarks