You are not logged in.

#1 2006-11-11 18:04:12

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

ir_kbd_gpio and btaudio modules are missing.

I just have bought a Leadtech Winfast 2000 XP RM tvtuner, and accordig to this official howto i need ir_kbd_gpio and btaudio modules to use the remote and the dsp of the card, but they arent avalible:

[root@robotkurva lirc]# modprobe ir_kbd_gpio
FATAL: Module ir_kbd_gpio not found.
[root@robotkurva lirc]# modprobe btaudio
FATAL: Module btaudio not found.

Offline

#2 2006-11-12 10:19:59

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

shall i submit a bugreport instead?

Offline

#3 2006-11-12 10:42:38

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: ir_kbd_gpio and btaudio modules are missing.

As far as I can see, those modules are not in the official Linux kernel. But if someone finds them there, they could be added.

Offline

#4 2006-11-12 22:18:04

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

brain0 wrote:

As far as I can see, those modules are not in the official Linux kernel. But if someone finds them there, they could be added.

so i have to compille my own kernel? or is there any way to have these modules in the official kernel26 package?

Offline

#5 2006-11-13 02:17:35

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: ir_kbd_gpio and btaudio modules are missing.

n0gabor wrote:

so i have to compille my own kernel? or is there any way to have these modules in the official kernel26 package?

Compiling your own kernel isn't necessary. You can easily compile any external module. As these modules are (afaik) not part of the Linux kernel, you have to find the source first.

Offline

#6 2006-11-13 09:00:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ir_kbd_gpio and btaudio modules are missing.

btaudio isn't in the Arch kernel because it's an OSS module. Try the ALSA equivalent, snd_bt87x.

Offline

#7 2006-11-13 12:12:28

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

tomk wrote:

btaudio isn't in the Arch kernel because it's an OSS module. Try the ALSA equivalent, snd_bt87x.

don't work:(
in ubuntu edgy the "btaudio" module is present, and works for me.
no way to include in the arch kernel? (why is it a problem being an OSS module?)

Offline

#8 2006-11-14 00:22:01

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

i've installed the previous version of mandrake on a separate partition, and it has the ir_kbd_gpio kernel module, and i was able to use my remote!!!

so i must find a way to have that module in arch...
it is here in the madriva's kernel.RPM:
./lib/modules/2.6.12-12mdk/kernel/drivers/media/video/ir-kbd-gpio.ko.gz

Offline

#9 2006-11-14 07:50:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ir_kbd_gpio and btaudio modules are missing.

Can you post the kernel config from that Mandriva install?

Offline

#10 2006-11-14 10:28:36

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

tomk wrote:

Can you post the kernel config from that Mandriva install?

Sure! Posted on the paste-bin: LINK

Offline

#11 2006-11-14 11:05:04

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ir_kbd_gpio and btaudio modules are missing.

It's incomplete. Post from '# Pseudo filesystems' to the end again.

Offline

#12 2006-11-14 22:07:59

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

tomk wrote:

It's incomplete. Post from '# Pseudo filesystems' to the end again.

paste-bin can handle only this size of text, so here is the rest of the config (prom Pseudo...):
LINK

Offline

#13 2006-11-14 23:28:43

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

I got the following answer on video4linux-list for my problem:

"This module is merged into bttv currently, you don't need to load
anything else for remote, just bttv. But it seems that particulary
winfast card is broken in recent kernel. You need the following patch

http://marc.theaimsgroup.com/?l=linux-v … 716390&w=2

To merge this patch into kernel, you need to identify the card and find
the reason why wrong values were included previously."


here is the patch:

--- bttv-input.c.orig    2006-10-15 18:57:11.000000000 +0300
+++ bttv-input.c    2006-10-15 18:28:08.000000000 +0300
@@ -65,6 +65,8 @@
         (ir->mask_keyup    &&  (0 == (gpio & ir->mask_keyup)))) {
         ir_input_keydown(ir->dev,&ir->ir,data,data);
     } else {
+
+            if (btv->c.type == BTTV_BOARD_WINFAST2000) ir_input_keydown(ir->dev,&ir->ir,data,data);
             ir_input_nokey(ir->dev,&ir->ir);
     }
 
@@ -313,7 +315,7 @@
 
     case BTTV_BOARD_WINFAST2000:
         ir_codes         = ir_codes_winfast;
-        ir->mask_keycode = 0x1f8;
+        ir->mask_keycode = 0x0f8;
         break;
     case BTTV_BOARD_MAGICTVIEW061:
     case BTTV_BOARD_MAGICTVIEW063:

How to apply it to the arch kernel the most elegant way?

Offline

#14 2006-11-14 23:36:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ir_kbd_gpio and btaudio modules are missing.

If you look at the last 200 lines or so of that config, you will see a heading "Unofficial 3rd party kernel additions". Everything below that is not part of the official sources from kernel.org i.e. various external modules for additional functionality - ndiswrapper, acx100, rt2500, etc. Most relevant, though, is LIRC, and you will see the line CONFIG_LIRC_GPIO=m in that section, which is probably responsible for your ir_kbd_gpio module.

Unlike Mandriva, Arch provides these 3rd party modules separately, as they should be, and although I can't be 100% certain without running that particular kernel, I reckon you need to install the lirc package, and use the lirc_gpio module that it provides.

Getting back to btaudio, OSS is deprecated in favour of ALSA, and is therefore not supported by the Arch kernel packages. It is still provided in the kernel source, however, so you could reinstate it by compiling your own kernel.

<edit>
And all of that is now irrelevant, thanks to that patch you found. big_smile

To use it, have a look at the kernel26 PKGBUILD to see how patches are handled.

Offline

#15 2006-11-15 21:15:23

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: ir_kbd_gpio and btaudio modules are missing.

the patch needed a little bit modification in order to use with Arch's 2.6.18.2 kernel, now it needs to be placed in the kernel26 directory in abs, and can be applied with 'patch -Np0 -i bttv-input.patch' in the PKGBUILD.

bttv-input.patch:

*** drivers/media/video/bt8xx/bttv-input.c~     2006-11-15 12:30:05.000000000 +0100
--- drivers/media/video/bt8xx/bttv-input.c      2006-11-15 12:40:56.000000000 +0100
***************
*** 65,70 ****
--- 65,71 ----
            (ir->mask_keyup    &&  (0 == (gpio & ir->mask_keyup)))) {
                ir_input_keydown(ir->dev,&ir->ir,data,data);
        } else {
+               if (btv->c.type == BTTV_BOARD_WINFAST2000) ir_input_keydown(ir->dev,&ir->ir,data,data);
                ir_input_nokey(ir->dev,&ir->ir);
        }

now my Leadtek Winfast TV2000 XP RM remote control works as an input event with lirc (using input event lirc.conf from bttv FAQ)

Offline

Board footer

Powered by FluxBB