KnoppMyth downloads | documentation | HowTo | reporting bugs | links | Recent Changes  
search for in the  

What is a Wiki?

See WikiWikiWeb

If you don't know how to use a wiki see the WikiHowto

ErfurtWiki is maintained by a loosely knit group of developers.

Quick Links

Related sites

Contact

Please submit website bugs in the BugReports

Contribute!

Please file any wishes on UserSuggestions.

Hosted By

Recompiling LIRC

EDIT (randomhtpcguy)

R5F1 Instructions (kernel-headers are working to compile lirc now, kernel-source not required).

verify sources point to stable
nano /etc/apt/sources.list
apt-get update
apt-get remove lirc
yes to remove 3 lirc things
m-a update
m-a prepare
creates the linux -> linux headers symbolic link

However, you may need to manually create a symlink from /usr/src/linux to /usr/src/linux-headers-<version>. If the config operation fails with a "lib/cpp fails sanity check" message and config.log contains an error about a missing file named "linux/.h", then you're probably missing a symlink. The way it should look on an R5F27 system is:

/usr/include/linux -> /usr/src/linux/include/linux

/usr/src/linux -> linux-headers-2.6.18-chw-13

The first link should already be there, but the second of the above links is apparently not created by the install procedure nor by the module-assistant.

cd /usr/src

goto lirc.org and copy the link to the latest stable download

wget http://superb-east.dl.sourceforge.net/sourceforge/lirc/lirc-0.8.2.tar.bz2
tar jxvf lirc-0.8.2.tar.bz2
cd lirc-0.8.2
./setup.sh
choose your model of ir receiver
save configuration and exit
nano configure.sh
add

--prefix=/usr \
so it looks something like this:

  1. /bin/sh

./configure \

--with-moduledir=/lib/modules/2.6.18-chw-13/misc \

--with-tty=/dev/ttyUSB0 \

--with-x \

--with-driver=usb_uirt_raw \

--with-major=61 \

--with-port=none \

--with-irq=none \

--prefix=/usr \
"$@"
save

sh configure.sh
make
make install

edit: R5F27 If sh configure gives a sanity check failure and you can't fix it...its probably easier to just download and use the kernel source instead

cd /usr/src wget ftp://knoppmyth.net/R5/linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
dpkg -i linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
rm -f linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb
tar xjvf linux-source-2.6.18-chw-13.tar.bz2
rm -f linux
ln -s linux-source-2.6.18-chw-13 linux
ln -s linux-source-2.6.18-chw-13 kernel-source-2.6.18-chw-13

then repeat the lirc configure and make steps above.

make sure these three files include working versions:
/etc/lirc/lircd.conf
/home/mythtv/.mythtv/lircrc
/etc/lirc/hardware.conf (should be setup during make install I think?)

To restore lirc files from a mythbackup:
tar pxvf /myth/backup/savedfiles.tar.gz ./etc/lirc/lircd.conf
tar pxvf /myth/backup/savedfiles.tar.gz ./home/mythtv/.mythtv/lircrc
tar pxvf /myth/backup/savedfiles.tar.gz ./etc/lirc/hardware.conf

I don't know why you would be recompiling lirc, but if for some reason you needed the latest version you may still like to to run the setup for the knoppmyth preconfigured remotes:

/usr/local/bin/lirc-reconfig.sh
and choose your remote.

Once the remote files are in place:
/etc/init.d/lirc restart
pkill xinit or ctrl-alt-backspace
to restart the frontend to test your setup.

If you are using a serial remote /dev/ttyS0
you may need to comment it out in the mouse device section of /etc/X11/xorg.conf

If you created a new lirc kernel module, you may need to do something else. please edit this.

EDIT (nbdwt73)
minor changes to these instructions for those using the black IR receiver plugged into Hauppauge cards (i2c).

originally posted at http://mysettopbox.tv/phpBB2/viewtopic.php?t=2298 by gr8nash

I did this so I could use a homebrew receiver I built using this schematic:

http://www.lirc.org/receivers.html

If you never built anything yourself, don't get scared. Just study it for a few minutes. It's only 4 parts and it works AWESOME... better then the store-bought Hauppauge IR (though that did fine as well).

An in depth look at the building of the lirc.org simple serial detector can be seen here:

http://www.linuxjournal.com/article/8811

EDIT (nbdwt73)
For R5A12 there are some minor changes. Make sure that you plug the IR receiver in before proceding...

EDIT for R5A16 (nbdwt73)
Finally got the serial IR to work with R5A16... Slightly different approach than prior versions.

EDIT for R5A22 (nbdwt73)
I had trouble getting both my serial ir and my silver Hauppauge (with the black dongle that comes with it) working with R5A22. I had to regenerate my lircd.conf file with irrecord under R5A22. The results are slightly different... example - for the "1" key under R5A16 the generated code is 0x0000000000001441. Under R5A22 it is 0x1441. Go to Compile LIRC (R5A22 kernel source is already untared). Make sure you apt-get remove lirc before proceding and that the ir receiver is attached.

Copy your lircd.conf and lircrc files - you will want them later.

Untar-ing the kernel sources (needed for a lot of stuff to compile)

su

(Enter your root password)

cd /usr/src

EDIT for R5A16 (nbdwt73)
FIRST, apt-get remove lirc

If you are using RSA16
tar xvjf kernel-source-2.6.11.9-chw-2.tar.bz2

if not just change the kernel-source version to what's in /usr/src

EDIT for R5E50 (cout)
It seems R5E50 doesn't come with kernel source, just the headers. You can build lircd with just the headers. Search the forum for instructions on how to get the full kernel source.

if you do not have a symbolic link 'linux' then ln -s kernel-source-X.X.X-chw linux

GO TO Compile lirc

EDIT (nbdwt73) for R5A12
bzcat kernel-source-2.6.9-chw.tar.bz2 | tar -xvf -
cd kernel-source-2.6.9-chw
make oldconfig dep
go to 'compile LIRC'
EDIT (lowman) I had trouble here on R5A12 when I skipped down to the 'compile LIRC' step. In order to get LIRC to compile I had to go back and run: ln -s kernel-source-2.6.9-chw linux

bzcat linux-2.4.25-chw.tar.bz2 | tar -xvf -
cp linux/.config linux-2.4.25-chw

(Answer Yes to overwrite)

rm linux

(Answer Yes again)

ln -s linux-2.4.25-chw linux
cd linux-2.4.25-chw
make oldconfig dep

Compile lirc:

EDIT for R5E50 (cout)
lirc-0.8.1 was the only version that would compile for me on this kernel, since devfs has been removed and previous versions of lirc seem to rely on devfs. Also, the parallel drivers seems to not be SMP-safe, so it fails to build. The easiest way around this is to run configure with --with-driver=all and then remove all references to lirc_parallel from drivers/Makefile.

EDIT for R5A30.2 (kmkittre)
lirc-0.7.2 worked for me with a homebrew serial port receiver, I didn't try any newer versions. lirc-0.7.0 did NOT work at all.

EDIT for R5A22 (nbdwt73)
either download lirc-0.7.2 or use the lirc source included in R5A22 (lirc-0.7.2pvr150). Then continue below with the appropriate changes in source name(s)

EDIT for R5A16 (nbdwt73)
download lirc-0.7.0 (NOT lirc-0.7.1 or lirc-0.7.2, they appear to not work correctly) from http://www.lirc.org/
(lirc-0.7.0 is not on the main page anymore, get it by going directly to http://prdownloads.sourceforge.net/lirc/lirc-0.7.0.tar.gz)
tar jxf lirc-0.7.0.tar.bz2
cd lirc-0.7.0
./setup.sh (follow scripts - make sure you run save and configure option)
make
make install

If you don't want to use setup.sh for some reason (custom configs and stuff) then use this configure line:

./configure --prefix=/usr --with-driver=any --with-x --sysconfdir=/etc/lirc

To use syslog as the logger and not let lircd use the log file of /var/log/lircd add (I believe this to be the Knoppmyth default): --with-syslog=LOG_USER

Add to the end of /etc/init.d/bootmisc.sh:

EDIT for R5A22 (nbdwt73) for serial port connected

setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/local/sbin/lircd

EDIT for R5E50 (derek1234)
replace /usr/local/sbin/lircd (above) with /etc/init.d/lirc start

(change the 0 above to your serial port value)

EDIT for R5A22 (nbdwt73) for Hauppauge pvrX50 dongle

modprobe lirc_i2c
/usr/local/sbin/lircd

Skip down to create the lircd.conf and lircrc or copy your old versions to the correct library

Then reboot...

Pre R5A15

Note: the newest lirc pre7 will not "make install", because it's looking for directories that don't exist. I'm guessing that cesman modified the pre4 version included in /usr/src because it works great

cd /usr/src

EDIT (nbdwt73) for R5A12
tar -xjf lirc-0.7.0.tar.bz2
cd lirc-0.7.0
setserial /dev/ttyS0 uart none
continue with the setup (./setup.sh)

tar -xjf lirc-0.7.0pre4.tar.bz2
cd lirc-0.7.0pre4/
setserial /dev/ttyS0 uart none

(change the 0 to your system's value)

./setup.sh
make
make install

Misc setup:

vi /etc/modutils/lirc

(change the lirc_i2c to your module's name, lirc_serial in my case)

EDIT (nbdwt73) for R5A12
edit /etc/modprobe.d/lirc
change lirc_i2c to lirc_serial on both lines

update-modules
vi /etc/init.d/bootmisc.sh

(add these lines to the END of the file)

setserial /dev/ttyS0 uart none
modprobe lirc_serial
/usr/local/sbin/lircd
/usr/local/sbin/lircmd

At this point restart (or run the commands you just put on the bootmisc.sh by hand)

Another option is to add:

pre-install lirc_serial setserial /dev/ttyS0 uart none

to /etc/modutils/lirc and utilise the /etc/init.d/lircd startup script for lircd.

Last thing... lirc uses two services, and two files to work. The services are lircd and lircmd. the files are /etc/lircd.conf and /home/mythtv/.mythtv/lircrc . You will need to setup both. lircd.conf is your Remote file. So far you have only told lirc what type of receiver you have; now you tell it what remote you are using. You can download this file already made from

http://www.lirc.org/remotes

or you can make your own by:

fuser /dev/lirc

(it will say something like "/dev/lirc 909")

kill 909

(change 909 to whatever the line above this says... this frees up /dev/lirc to be able to use other software. We will create the lircd.conf)

irrecord /mycustomeremote.conf

(follow all the instruction EXACTLY, and keep track of what buttons on your remote are recognized, and what you name them when it takes you through the naming procedure.)

When you're done you have a custom remote conf, with only the buttons you want on it. When you're confident it's done correctly, rename it to lircd.conf and copy it the the /etc/ directory. BACK UP YOUR OLD .conf FILE FIRST !

/home/mythtv/.mythtv/lircrc tells LIRC what button on your remote does what action. Take a look at it; it's self-explanatory. I'll just show you the part that confused me with this typical example...

begin

prog = mythtv
# (the CASE-sensitive name
# of the program you're controlling)
button = Menu
# (The NAME of the button you told irrecord
# when you created the conf file)
config = M
# (the key or action lirc takes
# when you press the above action)
end

You can always consult the /etc/lircd.conf file to see the exact names you gave your remote keys. After you've edited this file, one last restart of your computer and all should be working.

IRA-3 Universal Receiver HOWTO

I managed to get the IRA-3 Universal receiver up and running with a few steps in R5A22 and R5A26. It tooks quite a bit of research and toying around, so I figured I could write a quick summary of the final steps I used to get things working.

1. apt-get remove lirc

2. wget http://lirc.sourceforge.net/software/snapshots/libirman-0.4.3.tar.gz

3. wget http://lirc.sourceforge.net/software/snapshots/lirc-0.8.0pre1.tar.bz2

4. tar -xvzpf libirman-0.4.3.tar.gz

5. tar -xvjpf lirc-0.8.0pre1.tar.bz2

6. cd libirman-0.4.3

7. edit irman.h and change the IR_HANDSHAKE_GAP? from 500 to 2000

"#define IR_HANDSHAKE_GAP? (2000 USEC)"

8. ./configure && make && make install

9. cd ../lirc-0.8.0pre1

10. ./setup.sh

11. Driver Configuration -> Other Serial Port Drivers -> IRMan/UIR

12. Save configuration and run configure

13. rm /dev/lirc

14. make && make install

15. edit /etc/init.d/bootmisc.sh and comment out the line (near the bottom):

setserial /dev/ttyS0 uart none

16. edit /etc/mythtv/modules/ivtv (assuming a pvr card ) and comment out the line:

alias char-major-61lirc_i2c?

17. cd /etc/init.d

18. mv lirc lirc.default

19. update-rc.d lirc remove

20. cp reboot lirc

21. edit the new lirc startup script and change the line:

Rebooting... to Starting LIRC...

and the next line to:

/usr/local/sbin/lircd --device=/dev/ttyS0 --driver=irman

22. update-rc.d lirc defaults 20

23. I also changed some other things that shouldn't be nessesary, but just in case they are...

I added alias char-major-61-0 lirc_serial to /etc/modutils/lirc

I the following constants in /etc/lirc/hardware.conf:

DRIVER="irman"

DEVICE="/dev/lirc1"

MODULES="lirc_dev lirc_serial"

24. Reboot

25. To check your ir codes, go into libirman-0.4.3 and run:

./test_io /dev/ttyS0

you can write down these codes and create your /etc/lirc/lircd.conf file

26. Set up your mythtv lirc commands by editing /home/mythtv/.mythtv/lircrc

27. Reboot one more time and use your remote :)

One quick note about pinout that's not mentioned on the website in case anyone else makes their own RJ-45 to DB9 connector. The pinout is a straight through connection from pin 2 of the RJ-45 to pin 2 of the DB9, 3 to 3, 4 to 4, and 5 to 5. The other pins are unused.


discussion of wiki article... this worked or didn't work for me... should be in a forum post linked from the bottom of each article (thanks for the help... these directions didn't work for me for R5A30.2 with packard bell remote a nice cheap remote that isn't included in the default setup for some reason)... I think I failed because i wasn't sure which steps to follow and which to skip based on all the edits. I usually upgrade to the latest version if there is a new feature I want or a tweak that i want to try but end up breaking something that I had tweaked earlier like the packard bell remote... kinda sucks:(

No recompile for R5C7 with serial Home-brew IR receiver

I didn't have to recompile lirc; the built-in lirc_serial module works fine for home-brew receiver I bought off ebay (search for Mythtv LIRC). The only steps I had to do:

1. in /etc/init.d/bootmisc.sh, add the line (for first serial port):

setserial /dev/ttyS0 uart none

2. in /etc/lirc/hardware.conf set the environment variable MODULES:

MODULES="lirc_serial lirc_dev lirc_i2c"

i.e., add lirc_serial to the MODULES variable string. The environment variables in this file are used by /etc/init.d/lirc to load the appropriate module and start lircd.

3. replace /etc/lircd.conf with the appropriate file for your remote. If there is none for your remote then you can use the interactive program irrecord to create the conf file:
irrecord remote.conf

cp /etc/lircd.conf /etc/lirc.conf.backup

cp remote.conf /etc/lircd.conf

4. reboot


NOTE : In order to use irrecord, you must first kill the currently running lircd deamon and load the lirc_serial driver. Do the following:

killall lircd

setserial /dev/ttyS0 uart none

modprobe lirc_serial

enjoy- deepak


Additional note on how to get Homebrew IR Receiver working

See: http://mysettopbox.tv/phpBB2/viewtopic.php?t=15114

When loading the lirc_serial driver with modprobe, sometimes it helps to add the type option:
modprobe lirc_serial type=4

(Be sure to add this to your /etc/init.d/bootmisc.sh script)

--Antebios


I just wanted to post a big hint for anyone switching from a pvr IR setup. You need to follow this step from above:

16. edit /etc/mythtv/modules/ivtv (assuming a pvr card ) and comment out the line:

alias char-major-61lirc_i2c?

and then reboot.

If you don't then it will always try to use the receiver for the pvr card rather than a serial receiver. At least, that's what it did for me.

--nullsmack



UpdatedPages

· MythwebFlash last changed on Tue Sep 7 08:01:14 2010
· HauppaugeThreeFiftyInstallation last changed on Tue Sep 7 07:59:50 2010
· MythStreamTV last changed on Tue Sep 7 07:58:13 2010
· UsingSambaHowto last changed on Tue Sep 7 07:57:01 2010
· TVOverScanHowto last changed on Tue Sep 7 07:53:19 2010
· TroubleShooting last changed on Mon Sep 6 15:33:02 2010
· Links last changed on Mon Sep 6 15:31:25 2010
· KnoppMythInstall last changed on Mon Sep 6 15:29:41 2010
· HowTo last changed on Mon Sep 6 15:26:44 2010
· TinnyAudioPVR150 last changed on Mon Sep 6 14:42:38 2010
· KnoppmythDownloads last changed on Sun Sep 5 22:27:51 2010
· LinuxTips last changed on Fri Sep 3 12:44:17 2010
· RepairingMythConvergDB last changed on Wed Sep 1 01:56:32 2010
· KnoppMythWiki last changed on Sun Aug 29 14:22:57 2010
· R5A12DvdRipping last changed on Fri Aug 27 22:24:09 2010
· HVR950HowTo last changed on Mon Aug 23 11:00:20 2010
· MythVodkaHowTo last changed on Mon Aug 23 00:48:53 2010
· x11vncHowTo last changed on Tue Aug 17 08:20:17 2010
· PickingComponents last changed on Tue Aug 17 08:19:41 2010
· MediaMVP_LinuxHOWTO last changed on Tue Aug 17 08:17:10 2010
· webminhowto last changed on Tue Aug 17 08:11:10 2010
· MythTVBurn_Scripts_HowTo last changed on Mon Aug 16 15:44:19 2010
· EditThisPage last changed on Wed Aug 4 04:10:39 2010
· R5.5/R6.x Differences Table and Equivalent Commands last changed on Wed Aug 4 00:27:20 2010
· Media_Center_Edition_Remote_Control last changed on Tue Aug 3 08:19:13 2010
· kworld115HowTo last changed on Tue Aug 3 08:12:26 2010
sitemap |