View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Recompile LIRC HOWTO:
PostPosted: Tue Aug 31, 2004 8:07 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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.


Last edited by gr8nash on Wed Sep 01, 2004 10:09 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 9:02 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 10:10 am 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
Yeah that was a typo.. thanks :) i went back and changed it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 1:38 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 02, 2004 1:53 pm 
Offline
Joined: Thu Feb 19, 2004 6:52 pm
Posts: 117
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 02, 2004 2:45 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
yeah i TOTALY plan on using your howto some point in the near future!! very cool wrooster! :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 02, 2004 3:04 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 02, 2004 3:13 pm 
Offline
Joined: Thu Feb 19, 2004 6:52 pm
Posts: 117
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 15, 2004 8:37 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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!

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 16, 2004 8:46 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
did you use lirc-0.7.0pre4 or a newer one like pre7. pre4 is the only one that compiles without a hitch TIKO.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 17, 2004 7:16 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
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?

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 17, 2004 10:28 am 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 19, 2004 8:30 pm 
Offline
Joined: Fri Nov 12, 2004 3:00 pm
Posts: 5
Location: WA USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 21, 2004 5:18 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 02, 2004 11:06 pm 
Offline
Joined: Fri Nov 12, 2004 3:00 pm
Posts: 5
Location: WA USA
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu