LinHES Forums
http://forum.linhes.org/

Recompile LIRC HOWTO:
http://forum.linhes.org/viewtopic.php?f=11&t=2298
Page 1 of 2

Author:  gr8nash [ Tue Aug 31, 2004 8:07 pm ]
Post subject:  Recompile LIRC HOWTO:

i did this so i could use a homebrew reciever i buildt using this schematic.
http://www.lirc.org/receivers.html
if you never buildt anything yourself, dont get scared just study it for a few minutes.. its only 4 parts.. and it works AWSOME..better then the store bought haupauge ir (though that did fine as well)

Untaring the kernel sources (needed for alot of stuff to compile)
Code:
cd /usr/src

Code:
bzcat linux-2.4.25-chw.tar.bz2 | tar -xvf -

Code:
cp linux/.config linux-2.4.25-chw
(Answer Yes to overwrite)
Code:
rm linux
(Answer Yes again)
Code:
ln -s linux-2.4.25-chw linux

Code:
cd linux-2.4.25-chw

Code:
make oldconfig dep


Compile lirc:
Note: the newest lirc pre7 will not "make install", because its looking for directories that dont exist, im guessing that cesman modified the pre4 version included in /usr/src because it works great

Code:
cd /usr/src

Code:
tar -xjf lirc-0.7.0pre4.tar.bz2

Code:
cd lirc-0.7.0pre4/

Code:
setserial /dev/ttyS0 uart none
(change the 0 to your systems value)
Code:
./setup.sh

Code:
make

Code:
make install


Misc setup:
Code:
vi /etc/modutils/lirc

(change the lirc_i2c to your modules name,lirc_serial in my case)
Code:
update-modules


Code:
vi /etc/init.d/bootmisc.sh


(add these lines to the END)
Quote:
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)

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/lirc 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. this file you can download already made from http://www.lirc.org/remotes. or

you can make your own by:

Code:
fuser /dev/lirc
(it will say something like "/dev/lirc 909")
Code:
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)
Code:
irrecord /mycustomeremote.conf

(follow all the instruction EXACTLY)
when your done you have a custome remote conf, with only the buttons you want on it. when your confident its done correctly rename it to lircd.conf and copy it the the /etc/ directy.. BACK UP YOUR OLD .conf FILE
FIRST

/home/mythtv/.mythtv/lirc tells LIRC what botton on your remote does WHAT ACTION. take a look at it, its self explanitory. ill just show you the part that confused me.
typical example

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

so thats it, i dont think i forgot anything. let me know if i need to change anything.

Author:  ceenvee703 [ Wed Sep 01, 2004 9:02 am ]
Post subject: 

gr8nash: I reformatted your howto and put it up on the wiki:

http://knoppmythwiki.homelinux.org/inde ... =LIRCHowTo

One thing: is there a typo toward the end where you say "rename it to lird.conf"... that should be "lircd.conf", right? Beyond that it looks really good and I hope to give it a shot sometime.

Author:  gr8nash [ Wed Sep 01, 2004 10:10 am ]
Post subject: 

Yeah that was a typo.. thanks :) i went back and changed it.

Author:  gr8nash [ Wed Sep 01, 2004 1:38 pm ]
Post subject: 

oh forgot to say thankyou for posting it on xsecrets wiki!! thanks a bunch.. Also thanks to xsecrets, that site has helped me alot :D

Author:  wrooster [ Thu Sep 02, 2004 1:53 pm ]
Post subject: 

ceenvee703 wrote:
gr8nash: I reformatted your howto and put it up on the wiki:

http://knoppmythwiki.homelinux.org/inde ... =LIRCHowTo

One thing: is there a typo toward the end where you say "rename it to lird.conf"... that should be "lircd.conf", right? Beyond that it looks really good and I hope to give it a shot sometime.


on a similar topic, you may want to add my IR blaster HOWTO as well:
http://losdos.dyndns.org:8080/public/my ... _LIRC.html

thanks
jim

Author:  gr8nash [ Thu Sep 02, 2004 2:45 pm ]
Post subject: 

yeah i TOTALY plan on using your howto some point in the near future!! very cool wrooster! :D

Author:  ceenvee703 [ Thu Sep 02, 2004 3:04 pm ]
Post subject: 

wrooster: wooo, doggies, that's long! I'll at least put a link in for it on the LIRC howto, and work on moving it over there at some point.

Author:  wrooster [ Thu Sep 02, 2004 3:13 pm ]
Post subject: 

ceenvee703 wrote:
wrooster: wooo, doggies, that's long!


thanks for the compliment but i'm already happily married. LoL.

ceenvee703 wrote:
I'll at least put a link in for it on the LIRC howto, and work on moving it over there at some point.


no problem, glad to contribute back. i keep adding bits and pieces as folks email me with questions or comments, so for now a link to my page is just fine.

regards,
jim

Author:  khrusher [ Mon Nov 15, 2004 8:37 am ]
Post subject: 

gr8nash, Thanx for the HowTo, work great....except for one snag.

When I compiled lirc, I was getting errors that the following included was missing:

Code:
/usr/src/linux/include/linux/modversions.h


I found the file in /usr/src/linux/include/config. A quick symlink and I was on my way.

I now have lirc working via a home made receiver and an RCA univeral remote. Took some time and planning to get the keys mapped, but I'm happier then I was w/ the 250's grey remote.

Is this a symptom of something that I did wrong somewhere?

Thanx again!

Author:  gr8nash [ Tue Nov 16, 2004 8:46 pm ]
Post subject: 

did you use lirc-0.7.0pre4 or a newer one like pre7. pre4 is the only one that compiles without a hitch TIKO.

Author:  khrusher [ Wed Nov 17, 2004 7:16 am ]
Post subject: 

I used lirc-0.7.0pre4. All is working, I wonder if I did something wrong when I setup my kernal source. I guess the question is....sould I have a
Code:
/usr/src/linux/include/linux/modversions.h

if so, where would if have come from?

Author:  gr8nash [ Wed Nov 17, 2004 10:28 am ]
Post subject: 

Im not sure exactly.. i do know that i have done that walkthrough on 3 systems now without any symbolic links besides what i wrote up there. But all that doesnt matter because its working! and thats the point :D

Author:  slick [ Fri Nov 19, 2004 8:30 pm ]
Post subject: 

I went through the procedure and still nothing, does anyone know if AverMedia TV Studio IR reciver works? The one that hooks up with s-video cable or do I have to get a serial IR reciver. Another question (newbe) how do I find the ttyS0 value for my system? Any help - thanks.

Author:  gr8nash [ Sun Nov 21, 2004 5:18 pm ]
Post subject: 

i have never had a AverMedia TV, the only part you would change is during the ./configure part of LIRC you would use AverMedia TV setting (asuming there is one.. never looked). also when you go back compile it again be sure to be alittle more specific then "it doesnt work" because i dont know if Mode2 shows nothing.. or myth isnt responding to lirc.. :) so goback and configure LIRC for your card and let use know if Mode2 shows any input.

Author:  slick [ Thu Dec 02, 2004 11:06 pm ]
Post subject: 

Ok so I built a homebrew reciver, tested it - seems to be working it responds to the remote, but when I try running irw nothing happens tried all possible configurations when recompiling. Anybody know what in ./setup.sh when I set my configuration in "driver specific options" there is "Igor Cesko's variation" - what is it for couldn't find much info on it. Anybody know what this option does is it USB or any info wold be appriciated - Thanks

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/