[ltp] ibm-acpi : No such device

Jean Feltrin linux-thinkpad@linux-thinkpad.org
Mon, 5 Sep 2005 11:19:37 -0300


------=_Part_18108_29300144.1125929977206
Content-Type: multipart/alternative; 
	boundary="----=_Part_18109_2680607.1125929977206"

------=_Part_18109_2680607.1125929977206
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

here are my patch..
check.. worked with.. I hope it helps you.


On 9/5/05, J=E4ggi Roger <jaeggir@student.ethz.ch> wrote:
>=20
> Use this patch:
>=20
> https://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1276701&gro=
up_id=3D117042&atid=3D676747
> and you should be able to compile without problems.
>=20
> But I'm still not able to load it afterwards.. (error message see below).
>=20
> -- Roger
>=20
> -----Original Message-----
> From: linux-thinkpad-admin@linux-thinkpad.org on behalf of Leon Brokken
> Sent: Mon 9/5/2005 3:56 PM
> To: linux-thinkpad@linux-thinkpad.org
> Subject: Re: [ltp] ibm-acpi : No such device
>=20
> Jean Feltrin wrote:
>=20
> > Hi all.. can you paste here the messages returned while compiling
> > ibm_acpi-0.11 with kernel 2.6.13, I got some errors while compiling if
> > your is the same I found a solution.
>=20
> Thanks Jean, I somehow forgot that ibm-acpi wouldn't even compile
> correctly.... Looking forward to see the solution!
>=20
> bash-3.00# make
> make -C /lib/modules/2.6.13/build SUBDIRS=3D/home/leon/build/ibm-acpi-0.1=
1
> modules
> make[1]: Entering directory `/home/leon/build/linux-2.6.13'
> CC [M] /home/leon/build/ibm-acpi-0.11/ibm_acpi.o
> /home/leon/build/ibm-acpi-0.11/ibm_acpi.c:1756: error: conflicting types
> for `device_add'
> include/linux/device.h:326: error: previous declaration of `device_add'
> make[2]: *** [/home/leon/build/ibm-acpi-0.11/ibm_acpi.o] Error 1
> make[1]: *** [_module_/home/leon/build/ibm-acpi-0.11] Error 2
> make[1]: Leaving directory `/home/leon/build/linux-2.6.13'
> make: *** [default] Error 2
> bash-3.00#
>=20
>=20
> >
> >
> > On 9/5/05, *Leon Brokken* <leon.brokken@utu.fi
> > <mailto:leon.brokken@utu.fi>> wrote:
> >
> > Roger wrote:
> >
> > > I have a A31 running a 2.6.13 kernel.
> > > I compiled the ibm-acpi driver successfully (version 0.11), but I am
> > > not able to load the module:
> > >
> > > A31:/proc/acpi# modprobe ibm_acpi
> > > FATAL: Error inserting ibm_acpi
> > > (/lib/modules/2.6.13/acpi/ibm_acpi.ko): No such device
> > >
> > > A31:/proc/acpi# dmesg
> > > [...]
> > > ibm_acpi: IBM ThinkPad ACPI Extras v0.11
> > > ibm_acpi: http://ibm-acpi.sf.net/
> > > ibm_acpi: acpi_install_notify_handler(hotkey) failed: 7
> > >
> > > The same error occurs if I use 'modprobe ibm_acpi
> > > hotkey=3Denable,0xffff' or I compile the kernel with ibm-acpi
> > support.
> > >
> > > Thanks,
> > > Roger
> >
> > Has anyone else encountered this problem? I get the same on my T41
> > when
> > I boot the 2.6.13 kernel. 2.6 .12.* worked well.
> > The latest kernel has soma some acpi features added (generic hotkey
> > support), but I haven't been able to compile it such that ibm-acpi
> > would
> > still work (or even get loaded).
> >
> > Does anyone have 2.6.13 working well with ibm-acpi v0.11?
> >
> > Cheers, Leon.
> > --
> > The linux-thinkpad mailing list home page is at:
> > http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
> >
> >
>=20
> --
> Leon J.S. Brokken
> Dept. of Anatomy, Inst. of Biomedicine, University of Turku
> Tykist=F6katu 6 A, 20520 Turku, Finland
> Tel. +358(0)405845063, Fax +358(0)22502610
> --
> GnuPG: 0x3C0E8DAE | 1EE8 511D A6D3 9F9C 2F43 EB6E 8387 B051 3C0E 8DAE
> --
>=20
>=20
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>

------=_Part_18109_2680607.1125929977206
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

here are my patch..<br>
check.. worked with.. I hope it helps you.<br>
<br><br><div><span class=3D"gmail_quote">On 9/5/05, <b class=3D"gmail_sende=
rname">J=E4ggi  Roger</b> &lt;<a href=3D"mailto:jaeggir@student.ethz.ch">ja=
eggir@student.ethz.ch</a>&gt; wrote:</span><blockquote class=3D"gmail_quote=
" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0=
.8ex; padding-left: 1ex;">
Use this patch:<br><a href=3D"https://sourceforge.net/tracker/index.php?fun=
c=3Ddetail&amp;aid=3D1276701&amp;group_id=3D117042&amp;atid=3D676747">https=
://sourceforge.net/tracker/index.php?func=3Ddetail&amp;aid=3D1276701&amp;gr=
oup_id=3D117042&amp;atid=3D676747
</a><br>and you should be able to compile without problems.<br><br>But I'm =
still not able to load it afterwards.. (error message see below).<br><br>--=
 Roger<br><br>-----Original Message-----<br>From: <a href=3D"mailto:linux-t=
hinkpad-admin@linux-thinkpad.org">
linux-thinkpad-admin@linux-thinkpad.org</a> on behalf of Leon Brokken<br>Se=
nt: Mon 9/5/2005 3:56 PM<br>To: <a href=3D"mailto:linux-thinkpad@linux-thin=
kpad.org">linux-thinkpad@linux-thinkpad.org</a><br>Subject: Re: [ltp] ibm-a=
cpi : No such device
<br><br>Jean Feltrin wrote:<br><br>&gt; Hi all.. can you paste here the mes=
sages returned while compiling<br>&gt; ibm_acpi-0.11 with kernel 2.6.13, I =
got some errors while compiling if<br>&gt; your is the same I found a solut=
ion.
<br><br>Thanks Jean, I somehow forgot that ibm-acpi wouldn't even compile<b=
r>correctly.... Looking forward to see the solution!<br><br>bash-3.00# make=
<br>make -C /lib/modules/2.6.13/build SUBDIRS=3D/home/leon/build/ibm-acpi-0=
.11
<br>modules<br>make[1]: Entering directory `/home/leon/build/linux-2.6.13'<=
br>&nbsp;&nbsp;CC [M]&nbsp;&nbsp;/home/leon/build/ibm-acpi-0.11/ibm_acpi.o<=
br>/home/leon/build/ibm-acpi-0.11/ibm_acpi.c:1756: error: conflicting types=
<br>for `device_add'
<br>include/linux/device.h:326: error: previous declaration of `device_add'=
<br>make[2]: *** [/home/leon/build/ibm-acpi-0.11/ibm_acpi.o] Error 1<br>mak=
e[1]: *** [_module_/home/leon/build/ibm-acpi-0.11] Error 2<br>make[1]: Leav=
ing directory `/home/leon/build/linux-
2.6.13'<br>make: *** [default] Error 2<br>bash-3.00#<br><br><br>&gt;<br>&gt=
;<br>&gt; On 9/5/05, *Leon Brokken* &lt;<a href=3D"mailto:leon.brokken@utu.=
fi">leon.brokken@utu.fi</a><br>&gt; &lt;mailto:<a href=3D"mailto:leon.brokk=
en@utu.fi">
leon.brokken@utu.fi</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nb=
sp; Roger wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I have a A31 =
running a 2.6.13 kernel.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I compiled th=
e ibm-acpi driver successfully (version 0.11), but I am<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; not able to load the module:<br>&gt;&nbsp=
;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; A31:/proc/acp=
i# modprobe ibm_acpi<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; FATAL: Error inse=
rting ibm_acpi<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; (/lib/modules/2.6.13/ac=
pi/ibm_acpi.ko): No such device
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; =
A31:/proc/acpi# dmesg<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; [...]<br>&gt;&nb=
sp;&nbsp;&nbsp;&nbsp; &gt; ibm_acpi: IBM ThinkPad ACPI Extras v0.11<br>&gt;=
&nbsp;&nbsp;&nbsp;&nbsp; &gt; ibm_acpi: <a href=3D"http://ibm-acpi.sf.net/"=
>http://ibm-acpi.sf.net/
</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ibm_acpi: acpi_install_notify_han=
dler(hotkey) failed: 7<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&n=
bsp;&nbsp;&nbsp; &gt; The same error occurs if I use 'modprobe ibm_acpi<br>=
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; hotkey=3Denable,0xffff' or I compile the =
kernel with ibm-acpi
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; support.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &=
gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Thanks,<br>&gt;&nbsp;&nbsp;&nbsp;&=
nbsp; &gt; Roger<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Has anyone else en=
countered this problem? I get the same on my T41<br>&gt;&nbsp;&nbsp;&nbsp;&=
nbsp; when<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I boot the 2.6.13 kernel.=20
2.6 .12.* worked well.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The latest kernel ha=
s soma some acpi features added (generic hotkey<br>&gt;&nbsp;&nbsp;&nbsp;&n=
bsp; support), but I haven't been able to compile it such that ibm-acpi<br>=
&gt;&nbsp;&nbsp;&nbsp;&nbsp; would<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; still wo=
rk (or even get loaded).
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Does anyone have 2.6.13 working we=
ll with ibm-acpi v0.11?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Cheers, Leo=
n.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The l=
inux-thinkpad mailing list home page is at:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=
 <a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkp=
ad">
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</a><br>&g=
t;<br>&gt;<br><br>--<br>Leon J.S. Brokken<br>Dept. of Anatomy, Inst. of Bio=
medicine, University of Turku<br>Tykist=F6katu 6 A, 20520 Turku, Finland<br=
>
Tel. +358(0)405845063, Fax +358(0)22502610<br>--<br>GnuPG: 0x3C0E8DAE | 1EE=
8 511D A6D3 9F9C 2F43 EB6E 8387 B051 3C0E 8DAE<br>--<br><br><br>--<br>The l=
inux-thinkpad mailing list home page is at:<br><a href=3D"http://mailman.li=
nux-thinkpad.org/mailman/listinfo/linux-thinkpad">
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</a><br></=
blockquote></div><br>

------=_Part_18109_2680607.1125929977206--

------=_Part_18108_29300144.1125929977206
Content-Type: application/octet-stream; name="ibm_acpi-v0.11-2613.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ibm_acpi-v0.11-2613.patch"

IyBQYXRjaCB0byBtYWtlIGlibV9hY3BpLXYwLjExIHdvcmsgd2l0aCBrZXJuZWwgMi42LjEzCiMg
SmVhbiBNaWNoZWwgRmVsdHJpbiBmZWx0cmluQGdtYWlsLmNvbQojCgotLS0gaWJtX2FjcGkuYwky
MDA1LTA5LTA1IDExOjE2OjM2LjAwMDAwMDAwMCAtMDMwMAorKysgLi4vLmlibS1hY3BpLTAuMTIv
aWJtX2FjcGkuYwkyMDA1LTA5LTA1IDEwOjQzOjIzLjAwMDAwMDAwMCAtMDMwMApAQCAtMTc1Miw3
ICsxNzUyLDcgQEAKIAlyZXR1cm4gMDsKIH0KIAotc3RhdGljIGludCBkZXZpY2VfYWRkKHN0cnVj
dCBhY3BpX2RldmljZSAqZGV2aWNlKQorc3RhdGljIGludCBkZXZpY2VfYWRkaWJtKHN0cnVjdCBh
Y3BpX2RldmljZSAqZGV2aWNlKQogewogCXJldHVybiAwOwogfQpAQCAtMTc3MCw3ICsxNzcwLDcg
QEAKIAltZW1zZXQoaWJtLT5kcml2ZXIsIDAsIHNpemVvZihzdHJ1Y3QgYWNwaV9kcml2ZXIpKTsK
IAlzcHJpbnRmKGlibS0+ZHJpdmVyLT5uYW1lLCAiJXMvJXMiLCBJQk1fTkFNRSwgaWJtLT5uYW1l
KTsKIAlpYm0tPmRyaXZlci0+aWRzID0gaWJtLT5oaWQ7Ci0JaWJtLT5kcml2ZXItPm9wcy5hZGQg
PSAmZGV2aWNlX2FkZDsKKwlpYm0tPmRyaXZlci0+b3BzLmFkZCA9ICZkZXZpY2VfYWRkaWJtOwog
CiAJcmV0ID0gYWNwaV9idXNfcmVnaXN0ZXJfZHJpdmVyKGlibS0+ZHJpdmVyKTsKIAlpZiAocmV0
IDwgMCkgewo=
------=_Part_18108_29300144.1125929977206--