![]() |
downloads | documentation | HowTo | reporting bugs | links | Recent Changes |
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 LinksRelated sitesContactPlease submit website bugs in the BugReports Contribute!Please file any wishes on UserSuggestions. Hosted By |
Recompiling LIRCEDIT (randomhtpcguy) R5F1 Instructions (kernel-headers are working to compile lirc now, kernel-source not required). verify sources point to stable 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 --prefix=/usr \
./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 \ sh configure.sh 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 then repeat the lirc configure and make steps above. make sure these three files include working versions: To restore lirc files from a mythbackup: 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 Once the remote files are in place: If you are using a serial remote /dev/ttyS0 If you created a new lirc kernel module, you may need to do something else. please edit this. EDIT (nbdwt73) 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) EDIT for R5A16 (nbdwt73) EDIT for R5A22 (nbdwt73) 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) If you are using RSA16 if not just change the kernel-source version to what's in /usr/src EDIT for R5E50 (cout) 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 linux-2.4.25-chw.tar.bz2 | tar -xvf - (Answer Yes to overwrite) rm linux (Answer Yes again) ln -s linux-2.4.25-chw linux Compile lirc:EDIT for R5E50 (cout) EDIT for R5A30.2 (kmkittre) EDIT for R5A22 (nbdwt73) EDIT for R5A16 (nbdwt73) 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 EDIT for R5E50 (derek1234) (change the 0 above to your serial port value) EDIT for R5A22 (nbdwt73) for Hauppauge pvrX50 dongle modprobe lirc_i2c Skip down to create the lircd.conf and lircrc or copy your old versions to the correct library Then reboot... Pre R5A15Note: 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.0pre4.tar.bz2 (change the 0 to your system's value) ./setup.sh Misc setup:vi /etc/modutils/lirc (change the lirc_i2c to your module's name, lirc_serial in my case) EDIT (nbdwt73) for R5A12 update-modules (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 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
end
# (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) 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 HOWTOI 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 receiverI 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:
4. reboot
killall lircd setserial /dev/ttyS0 uart none modprobe lirc_serial enjoy- deepak Additional note on how to get Homebrew IR Receiver workingSee: http://mysettopbox.tv/phpBB2/viewtopic.php?t=15114 When loading the lirc_serial driver with modprobe, sometimes it helps to add the type option:
(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 EditThisPage BackLinks PageInfo Pages like this Attachments RSS/Atom last changed on Sat May 24 09:24:48 2008 |
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 | | |