Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Debian 5 How to configure Lirc
-
- Posts: 57
- Joined: 2007-01-31 03:00
- Location: Canberra, ACT, Australia
Debian 5 How to configure Lirc
I have installed Lirc and lirc-modules-source but I do not know how to configure Lirc for my Winfast XP 2000 RM TV and Radio tuner card.
The card is working in tvtime, the remote control is action as numbers 1 to 9 but irw reports "file not found" when I attempt to run it.
I don't know how to configure hardware.conf but I did find a lircd.conf for the Winfast XP 2000 RM
I have seen many very different explainations of how to install Lirc, and most speak of folders or files that do not exist in Debian lenny.
Any tips on where to start ? hardware.conf ?
The card is working in tvtime, the remote control is action as numbers 1 to 9 but irw reports "file not found" when I attempt to run it.
I don't know how to configure hardware.conf but I did find a lircd.conf for the Winfast XP 2000 RM
I have seen many very different explainations of how to install Lirc, and most speak of folders or files that do not exist in Debian lenny.
Any tips on where to start ? hardware.conf ?
I assumed that this is for your TV card:
http://www.linuxtv.org/wiki/index.php/L ... nFast_2000
As for lircd.conf, you need to find one for your specific TV card and put it in /etc (or /etc/lirc) directory. You also have these files hardware.conf & lircmd.conf in the /etc/lirc directory.
You can find lircd.conf for your card here, another guide as well:
http://web.missouri.edu/~datcnc/leadtek ... eisty.html
http://www.linuxtv.org/wiki/index.php/L ... nFast_2000
As for lircd.conf, you need to find one for your specific TV card and put it in /etc (or /etc/lirc) directory. You also have these files hardware.conf & lircmd.conf in the /etc/lirc directory.
You can find lircd.conf for your card here, another guide as well:
http://web.missouri.edu/~datcnc/leadtek ... eisty.html
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
-
- Posts: 57
- Joined: 2007-01-31 03:00
- Location: Canberra, ACT, Australia
Winfast TV2000/XP (card=34)
garrincha, yep, that's my TV Tuner Card, a Leadtek Winfast 2000 XP RM.
One of the problems I am having is that Debian 5 (Lenny) does not (to me) match most of these "howto" pages.
For example the link http://www.linuxtv.org/wiki/index.php/L ... nFast_2000 suggests to
[/code]
Well, for one, there is no "/etc/modules.conf" but some research suggested that creating a file, for example called bttv in the folder "/etc/modprobe.d" would do the same thing. So I create a file called bttv and added the following lines
Well the Debian Lenny boot sequence found the bttv file and processed it but complained lots that it had no idea what to do with the line "above bttv ir_kbd_gpio". Any helpful suggestions, anyone ?
On another site I found this reference "On recent kernels up to at least 2.6.17 the module ir_kbd_gpio is not needed anymore." so it would seem that the link is too old for Debian Lenny.
The link http://www.lirc.org/html/table.html provided the following (but I don't know how to se this information)
http://ubuntuforums.org/showthread.php?t=578789&page=5
Suggests /etc/lirc/hardware.conf
My /etc/lirc/hardware.conf used to be
Currently my Tuner Card's Remote controll kind of works, in that number 0-9 get printed to the screen and VOL- & Vol+ control gonme's volume.
How I got to here is following; http://web.missouri.edu/~datcnc/leadtek ... eisty.html
which said something like
but when I do the following, it says it "couldn't load the required kernel modules", and irw does not run.
So then I tried
so I entered
and then ran irw, and irw did not give "connect: No such file or directory" any more, which looked good, but it did not print out anything when I pressed the keys on the remote control.
I am just a little confused about all this, not sure if I have been using lircd correctly, by that I mean I don't know if the options I am using are correct or not.
PS: I have currently modified by hardware.conf file to be
A "find / -name lirc_gpio" does not return any results, so I am guessing that my attempt to compile a module called lirc_gpio failed.
I just tried
and now this happens (ie no errors when restarting lirc, but still no irw connection)
Maybe I should try http://wiki.frasa.net/index.php/Debian_ ... Mythtv_box
One of the problems I am having is that Debian 5 (Lenny) does not (to me) match most of these "howto" pages.
For example the link http://www.linuxtv.org/wiki/index.php/L ... nFast_2000 suggests to
Code: Select all
...This can be done in your /etc/modules.conf as follows:
[code]
options bttv tuner=24 card=34 lumafilter=1 combfilter=1 chroma_agc=1
above bttv ir_kbd_gpio
Well, for one, there is no "/etc/modules.conf" but some research suggested that creating a file, for example called bttv in the folder "/etc/modprobe.d" would do the same thing. So I create a file called bttv and added the following lines
Code: Select all
options bttv card=34 tuner=5 lumafilter=1 combfilter=1 chroma_agc=1 radio=1
above bttv ir_kbd_gpio
On another site I found this reference "On recent kernels up to at least 2.6.17 the module ir_kbd_gpio is not needed anymore." so it would seem that the link is too old for Debian Lenny.
The link http://www.lirc.org/html/table.html provided the following (but I don't know how to se this information)
Code: Select all
Winfast TV2000/XP (card=34) leadtek_0010 lirc_dev lirc_gpio default leadtek/lircd.conf.RM-0010
leadtek/lircmd.conf.RM-0010
Suggests /etc/lirc/hardware.conf
Code: Select all
REMOTE="Winfast TV2000/XP (card=34)"
LIRCD_ARGS=""
LOAD_MODULES=true
DRIVER=""
DEVICE="/dev/lirc0"
MODULES="lirc_serial"
LIRCD_CONF="leadtek/lircd.conf.RM-0010"
LIRCMD_CONF=""
Code: Select all
# /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
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER=""
# If DEVICE is set to /dev/lirc and udev is in use /dev/lirc0 will be
# automatically used instead
DEVICE=""
MODULES="lirc_gpio"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
How I got to here is following; http://web.missouri.edu/~datcnc/leadtek ... eisty.html
which said something like
Code: Select all
apt-get install lirc lirc-modules-source module-assistant
dpkg-reconfigure lirc-modules-source
m-a update,prepare
m-a update,prepare
rm /usr/src/lirc*deb
m-a clean lirc
m-a a-i lirc
depmod -a
/etc/init.d/lirc restart
irw
Code: Select all
# /etc/init.d/lirc restart
Stopping lirc daemon: irexec lircmd lircd.
#####################################################
## I couldn't load the required kernel modules ##
## You should install lirc-modules-source to build ##
## kernel support for your hardware. ##
#####################################################
## If this message is not appropriate you may set ##
## LOAD_MODULES=false in /etc/lirc/hardware.conf ##
#####################################################
Starting lirc daemon:.
# irw
connect: No such file or directory
tuxpc07:/home/gkirkham#
Code: Select all
cat /proc/bus/input/devices
I: Bus=0001 Vendor=107d Product=6606 Version=0001
N: Name="bttv IR (card=34)"
P: Phys=pci-0000:02:02.0/ir0
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=100003
B: KEY=10afc336 2150a48 0 0 0 404 80010007 80000190 4801 1e0000 4400 100000 10000ffc
Code: Select all
lircd -d /dev/input/event4 -H dev/input
I am just a little confused about all this, not sure if I have been using lircd correctly, by that I mean I don't know if the options I am using are correct or not.
PS: I have currently modified by hardware.conf file to be
Code: Select all
REMOTE="Winfast TV2000/XP (card=34)"
LIRCD_ARGS=""
LOAD_MODULES=true
DRIVER="dev/input"
DEVICE="/dev/input/event4"
MODULES="lirc_gpio"
LIRCD_CONF="leadtek/lircd.conf.RM-0010"
LIRCMD_CONF=""
Code: Select all
# modprobe -l | grep lirc
/lib/modules/2.6.26-1-686/misc/lirc_dev.ko
Code: Select all
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
LOAD_MODULES=true
DRIVER=""
DEVICE=""
MODULES="lirc_dev"
LIRCD_CONF=""
LIRCMD_CONF=""
Code: Select all
# /etc/init.d/lirc restart
Stopping lirc daemon: irexec lircmd lircd.
Starting lirc daemon: lircd lircmd.
# irw
connect: Connection refused
#
I would make a suggestion:
1. Purge the lirc-modules-source package.
2. Get the latest tarball of lirc (lirc-0.8.4a.tar.bz2) from
http://www.lirc.org/
unpack it and cd to the lirc directory, run
You will get a ncurses dialog with several different options, choose one that match your TV card or failing that one that closely match it like in my case I use (I think the option 'other') driver that set device /dev/lirc, i.e. /dev/input/eventX in hardware.conf. Save and run configuration; make and (as root) make install.
3. Configure /etc/lirc/hardware.conf, /etc/lirc/lircd.conf, $HOME/.lircrc for your TV card & remote device.
4. Run
where 'X' correspond to event number for your device (cat /proc/bus/input/devices).
Btw, you may have to reboot in some case. Also, make sure that you load firmware (put it in /lib/firmware) if it's needed and reboot if necessary.
1. Purge the lirc-modules-source package.
2. Get the latest tarball of lirc (lirc-0.8.4a.tar.bz2) from
http://www.lirc.org/
unpack it and cd to the lirc directory, run
Code: Select all
$ ./setup.sh
3. Configure /etc/lirc/hardware.conf, /etc/lirc/lircd.conf, $HOME/.lircrc for your TV card & remote device.
4. Run
Code: Select all
# /usr/sbin/lircd -H dev/input -d /dev/input/eventX
# /etc/init.d/lirc start
Btw, you may have to reboot in some case. Also, make sure that you load firmware (put it in /lib/firmware) if it's needed and reboot if necessary.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
-
- Posts: 57
- Joined: 2007-01-31 03:00
- Location: Canberra, ACT, Australia
Kernel 2.6.22 ... native lirc driver
Can someone shed some light on what these comments imply for Debian Lenny and WinFast xp 2000 RM tv tuner card ?
https://bugs.launchpad.net/ubuntu/+sour ... bug/148756
https://bugs.launchpad.net/ubuntu/+sour ... bug/148756
https://help.ubuntu.com/community/InstallLirc/GutsyFurther investigating, I found out the following: The bttv module was changed in 2.6.22 kernel. in a way that broke the compatibility with the lirc_gpio module. The author of the lirc_gpio tried. as a solution to this problem, to include some functions and globals, now missing from bttv module, inside the "bttv_deprecated.c" source file. Unfortunately this file doesn't get compiled when using m-a, although it contains the definitions of some functions like bttv_get_cardinfo, whose names can't be resolved when loading the module (see the bug report).
The alternative did not work for me.Kernel 2.6.22 no longer allows the lirc_gpio driver to be used. Instead all gpio devices will load from the dev/input native lirc driver. See this specification for more information about what needs to be done. https://blueprints.launchpad.net/mythbu ... lternative
-
- Posts: 57
- Joined: 2007-01-31 03:00
- Location: Canberra, ACT, Australia
Re: Debian 5 How to configure Lirc
waahhh, no one has an answer that helps....
So I don't have MythTV yet, and the TV Tuner card is in another PC with a different (shudder) operating system.
So I don't have MythTV yet, and the TV Tuner card is in another PC with a different (shudder) operating system.
Re: Debian 5 How to configure Lirc
Here's a guide to setting up Winfast TV 2000 XP on Debian Lenny:
http://en.kioskea.net/faq/sujet-1942-co ... d-on-linux
Btw, once you have set up your tv card and remote then MythTV should have no problem picking up this card, here's MythTV page for this particular card:
http://www.mythtv.org/wiki/Leadtek_WinFast
http://en.kioskea.net/faq/sujet-1942-co ... d-on-linux
Btw, once you have set up your tv card and remote then MythTV should have no problem picking up this card, here's MythTV page for this particular card:
http://www.mythtv.org/wiki/Leadtek_WinFast
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
-
- Posts: 57
- Joined: 2007-01-31 03:00
- Location: Canberra, ACT, Australia
-
- Posts: 47
- Joined: 2007-09-01 22:02
Re: Debian 5 How to configure Lirc
you have to check with ps aux, that your deamon for lirc is workingGeorge_Kirkham wrote:I have installed Lirc and lirc-modules-source but I do not know how to configure Lirc for my Winfast XP 2000 RM TV and Radio tuner card.
The card is working in tvtime, the remote control is action as numbers 1 to 9 but irw reports "file not found" when I attempt to run it.
I don't know how to configure hardware.conf but I did find a lircd.conf for the Winfast XP 2000 RM
I have seen many very different explainations of how to install Lirc, and most speak of folders or files that do not exist in Debian lenny.
Any tips on where to start ? hardware.conf ?
if it is workingl you shall check first that hte driver + configuration file of your keybaord remote control are working
irw not found, could nmeans that no daemon runing
Re: Debian 5 How to configure Lirc
Can someone confirm that LIRC is broken in Lenny please.
I have been using it fine in Etch for years, now it doesn't work using Lenny.
I've tried pretty much everything i can think of, compiling from source, using module assistant & installing the debian lirc & lirc-x packages. Nothing works!
There are no how to's specifically for Lenny either.
I have been using it fine in Etch for years, now it doesn't work using Lenny.
I've tried pretty much everything i can think of, compiling from source, using module assistant & installing the debian lirc & lirc-x packages. Nothing works!
There are no how to's specifically for Lenny either.
Re: Debian 5 How to configure Lirc
I can only confirm that it's not broken in Lenny. At least when I last used it. One and half years ago, about.elbeasto wrote:Can someone confirm that LIRC is broken in Lenny please.
For example in this way.
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
A: It was made in the image of its founder.
Re: Debian 5 How to configure Lirc
Have you changed the batteries in your remote?elbeasto wrote:Can someone confirm that LIRC is broken in Lenny please.
I have been using it fine in Etch for years, now it doesn't work using Lenny.
I've tried pretty much everything i can think of, compiling from source, using module assistant & installing the debian lirc & lirc-x packages. Nothing works!
There are no how to's specifically for Lenny either.
Re: Debian 5 How to configure Lirc
Thanks for posting your video how to.debil wrote:I can only confirm that it's not broken in Lenny. At least when I last used it. One and half years ago, about.elbeasto wrote:Can someone confirm that LIRC is broken in Lenny please.
For example in this way.
Unfortunately it doesn't work for me:
Code: Select all
:~$ irrecord test
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
irrecord: could not get file information for /dev/lirc
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
Re: Debian 5 How to configure Lirc
I've quite successfully deleted the LIRC/irrecord stuff in my brain (and have no need for LIRC stuff anymore) so can't help you with that any further. Sorry. Maybe the Web offers solutions, don't know. All I know is that LIRC wasn't just "install and you're ready to go!" type of software.
One suggestion came to mind though. Have you tried to run irrecord with -d flag. E.g. as in the video:
Check your /dev/lirc*
One suggestion came to mind though. Have you tried to run irrecord with -d flag. E.g. as in the video:
Code: Select all
$ irrecord -d /dev/lirc0 test
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
A: It was made in the image of its founder.
Re: Debian 5 How to configure Lirc
No worries, thanks for the help.
I have been trying for ****** days to try and get it to work but it just wont.
The most annoying thing is that there are so many people on the the net saying yeah it works, just follow this and that but it still refuses to work.
I got as far as being able to create an lircd.conf file via irrecord, see the buttons being pressed with irw & run mythtv frontend via irexec from my .lircrc file but all the mythtv prog commands didn't work, up, down, left, right, ok etc.
I might have another go later, after all spending a week to get this ****** thing to work is worth it, isn't it?
I have been trying for ****** days to try and get it to work but it just wont.
The most annoying thing is that there are so many people on the the net saying yeah it works, just follow this and that but it still refuses to work.
I got as far as being able to create an lircd.conf file via irrecord, see the buttons being pressed with irw & run mythtv frontend via irexec from my .lircrc file but all the mythtv prog commands didn't work, up, down, left, right, ok etc.
I might have another go later, after all spending a week to get this ****** thing to work is worth it, isn't it?
Re: Debian 5 How to configure Lirc
You won't get any confirmation from meelbeasto wrote:I might have another go later, after all spending a week to get this ****** thing to work is worth it, isn't it?
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
A: It was made in the image of its founder.
Re: Debian 5 How to configure Lirc
debil wrote:You won't get any confirmation from meelbeasto wrote:I might have another go later, after all spending a week to get this ****** thing to work is worth it, isn't it?
LoL
That video how to you posted on YouTube was excellent. It was easy to follow & I don't usually install LIRC that way, so I learned something.
Interestingly, after getting mythfrontend to launch via irexec, I launched it via a terminal to see the output, (just to make sure that It's not all LIRC's problem) & sure enough it was unable to connect to the LIRC socket.
Something along the lines of: "var/run/lircd" no such file or directory. In /var/run there is only 'lircd.pid' so maybe there is a problem with where myth is looking for lirc?
I shall regather my patience and fortitude & try again this evening.
If anyone cares to contribute to this discussion, please do!
Re: Debian 5 How to configure Lirc
Finally!!!
It was a simple matter of changing a setting in mythfrontend>setup>general go through the pages until you get to the setting where myth looks for LIRC. By default it is set to look in /var/run/lircd just change this to /dev/lircd and you're good to go!
Thanks debil for your help with this.
It was a simple matter of changing a setting in mythfrontend>setup>general go through the pages until you get to the setting where myth looks for LIRC. By default it is set to look in /var/run/lircd just change this to /dev/lircd and you're good to go!
Thanks debil for your help with this.
Re: Debian 5 How to configure Lirc
Great to hear Glad if I was of any help.
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
A: It was made in the image of its founder.
Re: Debian 5 How to configure Lirc
Well you listened to my complaining wich made all the difference!