Gentoo Archives: gentoo-user

From: Philipp Kraus <philipp.kraus@×××××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: LIRC with kernel 3.2.11
Date: Thu, 22 Mar 2012 21:51:05
Message-Id: jkg6oj$1d5$1@dough.gmane.org
In Reply to: Re: [gentoo-user] LIRC with kernel 3.2.11 by "Canek Peláez Valdés"
1 On 2012-03-22 17:53:51 +0100, Canek Peláez Valdés said:
2
3 > On Thu, Mar 22, 2012 at 5:21 AM, Kraus Philipp
4 > <philipp.kraus@×××××××××.de> wrote:
5 >> Hello,
6 >>
7 >> I'm using a Hauppauge WinTV HVR 1900 (usb), with a self-compiled kernel
8 >> 3.2.11. The USB device works very well, but I would like to use LIRC
9 >> 0.9.0 with my kernel. So I have set the LIRC_DEVICES="hauppauge" within
10 >> my make.conf and run emerge.
11 >> Emerge fetches this packages:
12 >>
13 >> [ebuild  N     ] sys-kernel/gentoo-sources-3.2.11  USE="-build -deblob
14 >> -symlink"
15 >> [ebuild  N     ] virtual/linux-sources-0
16 >> [ebuild  N     ] app-misc/lirc-0.9.0
17 >>
18 >> On emerging this error is shown:
19 >>
20 >>
21 >> /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c
22 >>
23 >> /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:
24 >> In function 'ir_probe':
25 >> /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:559:13:
26 >> error: 'struct i2c_adapter' has no member named 'id'
27 >> /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:
28 >> At top level:
29 >> /var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_i2c/lirc_i2c.c:232:12:
30 >> warning: 'add_to_buf_pvr2000' defined but not used
31 >>
32 >>
33 >> (How) Can I solve this problem?
34 >
35 > I don't know if this will help you in any way. I have a media center
36 > with a Thermaltake LCD, which besides the LCD (which is actually a
37 > VFD) it includes an imon remote control. I used to have LIRC, and
38 > everything was right.
39 >
40 > After kernel 2.6.36 (or similar), LIRC stopped working (I use
41 > vanilla-sources). So I upgraded to the 3.2 kernel, and selected
42 > IR_IMON in Device Drivers -> Multimedia support -> Remote Controller
43 > adapters.
44
45 Thanks for this information. In the 3.2.11 sources the Remote Controller option
46 is named CONFIG_RC_CORE and I have set the options
47
48 Compile Remote Controller keymap modules (CONFIG_RC_MAP)
49 Enable IR raw decoder for the NEC protocol (CONFIG_IR_NEC_DECODER)
50 Enable IR raw decoder for the RC-5 protocol (CONFIG_IR_RC5_DECODER)
51 Enable IR raw decoder for the RC6 protocol (CONFIG_IR_RC6_DECODER)
52 Enable IR raw decoder for the JVC protocol (CONFIG_IR_JVC_DECODER)
53 Enable IR raw decoder for the Sony protocol (CONFIG_IR_SONY_DECODER)
54 Enable IR raw decoder for the RC-5 (streamzap) protocol
55 (CONFIG_IR_RC5_SZ_DECODER)
56 Enable IR raw decoder for the MCE keyboard/mouse protocol
57 (CONFIG_IR_MCE_KBD_DECODER)
58 Enable IR to LIRC bridge (CONFIG_IR_LIRC_CODEC)
59
60 for building as modules.
61
62 > Now the remote works perfectly, *BUT* I don't have LIRC installed
63 > anymore. The remote works as a keyboard, and I didn't had to configure
64 > anything in XBMC.
65
66 Can you run the emerge build command for lirc and take a look if the build
67 process crashs at the same source code line, like my sources?
68
69 Thanks a lot for your help
70
71 Phil