LIRC: installation guide for kernel 2.6.14
OK, after the nightmare of lirc installation last week I decided to write a guide, here it is, if you have any questions, ask me!!
First, download your kernel's source, if your using the plain vanilla kernel from debian's repository:
#apt-get install linux-image-2.6.14-1-k7 linux-headers-2.6.14-1-k7 linux-source-2.6.14
Now go to /usr/src/ and create a symlink (if there's an old one rm it!):
#ln -s /usr/src/linux-headers-2.6.14-1-k7 linux
Download the latest LIRC version (DON'T, I REPEAT, DON'T apt-get lirc, the package is old and doesn't work with newer kernels)
get it here: http://lirc.sourceforge.net/software/snapshots/lirc-0.7.3pre1.tar.bz2
bunzip and untar it, and execute the setup.sh
setup your device (here I use driver:serial io:0x3f8 irq:4)
Now go to "Save configuration & run configure" It must prepare the compilation (if any errors appear, you may have a unconfigured gcc or missing library)
#make
#make install
Perfect.
In order to test the setup, you may have to free the serial port:
#setserial /dev/ttyS0 uart none
Then you have to load the kernel module:
#modprobe lirc_serial
After that, load the deamon:
#lircd
And test the reception of commands:
#irw
Press some buttons on your remote, it must appear on the screen.
If it's ok, you must setup the definitive configuration. There's tons of config files that must be arranged in order to make lirc work in userspace, as well as deamon.
I don't remember which of the following files I edited by hand and which worked right out of the box when I run lirc's setup.
I advise to check them all.
First, there's a file called /etc/lircd.conf which contains all remote control codes for your remote. (mine is a JVC-RM-SED3SU)
Then there's /etc/lirc/hardware.conf:
--------------------------------
#Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc"
MODULES="lirc_dev lirc_serial"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
--------------------------------
/etc/lirc/lirc-modules-source.conf
# lirc-modules-source config file used by Debian GNU/Linux
# Space separated list of lirc kernel drivers to build
LIRC_MODULES="serial"
# Serial module configuration
LIRC_SERIAL_PORT="0x3f8"
LIRC_SERIAL_IRQ="4"
LIRC_SERIAL_CFLAGS=" -DLIRC_SERIAL_SOFTCARRIER"
# Sir module configuration
LIRC_SIR_PORT="UNCONFIGURED"
LIRC_SIR_IRQ="UNCONFIGURED"
LIRC_SIR_CFLAGS="UNCONFIGURED"
# Parallel module configuration
LIRC_PARALLEL_PORT="UNCONFIGURED"
LIRC_PARALLEL_IRQ="UNCONFIGURED"
LIRC_PARALLEL_TIMER="UNCONFIGURED"
--------------------------------
In /etc/modules I added:
lirc_serial
--------------------------------
In /etc/modules.conf:
### update-modules: start processing /etc/modutils/lirc
#This file is modified by lirc's maintainer scripts.
#Any 'options' line asociated with the selected hardware will be replaced.
#However 'add options' lines will be left alone, so you can use that for
#additional module parameters.
# ej:
# add options lirc_serial sense=0
options lirc_serial io=0x3f8 irq=4
### update-modules: start processing /etc/modutils/lirc_serial
alias char-major-61 lirc_serial
--------------------------------
the following is a dirty trick, most people say that this is a nasty practice, but I added to /etc/init.d/bootmisc.sh
setserial /dev/ttyS0 uart none
modprobe lirc_serial
lircd -n &
# the last line is set to "no deamon mode" because in my
# box lirc is not deamonizing well, but it is ok to start
# it in interactive mode
--------------------------------
Now, after all this mess, reboot your computer, go to a terminal:
and run "irw"
if lirc is working, when you press a key in your remote, it must show the remote's code on screen.
Then you're home free, the rest is just a matter of app configuration (mplayer, amarok, xmms, xine, whatever you like)
BUT, it is not working, well, try the following:
1) #cat /dev/lirc
if it shows a blank screen and when you press a button in your remote it dumps garbage on your terminal, well, the module is loaded properly and the problem seems to be the deamon.
2) If #cat /dev/lirc gets you a "cat: /dev/usb/lirc: No such device"
Then the module didn't load, try a #modprobe lirc_serial, and check the error, it may be the serial port busy (hence the setserial line in bootmisc.sh, try re-executing it)
When modprobing the module, you may get a error message indicating that the module is not compatible with your kernel, that's what happened with me, I was using a older version of lirc, and it wouldn't work (then I read this[1] and realized I needed to download the latest version of lirc to work with 2.6.14)
3) If cat /dev/lirc goes well:
then "modprobe lirc_serial", and if it goes well, then execute "lircd -n". Now try "irw" and press a button on your remote, it should dump information on your terminal.
[1] - Thank you Gavin!!!
From: Gavin Hamill
Subject: LIRC with 2.6.14 - 'Unknown symbol verify_area' in lirc_serial
Newsgroups: gmane.comp.hardware.lirc
Date: 2005-11-03 20:47:19 GMT
Hi :) Just installed 2.6.14 which has solved a problem I was having, but
needed to grab the lirc_serial.c from CVS to deal with the verify_area
issue.
May I suggest that a 0.7.2.1 release be made to avoid lots of 'I can't
get lirc working!!' messages in the near future? :)
Cheers,
Gavin.
First, download your kernel's source, if your using the plain vanilla kernel from debian's repository:
#apt-get install linux-image-2.6.14-1-k7 linux-headers-2.6.14-1-k7 linux-source-2.6.14
Now go to /usr/src/ and create a symlink (if there's an old one rm it!):
#ln -s /usr/src/linux-headers-2.6.14-1-k7 linux
Download the latest LIRC version (DON'T, I REPEAT, DON'T apt-get lirc, the package is old and doesn't work with newer kernels)
get it here: http://lirc.sourceforge.net/software/snapshots/lirc-0.7.3pre1.tar.bz2
bunzip and untar it, and execute the setup.sh
setup your device (here I use driver:serial io:0x3f8 irq:4)
Now go to "Save configuration & run configure" It must prepare the compilation (if any errors appear, you may have a unconfigured gcc or missing library)
#make
#make install
Perfect.
In order to test the setup, you may have to free the serial port:
#setserial /dev/ttyS0 uart none
Then you have to load the kernel module:
#modprobe lirc_serial
After that, load the deamon:
#lircd
And test the reception of commands:
#irw
Press some buttons on your remote, it must appear on the screen.
If it's ok, you must setup the definitive configuration. There's tons of config files that must be arranged in order to make lirc work in userspace, as well as deamon.
I don't remember which of the following files I edited by hand and which worked right out of the box when I run lirc's setup.
I advise to check them all.
First, there's a file called /etc/lircd.conf which contains all remote control codes for your remote. (mine is a JVC-RM-SED3SU)
Then there's /etc/lirc/hardware.conf:
--------------------------------
#Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc"
MODULES="lirc_dev lirc_serial"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
--------------------------------
/etc/lirc/lirc-modules-source.conf
# lirc-modules-source config file used by Debian GNU/Linux
# Space separated list of lirc kernel drivers to build
LIRC_MODULES="serial"
# Serial module configuration
LIRC_SERIAL_PORT="0x3f8"
LIRC_SERIAL_IRQ="4"
LIRC_SERIAL_CFLAGS=" -DLIRC_SERIAL_SOFTCARRIER"
# Sir module configuration
LIRC_SIR_PORT="UNCONFIGURED"
LIRC_SIR_IRQ="UNCONFIGURED"
LIRC_SIR_CFLAGS="UNCONFIGURED"
# Parallel module configuration
LIRC_PARALLEL_PORT="UNCONFIGURED"
LIRC_PARALLEL_IRQ="UNCONFIGURED"
LIRC_PARALLEL_TIMER="UNCONFIGURED"
--------------------------------
In /etc/modules I added:
lirc_serial
--------------------------------
In /etc/modules.conf:
### update-modules: start processing /etc/modutils/lirc
#This file is modified by lirc's maintainer scripts.
#Any 'options' line asociated with the selected hardware will be replaced.
#However 'add options' lines will be left alone, so you can use that for
#additional module parameters.
# ej:
# add options lirc_serial sense=0
options lirc_serial io=0x3f8 irq=4
### update-modules: start processing /etc/modutils/lirc_serial
alias char-major-61 lirc_serial
--------------------------------
the following is a dirty trick, most people say that this is a nasty practice, but I added to /etc/init.d/bootmisc.sh
setserial /dev/ttyS0 uart none
modprobe lirc_serial
lircd -n &
# the last line is set to "no deamon mode" because in my
# box lirc is not deamonizing well, but it is ok to start
# it in interactive mode
--------------------------------
Now, after all this mess, reboot your computer, go to a terminal:
and run "irw"
if lirc is working, when you press a key in your remote, it must show the remote's code on screen.
Then you're home free, the rest is just a matter of app configuration (mplayer, amarok, xmms, xine, whatever you like)
BUT, it is not working, well, try the following:
1) #cat /dev/lirc
if it shows a blank screen and when you press a button in your remote it dumps garbage on your terminal, well, the module is loaded properly and the problem seems to be the deamon.
2) If #cat /dev/lirc gets you a "cat: /dev/usb/lirc: No such device"
Then the module didn't load, try a #modprobe lirc_serial, and check the error, it may be the serial port busy (hence the setserial line in bootmisc.sh, try re-executing it)
When modprobing the module, you may get a error message indicating that the module is not compatible with your kernel, that's what happened with me, I was using a older version of lirc, and it wouldn't work (then I read this[1] and realized I needed to download the latest version of lirc to work with 2.6.14)
3) If cat /dev/lirc goes well:
then "modprobe lirc_serial", and if it goes well, then execute "lircd -n". Now try "irw" and press a button on your remote, it should dump information on your terminal.
[1] - Thank you Gavin!!!
From: Gavin Hamill
Subject: LIRC with 2.6.14 - 'Unknown symbol verify_area' in lirc_serial
Newsgroups: gmane.comp.hardware.lirc
Date: 2005-11-03 20:47:19 GMT
Hi :) Just installed 2.6.14 which has solved a problem I was having, but
needed to grab the lirc_serial.c from CVS to deal with the verify_area
issue.
May I suggest that a 0.7.2.1 release be made to avoid lots of 'I can't
get lirc working!!' messages in the near future? :)
Cheers,
Gavin.
10 Comments:
Let me be the first guy:
'I can't get lirc working!!'
trying now the suggested 0.7.3pre1
Brilliant! Got my SMK Manufacturing remote working great.
Thanks for the guide dude.
To avoid the bootmisc hack:
$ cat /etc/modprobe.d/lirc
# options lirc_serial type=1 # as appropriate for your hardware
install lirc_serial /bin/setserial /dev/ttyS1 uart none; /sbin/modprobe --ignore-install lirc_serial
$ # or as appropriate
$ cat /etc/modutils/lirc
#This file is modified by lirc's maintainer scripts.
#Any 'options' line asociated with the selected hardware will be replaced.
#However 'add options' lines will be left alone, so you can use that for
#additional module parameters.
# ej:
# add options lirc_serial sense=0
#add options lirc_serial type=1
pre-install lirc_serial /bin/setserial /dev/ttyS1 uart none
Also worth a try:
# module-assistant auto-install lirc
the best airline credit cards
chubbyland.com
mikesapartment.com
wetplace.com
hornyduck.com
famouspornstars.com
xxxpornstarclassics.com
screwedupmovies.com
xmoma.com
innocentdream.com
alexmovies.com
[url=http://hi-free-girl-on-girl-video-download.blogspot.com/]Hot Mature Babe Sucks And Fuck Action And Gets Cum[/url]
[url=http://bi-xxx-video-download.blogspot.com/]Adorable Shemale Spoils Family Man[/url]
[url=http://fresh-porn.futureblog.org/]This Amateur Hottie Is Really Amazing[/url]
[url=http://li-adult-video-download.blogspot.com/]Busty Amateur Blonde Teasing With Her Big Natural Tits Outdoors[/url]
[url=http://young-sex.futureblog.org/]Adorable Anime Sweeties Having Their Pussys Pumped[/url]
[url=http://we-lesbian-video-download.blogspot.com/]Amateur Toying Her Ass Hard[/url]
[url=http://innocent-sex.futureblog.org/]Sexy Teen Girl With Nice Angel Face And Dirty Things Stripping[/url]
[url=http://do-hot-video-download.blogspot.com/2007/03/red-hot-chili-pepper-video.html]red hot chili pepper video[/url]
[url=http://we-lesbian-video-download.blogspot.com/2007/03/free-lesbian-video.html]free lesbian video[/url]
[url=http://do-hot-video-download.blogspot.com/2007/03/free-hot-web-cam-video.html]free hot web cam video[/url]
[url=http://we-lesbian-video-download.blogspot.com/2007/03/lesbian-home-video.html]lesbian home video[/url]
[url=http://do-hot-video-download.blogspot.com/2007/03/free-hot-porn-video.html]free hot porn video[/url]
[url=http://hi-free-girl-on-girl-video-download.blogspot.com/2007/03/girl-on-video-cam-live-and-free.html]girl on video cam live and free[/url]
[url=http://lu-porn-video-download.blogspot.com/2007/03/hardcore-porn-video.html]hardcore porn video[/url]
[url=http://goatlist-com-xeqob.blogspot.com/]Busty Brunette Pornstar Cutie Plays Eve Angel In Pink Stockings[/url]
[url=http://captainstabbin-com-devek.blogspot.com/]Bisexual Guys And A Chick In Passionate Threesome Action[/url]
[url=http://teenel-com-ninir.blogspot.com/]Angelica In Nude Hose[/url]
[url=http://wetplace-com-vejig.blogspot.com/]Two Adorable Petite Asian Girl Getting Fucked In A Threesome[/url]
[url=http://jrmovies-com-cowob.blogspot.com/]Amateur Amber Is Horny[/url]
[url=http://milkmanbook-com-jubih.blogspot.com/]Natural Busty American Girl Posing On Her Couch[/url]
[url=http://busstopwhores-com-vuned.blogspot.com/]Akane Soma Pretty Bikini Angel[/url]
[url=http://defacialize-com-vigub.blogspot.com/]defacialize[/url]
[url=http://sohardcore-com-qojot.blogspot.com/]sohardcore[/url]
[url=http://slutsvideos-com-zetel.blogspot.com/]slutsvideos[/url]
[url=http://nobullhardcore-com-rehos.blogspot.com/]nobullhardcore[/url]
[url=http://greentits-com-ciqov.blogspot.com/]greentits.com[/url]
[url=http://eurosexparties-com-jezun.blogspot.com/]eurosexparties[/url]
[url=http://gorillalinks-com-webuq.blogspot.com/]gorillalinks[/url]
[url=http://mature-secret-com-kebew.blogspot.com/]mature-secret.com[/url]
[url=http://ideal-teens-com-jusot.blogspot.com/]ideal-teens.com[/url]
[url=http://pinkpornstars-com-sukor.blogspot.com/]pinkpornstars.com[/url]
[url=http://pussy-org-lonuc.blogspot.com/]pussy.org[/url]
[url=http://hardbabes-com-ceqih.blogspot.com/]hardbabes.com[/url]
[url=http://gigagalleries-com-qunoj.blogspot.com/]gigagalleries.com[/url]
[url=http://milf.blotrer.com]milf[/url]
[url=http://mysecretmovies-com-joruj.blogspot.com/]mysecretmovies.com[/url]
[url=http://bigassadventure-com-rehij.blogspot.com/]bigassadventure.com[/url]
[url=http://moviegalleries-com-viwin.blogspot.com/]moviegalleries.com[/url]
[url=http://hometwat-com-diqef.blogspot.com/]hometwat[/url]
[url=http://gigagalleries-com-qunoj.blogspot.com/]gigagalleries[/url]
[url=http://3pic-com-kedet.blogspot.com/]3pic.com[/url]
[url=http://fib-castingcouchteens-com.blogspot.com/]Sexy teen shows her hot ass[/url]
[url=http://new-chicascoyote-com.blogspot.com/]Kinky Asian Babe Loni Sucking Pornstar Balls And Cock[/url]
[url=http://peh-adultbuffet-com.blogspot.com/]Blonde teen shows her ass[/url]
[url=http://foc-fuckk-com.blogspot.com/]Must Be One Hot Ass Angel Pussy Like That[/url]
[url=http://tuv-freehugemovies-com.blogspot.com/]Gorgeous Blonde Model In Hot Watersports Action[/url]
[url=http://tub-ethnicpassion-com.blogspot.com/]Adorable Shemale Getting Wild In Threesome Action[/url]
[url=http://pug-bigfreesex-com.blogspot.com/]Ball And Ass Licking Adorable Teen Gets Nailed Anally[/url]
[url=http://cew-babesglamour-com.blogspot.com/]Eve Angel Birthday Sweetheart Plays With Balloons[/url]
[url=http://wiv-clubseventeen-com.blogspot.com/]Adorable Busty Brunette Chick[/url]
[url=http://fic-allsitesaccess-com.blogspot.com/]American Fucks Latina[/url]
[url=http://bot-chubbyland-com.blogspot.com/]chubbyland[/url] [url=http://rez-boneme-com.blogspot.com/]boneme[/url] [url=http://fog-black-booty-movies-com.blogspot.com/]black-booty
-movies[/url] [url=http://wuq-celebrityscandal-com.blogspot.com/]celebrityscandal[/url] [url=http://lil-dailybasis-com.blogspot.com/]dailybasis.com[/url] [url=http://rez-boneme-com.blogspot.com/]boneme[/url] [url=http://pec-busstopwhores-com.blogspot.com/]busstopwhores[/url] [url=http://peh-freakthumbs-com.blogspot.com/]freakthumbs.com[/url] [url=http://ful-eliteclips-com.blogspot.com/]eliteclips[/url] [url=http://qun-dirtydaughter-com.blogspot.com/]dirtydaughter.com[/url] [url=http://tub-ethnicpassion-com.blogspot.com/]ethnicpassion[/url] [url=http://big-8teenfiles-com.blogspot.com/]8teenfiles.com[/url] [url=http://sub-fantasticnudes-com.blogspot.com/]fantasticnudes[/url] [url=http://wuz-181st-net.blogspot.com/]181st.net[/url] [url=http://joj-bigtitspalace-com.blogspot.com/]bigtitspalace.com[/url] [url=http://zuj-atkmodels-com.blogspot.com/]atkmodels[/url] [url=http://hel-cumfiesta-com.blogspot.com/]cumfiesta.com[/url] [url=http://fij-bigbreastlovers-com.blogspot.com/]bigbreastlovers.com[/url] [url=http://xe
q-easypic-com.blogspot.com/]easypic.com[/url] [url=http://kik-booble-com.blogspot.com/]booble.com[/url]
[url=http://allebonygals-com-fr33site.blogspot.com/]Horny Amateur Sluts Alexis And Kate Get Fucked Hard Doggy Style[/url]
[url=http://firsttimeauditions-com-fr33site.blogspot.com/]Tasty Brunette Babe Anal Fucked Hard[/url]
[url=http://young-porn-net-fr33site.blogspot.com/]Petite Black Babe With A Big Ass In Hardcore Action[/url]
[url=http://pictures-free-org-fr33site.blogspot.com/]Bikini Babe Action[/url]
[url=http://moviepost-com-fr33site.blogspot.com/]Euro Babe Riding American Cock[/url]
[url=http://hornytiger-com-fr33site.blogspot.com/]Mature Asian Black Lingerie[/url]
[url=http://chubbyland-com-fr33site.blogspot.com/]Busty Eve Angel Gets A Dildo In Her Wet Pussy[/url]
[url=http://pornstarbook-com-fr33site.blogspot.com/]pornstarbook[/url] [url=http://dreamqueens-com-fr33site.blogspot.com/]dreamqueens.com[/url] [url=http://sexy-models-net-fr33site.blogspot.com/]sexy-models[/url] [url=http://castingcouchteens-com-fr33site.blogspot.com/]castingcouchteens[/url] [url=http://searchvids-com-fr33site.blogspot.com/]searchvids.com[/url] [url=http://vipcrew-com-fr33site.blogsp
ot.com/]vipcrew.com[/url] [url=http://toons-fuck-com-fr33site.blogspot.com/]toons-fuck[/url] [url=http://teeniemovies-com-fr33site.blogspot.com/]teeniemovies[/url] [url=http://jonsmovies-com-fr33site.blogspot.com/]jonsmovies[/url] [url=http://mature-post-com-fr33site.blogspot.com/]mature-post.com[/url] [url=http://stocking-tease-com-fr33site.blogspot.com/]stocking-tease.com[/url] [url=http://sexmaxx-com-fr33site.blogspot.com/]sexmaxx.com[/url] [url=http://nexxx-com-fr33site.blogspot.com/]nexxx[/url] [url=http://lodita-com-fr33site.blogspot.com/]lodita[/url] [url=http://sexmaxx-com-fr33site.blogspot.com/]sexmaxx[/url] [url=http://catlist-com-fr33site.blogspot.com/]catlist.com[/url] [url=http://bodsforthemods-com-fr33site.blogspot.com/]bodsforthemods[/url] [url=http://richards-realm-com-fr33site.blogspot.com/]richards-realm[/url] [url=http://bustyadventures-com-fr33site.blogspot.com/]bustyadventures[/url] [url=http://ibizababes-com-fr33site.blogspot.com/]ibizababes.com[/url]
[url=http://bunnyteens-com.beaffaired.com]Tiny Teen Chick Gets A Huge Anal Gaping And Fucking[/url]
[url=http://lezbomovies-com.beaffaired.com]Asian Caught By Two American Cocks[/url]
[url=http://bustyisland-com.hereandnow0.com]Adorable Lady Gets Her Wet Hungry Cunt Dicked[/url]
[url=http://x-ho-com.timetopaynow.com]Tight Pussy Latina Satisfying American Stud[/url]
[url=http://oxpass-com.hereandnow0.com]Two Hot Teenie Lezzies In Titty Licking Pussy Sucking Action[/url]
[url=http://sexnemo-com.hereandnow0.com]Adorable Sexy Blonde Teens In Hot Strap On Dildo Fucking Action[/url]
[url=http://searcholdies-com.timetopaynow.com]Janis Gets Anal Creampie After Riding Penis[/url]
[url=http://pornstarbook-com.hereandnow0.com]All American Fourth Of July Banging[/url]
[url=http://babeshunter-com.blotrer.com]babeshunter.com[/url] [url=http://gallview-com.timetopaynow.com]gallview.com[/url] [url=http://milfhunter-com.beaffaired.com]milfhunter.com[/url] [url=http://trannysurprise-com.frebnet.com]trannysurprise.com[/url] [url=http://gallfree-com.frebnet.com]gallfree.com[/url] [url=http://wetcircle-com.hereandnow0.com]wetcircle.com[/url] [url=http://x-orgy
-com.beaffaired.com]x-orgy.com[/url] [url=http://lezbomovies-com.beaffaired.com]lezbomovies.com[/url] [url=http://hornybanana-com.frebnet.com]hornybanana.com[/url] [url=http://searchbigtits-com.frebnet.com]searchbigtits.com[/url] [url=http://bigtitpatrol-com.hereandnow0.com]bigtitpatrol.com[/url] [url=http://moviesarena-com.frebnet.com]moviesarena.com[/url] [url=http://brandibelle-com.hereandnow0.com]brandibelle.com[/url] [url=http://frenchcum-com.blotrer.com]frenchcum.com[/url] [url=http://idealbabes-net.hereandnow0.com]idealbabes.net[/url] [url=http://purextc-com.timetopaynow.com]purextc.com[/url] [url=http://redway-org.frebnet.com]redway.org[/url] [url=http://jasara-com.timetopaynow.com]jasara.com[/url] [url=http://sologals-com.timetopaynow.com]sologals.com[/url] [url=http://africanvagina-com.beaffaired.com]africanvagina.com[/url]
Post a Comment
<< Home