View previous topic :: View next topic |
Author |
Message |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Wed Jan 07, 2004 3:39 pm Post subject: kernel 2.6 and lirc_i2c |
|
|
Hi!
Recently I'm trying to get working my Gentoo multimedia box with kernel 2.6. Almost everything is fine, except lirc support.
The lirc patches which I can download from the Internet are for serial, parallel, etc. lirc drivers, not for the i2c bus drivers which are needed for bttv-cards (for my Hauppauge WinTV).
I examined the bttv source files in the kernel, and found that there are lots of codes for infrared controllers. So, I tried the following: I have lirc installed for kernel 2.4, so I have the binaries. modprobed bttv-module, I can see television (with a huge black border, anyway... ).
Nwo, when I try toi run "lircd -n -d /dev/lircd", it runs, connects. Starting irw, and lircd says that client connected to /dev/lircd. But nothing happens when I press the buttons!
So, my questions: is lirc_i2c support integrated into 2.6's bttv modul? If yes, how can I got it to accept the keypresses?
Thanks,
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grzewho l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/177212199140efba7a5d4af.gif)
Joined: 31 Dec 2002 Posts: 626 Location: /home/g
|
Posted: Thu Jan 08, 2004 12:46 pm Post subject: |
|
|
try the love-sources, the lirc patch is already included, and it works perfectly with bttv cards _________________
Code: | USE="freedom -software_patents" emerge --deep --update world |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Thu Jan 08, 2004 12:59 pm Post subject: |
|
|
Thanks, tonight I will give it a shoot!
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
theonlymcc Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Sep 2003 Posts: 274 Location: NC
|
Posted: Tue Jan 20, 2004 6:44 pm Post subject: |
|
|
Using love-sources-5 for 2.6.1. So the i2c that used to be lirc_i2c is builtin to bttv? If so I emerged ~x86 lirc and it won't connect. Says it can't find the device. Any hints? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grzewho l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/177212199140efba7a5d4af.gif)
Joined: 31 Dec 2002 Posts: 626 Location: /home/g
|
Posted: Tue Jan 20, 2004 7:28 pm Post subject: |
|
|
i`m sorry but i don`t use the i2c module. before love-sources i used to have 2 modules to make lirc work: lirc_dev and lirc_gpio. now the lirc_dev is builtin into the kernel (dunno why, but it just works that way) so i modprobe only the lirc_gpio module (with my card specific options)
be sure to remove all the lirc* entries in your /dev directory, modprobe the lirc_something module you wish to use, see if it creates any devices in /dev/lirc/* and run lircd pointing to that device (/usr/sbin/lircd -d /dev/lirc/lirc0 in my case)
good luck! _________________
Code: | USE="freedom -software_patents" emerge --deep --update world |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
theonlymcc Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Sep 2003 Posts: 274 Location: NC
|
Posted: Wed Jan 21, 2004 5:41 am Post subject: |
|
|
Well my WinTV card in 2.4 used to use lirc_i2c for the remote sensor driver. Which ones from love-sources should I use? e.g. lirc_gpio? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Wed Jan 21, 2004 9:27 am Post subject: |
|
|
Hi,
I've tried and works. You need the built-in lirc_i2c module. But it is only the lirc kernel module, you need the lirc binaries, too. You can't compile them against 2.6 kernel, so you need to install and config a 2.4 kernel, emerge lirc with driver hauppauge, so you will get the lirc stuffs and the kernel modules for i2c.
Now, you compile 2.6 kernel with i2c modules and bttv enabled. After you enable bttv, you can select lirc_i2c. Compile kernel and install.
And now: 2.6 uses a little different entry for lirc device. You have to edit /etc/init.d/lircd. You have to modify line "start-stop-daemon --start --quiet --exec /usr/sbin/lircd", and append "--device=/dev/xxx" after it. You have to find the correct device: after modprobeing lirc_i2c, see what entries you got in /dev. See /dev/lirc/ directory, there should be an entry like lirc0 or lircd0, than try /dev/lirc/lirc0. If not works, try /dev/lircd.
Trying: after started /etc/init.d/lircd, run irw. Now, if you press any button on remote controller, irw will write the appropriate codes. If not, stop irw, stop lircd, change the driver entry in /etc/init.d/lircd, and start them again.
Regards,
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Evinyatar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Feb 2003 Posts: 70
|
Posted: Wed Jan 21, 2004 10:09 am Post subject: |
|
|
If the love-sources really do work with the WinTV, could anyone tell me what's so different about the love-sources that makes the lirc patch work? I can't use the love-sources since I'm on a PPC machine and they don't compile properly, and I simply can't get it to work with ppc-dev sources. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Wed Jan 21, 2004 10:17 am Post subject: |
|
|
gentoo-dev-sources has the lirc patch, too. I'm using this, not love or mm.
It's patches are in genpatches-2.6-xxx file, from here you can extract the lirc patches and try to patch your own kernel.
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zippelman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Nov 2003 Posts: 8
|
Posted: Sat Apr 03, 2004 4:59 pm Post subject: |
|
|
@ sipi
BIG THX, I tried 3h to get LIRC into the kernel. Then I read your comment and 3 mins later I saw LIRC in the kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Mon Apr 05, 2004 9:51 am Post subject: |
|
|
You are welcome!
I'm SO happy that I could help you!
Now comes the real pain... You have to manually configure lircrc files for all of your programs...
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bulent n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Mar 2004 Posts: 19
|
Posted: Wed Apr 21, 2004 3:51 am Post subject: |
|
|
Where can i find that genpatches-2.6-xxx file? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Wed Apr 21, 2004 9:05 am Post subject: |
|
|
You should emerge -f gentoo-dev-sources. It will download the main kernel AND the corresponding genpatches-xxx file.
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ardnut Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 Feb 2004 Posts: 94
|
Posted: Sat Apr 24, 2004 9:55 am Post subject: gentoo-dev-sources 2.6.5 |
|
|
I'm using the gentoo-dev-sources 2.6.5 and although it has the Linux InfraRed Controller module it doesnt have I2C Support listed in that menu.
I'm setting this machine up as mythtv box and have everything else working apart from the fact that I cant modprobe lirc_i2c - and thus lirc doesnt work with my remote.
Does any one have a .diff/patch file I can use to patch my kernel to include this module - as I really dont want to have to go and start over again with a different kernel setup.
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cwall64 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/18518996614b7f0c1b206cf.png)
Joined: 28 Nov 2003 Posts: 128 Location: Houston, TX
|
Posted: Tue May 04, 2004 4:00 pm Post subject: |
|
|
I am having a strange problem with the PVR-250 remote. I am using gentoo-dev-sources-2.6.5-r1 and have lirc working, but it only works the frist time I use it after a reboot - irw outputs the inormation and MythTV works fine the first time I run either, but after stopping irw or MythTV the remote stops working. In the logs it claims that the remote is open for connections though???
Thanks,
Chris _________________ Intel Core2Quad Q9400
Gigabyte GA-EP45-UD3P
8GB DDR2-1066 RAM OCZ
GeForce 9600GT
5x Seagate 1TB 7200.12 (4x Software RAID5)
Gentoo 64-bit |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sipi Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/101312613543295b064f2dd.gif)
Joined: 03 Apr 2003 Posts: 406 Location: Hungary
|
Posted: Wed May 05, 2004 11:30 am Post subject: |
|
|
Ardnut: you have to set i2c modules, too, in kernel config. It is under Device Drivers - I2c Support. Simply, modify all things to modules.
Than you need to enable in Device Drivers - Multimedia devices - Video For Linux as module, and in Video for Linux, module the BT848 driver. Than, you will get lirc i2c.
Sipi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jingo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_chewbacca.gif)
Joined: 04 Dec 2002 Posts: 134 Location: Denmark
|
Posted: Wed May 12, 2004 5:40 pm Post subject: |
|
|
cwall64 wrote: | I am having a strange problem with the PVR-250 remote. I am using gentoo-dev-sources-2.6.5-r1 and have lirc working, but it only works the frist time I use it after a reboot - irw outputs the inormation and MythTV works fine the first time I run either, but after stopping irw or MythTV the remote stops working. In the logs it claims that the remote is open for connections though???
Thanks,
Chris |
Seeing the same thing here..
Only works the first time... also using kernel 2.6.5-r1
rmmod lirc_gpio and lirc_dev
and modprobping again.
works ones... and so on!!!
Whats wrong?
Jingo _________________ I'm not a perfectionist, even though my parents were |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JoZEr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/127610345640b0e5183b0c6.gif)
Joined: 23 May 2004 Posts: 3
|
Posted: Sun May 23, 2004 6:04 pm Post subject: |
|
|
I am having the same problem cwall64 and jingo are having... with a little elaboration. If I rmmod lirc_i2c and then modprobe it again (without removing lirc_dev) then restart lircd It works again. If i try to run irw again it stops working. If I repeat the process again (rmmod / modprobe lirc_i2c and lircd restart) then run irw it displays the last button I pushed on the remote since it stopped working immediately... Seems like the signal is getting stuck in a buffer or something somewhere along the way. Hopefully someone can figure this out. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Deathwing00 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1140581890451d29047ad41.jpg)
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun May 23, 2004 8:34 pm Post subject: |
|
|
Moved from Multimedia. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
platojones Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/21016147504bef78082c100.jpg)
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sat May 29, 2004 9:31 pm Post subject: lirc and gentoo-dev-sources-2.6.5-r1 |
|
|
Same lirc problem here. Works once and then never again. I've applied the kraxel patch to my kernel, though I've read now that it is not necessary. I don't know if that is the problem or not. It certainly doesn't look like the lirc code is being actively maintained. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sklettke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13047216224075dc20be1dd.jpg)
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Mon May 31, 2004 10:53 pm Post subject: |
|
|
I've gotten lirc working with the pvr-250 grey remote using gentoo-dev-2.6.5 but have been unable to get the vanilla 2.6.5 with lirc patches to compile. There's an error in lirc_i2c.c. I copied the lirc_i2c.c from my gentoo-dev-2.6.5 install and the kernel compile finished without a problem. However, now I do not get a /dev/video0 any more. Is there a way to save the gentoo-dev-2.6.5 lirc kernel modules and use those in vanilla 2.6.5?
Other than that, everything else in mythtv 0.14 (haven't tried 0.15 yet) is working perfectly.
EDIT: The only way I can get ivtv to load correctly (and /dev/video0 to exist) is in the vanilla development-sources. The only way I can get lirc to work is in gentoo-dev-sources. When I compile ivtv in gentoo-dev kernel, lirc works but there is an error loading ivtv. I have gotten neither working at the same time, (but have gotten many times when neither work. ). Is anyone running the development-sources and has gotten lirc and ivtv to work at the same time? If so, how?
Thanks,
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sklettke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13047216224075dc20be1dd.jpg)
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Tue Jun 08, 2004 3:16 am Post subject: |
|
|
For the PVR-250, do the ivtv modules need to be loaded before lirc (with the grey remote) can work?
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Lorijho n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/161558220403e70f38a77f.jpg)
Joined: 22 Jul 2003 Posts: 38 Location: Luxembourg
|
Posted: Tue Jun 08, 2004 11:58 am Post subject: |
|
|
same problem here
works ones... then never again until next reboot! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sklettke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13047216224075dc20be1dd.jpg)
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Sat Jun 12, 2004 5:51 am Post subject: |
|
|
I'm trying a 2.4 kernel. I've tried everything with 2.6 and cannot get lirc and the pvr-250 grey remote working again!!!! I must have spent close to 10 hours compiling various kernels and messing with their configs. I've went through tons of different kernels and have experimented with the 2.6.5 lirc patch and the 2.6.4 lirc patch (which I heard works better). Nothing works. The closest that I get is a dmesg output of this: Code: | lirc_dev: IR Remote Control driver registered, at major 61 |
But I can find no way for the /dev/lirc/0 device to be created.
Can someone please help????
Thanks.
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sklettke Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13047216224075dc20be1dd.jpg)
Joined: 05 Nov 2002 Posts: 352 Location: Madison, WI
|
Posted: Mon Jun 14, 2004 9:24 pm Post subject: |
|
|
For anyone wondering, this is how I got the grey pvr-250 remote to work:
https://forums.gentoo.org/viewtopic.php?p=1241746#1241746
Scott _________________ Jab.ID: scottk@jabber.org
Kernel: 2.6.11-rc3-nitro0
KDE 3.3.2 with Xorg
MythBox: 2.6.5-gentoo-dev-r2 (LVMed 360GB in XFS; Athlon 2500+) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|