[ltp] Possible solution to ACPI power drain with 2.6.10
Michele Lamarca
linux-thinkpad@linux-thinkpad.org
Tue, 18 Jan 2005 14:24:26 +0100
------=_Part_519_5320035.1106054666977
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On Tue, 18 Jan 2005 13:40:26 +0100, Tino Keitel <tino.keitel@gmx.de> wrote:
> On Tue, Jan 18, 2005 at 07:15:09 +0100, Bob Alexander wrote:
> > Tino Keitel wrote:
> > >On Sun, Jan 16, 2005 at 23:02:47 +0100, Michele Lamarca wrote:
> > >
> > >>Hello everyone,
> > >>there's a possible solution from J=FCrg Billeter, on
> > >>http://bugzilla.kernel.org/show_bug.cgi?id=3D3022.
> > >>
> > >>He suggests to remove the CONFIG_PPC_PMAC condition in
> > >>drivers/video/aty/radeon_pm.c. Doing so, he reduces the power drain
> > >>of his T40p.
> > >>
> > >>This works for me. On my T40 (radeon 7500) power drain went from 2.7
> > >>W to 0 .8 W
> > >
> >=20
> > Unfortunately my T40 with Radeon 9000 (M9) keeps on draining around 5W
> > per hour in ACPI sleep :(
> >
> > I just ekiminated the #define of the CONFIG_PPC_PMAC in the source ...
> > was that enough ?
>=20
> If I understand it right, you don't need to eliminate the #define, but
> allways enable the #define, even on non-PPC-PMAC systems, since the
> desired actions will only be taken if CONFIG_PPC_PMAC is defined.
>=20
Right, but there'a little bit more. Attached is the patch I put on
bugzilla. It seems working for some lucky ThinkPads, but some others
can't resume.
I'm using 2.6.10-mm3 and without another patch
(http://lkml.org/lkml/2005/1/11/120) alsa oopses on resume.
Regards,
Michele
------=_Part_519_5320035.1106054666977
Content-Type: application/octet-stream; name="radeonfb-patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="radeonfb-patch"
LS0tIGxpbnV4L2RyaXZlcnMvdmlkZW8vYXR5L3JhZGVvbl9wbS5jLm9yaWcJMjAwNS0wMS0xNiAy
MTowMjoyMS4wMDAwMDAwMDAgKzAxMDAKKysrIGxpbnV4L2RyaXZlcnMvdmlkZW8vYXR5L3JhZGVv
bl9wbS5jCTIwMDUtMDEtMTYgMjE6MDQ6NDEuMDAwMDAwMDAwICswMTAwCkBAIC01LDI0ICs1LDE4
IEBACiAKIC8qCiAgKiBDdXJyZW50bHksIG9ubHkgUG93ZXJNYWMgZG8gRDIgc3RhdGUKKyAqIExl
dCdzIHRyeSBvbiBhIFRoaW5rUGFkIQogICovCi0jZGVmaW5lIENPTkZJR19SQURFT05fSEFTX0Qy
CUNPTkZJR19QUENfUE1BQworI2RlZmluZSBDT05GSUdfUkFERU9OX0hBU19EMgogCiAjaWZkZWYg
Q09ORklHX1JBREVPTl9IQVNfRDIKIC8qCiAgKiBPbiBQb3dlck1hYywgd2UgYXNzdW1lIGFueSBt
b2JpbGl0eSBjaGlwIGJhc2VkIG1hY2hpbmUgZG9lcyBEMgogICovCi0jaWZkZWYgQ09ORklHX1BQ
Q19QTUFDCiBzdGF0aWMgaW5saW5lIGludCByYWRlb25fc3VzcGVuZF90b19kMihzdHJ1Y3QgcmFk
ZW9uZmJfaW5mbyAqcmluZm8sIHUzMiBzdGF0ZSkKIHsKIAlyZXR1cm4gcmluZm8tPmlzX21vYmls
aXR5OwogfQotI2Vsc2UKLXN0YXRpYyBpbmxpbmUgaW50IHJhZGVvbl9zdXNwZW5kX3RvX2QyKHN0
cnVjdCByYWRlb25mYl9pbmZvICpyaW5mbywgdTMyIHN0YXRlKQotewotCXJldHVybiAwOwotfQot
I2VuZGlmCiAKICNlbmRpZiAvKiBDT05GSUdfUkFERU9OX0hBU19EMiAqLwog
------=_Part_519_5320035.1106054666977--