2004-04-04 17:37:03

by Olivier Bornet

[permalink] [raw]
Subject: 2.6.5, ACPI, suspend and ThinkPad R40

Hello,

I have an IBM ThinkPad R40, with kernel 2.6.5 and ACPI enabled. The
system is a GNU/Debian testing up-to-date, with acpid debian package
1.0.3-2.

I can suspend with Fn-F4, thanks to a acpi config doing:

echo 3 > /proc/acpi/sleep

The laptop goes to sleep as execpted: all the lights goes off, and the
light with the moon goes on. All is OK until this. :-)

The problem is that I can't resume it. I have found no way. Pressing Fn
don't work. The power button don't work. Closing and opening the display
don't work. The only way to re-start the computer is to remove the
battery. Of course, this cause a reboot.

Has anyone some suggestion for me ?

Thanks in advance.

Olivier
--
Olivier Bornet | fran?ais : http://puck.ch/f
Swiss Ice Hockey Results | english : http://puck.ch/e
http://puck.ch/ | deutsch : http://puck.ch/g
[email protected] | italiano : http://puck.ch/i
Get my PGP-key at http://puck.ch/pgp or at http://pgp.mit.edu/


Attachments:
(No filename) (0.99 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments

2004-04-04 22:00:43

by Michal Schmidt

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

Olivier Bornet wrote:
> Hello,
>
> I have an IBM ThinkPad R40, with kernel 2.6.5 and ACPI enabled. The
> system is a GNU/Debian testing up-to-date, with acpid debian package
> 1.0.3-2.
>

I have an R40 too (model 2681-HSG).

> I can suspend with Fn-F4, thanks to a acpi config doing:
>
> echo 3 > /proc/acpi/sleep
>
> The laptop goes to sleep as execpted: all the lights goes off, and the
> light with the moon goes on. All is OK until this. :-)
>
> The problem is that I can't resume it. I have found no way. Pressing Fn
> don't work. The power button don't work. Closing and opening the display
> don't work. The only way to re-start the computer is to remove the
> battery. Of course, this cause a reboot.
>

I had exactly the same problem.

> Has anyone some suggestion for me ?
>

Yes, see:
http://bugzilla.kernel.org/show_bug.cgi?id=1415
There is a patch which worked for me.

> Thanks in advance.
>
> Olivier

Michal Schmidt

2004-04-05 18:37:59

by Biker

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

> Hello,
> I have an IBM ThinkPad R40...

Me too,
(model number 2681-BDG) and since the release of 2.6.0 many things have been
sligthly getting worse or never worked at all.

-It used to suspend/resume correctly until 2.6.3, but afterwards reboots
during resume.
-Unplugging a usb bluetooth dongle oopses the machine since 2.6.4 (used to
work ok before).
-The radeon fb drivers both have little problems (garbled screen, last screen
line not updated correctly)...
-The pcmcia controller does not work correctly (it stays dead if a pccard is
plugged in after bootup, I need to restart the pcmcia services to make it
work again).
-I never succeded in making infrared work, however it works fine under 2.4.

I'm very willing to help all the kernel hackers out there to solve these
problems, please contact me, I can run whatever test/patch/hack you might
throw at me.

Regards, Biker.

2004-04-05 22:26:12

by Olivier Bornet

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

Hi,

On Mon, Apr 05, 2004 at 12:00:09AM +0200, Michal Schmidt wrote:
> Yes, see:
> http://bugzilla.kernel.org/show_bug.cgi?id=1415
> There is a patch which worked for me.

Thanks a lot. :-) This patch is working as expected for me. Now, after
doing a:

echo LID > /proc/acpi/wakeup_devices
echo SLPB > /proc/acpi/wakeup_devices

I can resume by opening the laptop, or by using the Fn button, or by
using the power button. :-)

This patch seems "very" old (first release 2003-10-28).

Anyone know why this patch is not in the kernel source tree at this
time ?

Good day, and thanks for your help.

Olivier
--
Olivier Bornet | fran?ais : http://puck.ch/f
Swiss Ice Hockey Results | english : http://puck.ch/e
http://puck.ch/ | deutsch : http://puck.ch/g
[email protected] | italiano : http://puck.ch/i
Get my PGP-key at http://puck.ch/pgp or at http://pgp.mit.edu/


Attachments:
(No filename) (932.00 B)
signature.asc (189.00 B)
Digital signature
Download all attachments

2004-04-06 03:28:44

by Kevin Fenzi

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Olivier" == Olivier Bornet <[email protected]> writes:

Olivier> Hi,
Olivier> On Mon, Apr 05, 2004 at 12:00:09AM +0200, Michal Schmidt wrote:
>> Yes, see: http://bugzilla.kernel.org/show_bug.cgi?id=1415 There is
>> a patch which worked for me.

Olivier> Thanks a lot. :-) This patch is working as expected for
Olivier> me. Now, after doing a:

Olivier> echo LID > /proc/acpi/wakeup_devices echo SLPB >
Olivier> /proc/acpi/wakeup_devices

Olivier> I can resume by opening the laptop, or by using the Fn
Olivier> button, or by using the power button. :-)

Alas, I would like to report it doesn't work for me.

My laptop suspends, but never comes back from suspend as well.
It doesn't seem like the LID or power buttons are a possible setting
for me. Doing a 'cat /proc/acpi/wakeup_devices' gives:

Device Speep state Status
C04E 5 disabled
C0A0 3 disabled
C0A6 3 disabled
C0A9 3 disabled
C161 3 disabled
C162 3 disabled
C177 4 disabled
C11E 4 disabled

C11E is my suspend button, but it doesn't seem like it will allow S3?
I have no idea what the other addresses are. I tried enabling them
all, and got a big pile of oopses (which I can duplicate if anyone
wants)

Any ideas?

Olivier> This patch seems "very" old (first release 2003-10-28).

Olivier> Anyone know why this patch is not in the kernel source tree
Olivier> at this time ?

Yeah, if it helps some people then it should go in I would think.

It would be nice if we could just set the list of wakeup devices to a
sane list for everyone tho. Power/lid/suspend button.

Back to using nigels swsusp2... at least it's quite fast and the
latest one seems pretty stable with 2.6 for me at least. ;)

kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFAciPl3imCezTjY0ERApkWAJ4xZFmTDgXsq7cvrXOQ/HR70Fs5PQCeJshD
uc1kiMwhqGUhn0fDD7FDHko=
=E51X
-----END PGP SIGNATURE-----

2004-04-06 13:48:52

by Vincent C Jones

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

In article <[email protected]> you write:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>>>>>> "Olivier" == Olivier Bornet <[email protected]> writes:
>
>Olivier> Hi,
>Olivier> On Mon, Apr 05, 2004 at 12:00:09AM +0200, Michal Schmidt wrote:
>>> Yes, see: http://bugzilla.kernel.org/show_bug.cgi?id=1415 There is
>>> a patch which worked for me.
>
>Olivier> Thanks a lot. :-) This patch is working as expected for
>Olivier> me. Now, after doing a:
>
>Olivier> echo LID > /proc/acpi/wakeup_devices echo SLPB >
>Olivier> /proc/acpi/wakeup_devices
>
>Olivier> I can resume by opening the laptop, or by using the Fn
>Olivier> button, or by using the power button. :-)
>
>Alas, I would like to report it doesn't work for me.
>
>My laptop suspends, but never comes back from suspend as well.
>It doesn't seem like the LID or power buttons are a possible setting
>for me. Doing a 'cat /proc/acpi/wakeup_devices' gives:
>
>Device Speep state Status
>C04E 5 disabled
>C0A0 3 disabled
>C0A6 3 disabled
>C0A9 3 disabled
>C161 3 disabled
>C162 3 disabled
>C177 4 disabled
>C11E 4 disabled
>
>C11E is my suspend button, but it doesn't seem like it will allow S3?
>I have no idea what the other addresses are. I tried enabling them
>all, and got a big pile of oopses (which I can duplicate if anyone
>wants)
>
>Any ideas?
>
>Olivier> This patch seems "very" old (first release 2003-10-28).
>
>Olivier> Anyone know why this patch is not in the kernel source tree
>Olivier> at this time ?
>
>Yeah, if it helps some people then it should go in I would think.
>
>It would be nice if we could just set the list of wakeup devices to a
>sane list for everyone tho. Power/lid/suspend button.
>
>Back to using nigels swsusp2... at least it's quite fast and the
>latest one seems pretty stable with 2.6 for me at least. ;)
>
>kevin

Is it my imagination or is there an acute lack of interest in supporting
notebook features in 2.6.X? Since the early days of 2.5.X, there have
been questions raised regarding suspend/resume and related questions of
critical importance to mobile users. All (at least those associated with
IBM ThinkPads) have been ignored by developers, with the only responses
coming from other notebook users expressing similar concerns.

Is the answer to upgrade to a faster notebook so I can get adequate
performance using the 2.4 kernel in order to retain the ability to
quickly and safely suspend / resume while on the road?

Side note: X23, kernel 2.6.5, SuSE 9.0 with Kraxel fixes. Suspend only
works while on battery, forgetting to unplug the AC first fails every
time and intermittently locks up the box.

--
Dr. Vincent C. Jones, PE Expert advice and a helping hand
Computer Network Consultant for those who want to manage and
Networking Unlimited, Inc. control their networking destiny
14 Dogwood Lane, Tenafly, NJ 07670
http://www.networkingunlimited.com
[email protected] +1 201 568-7810 Fax: +1 201 568-7269

2004-04-06 18:20:53

by Theodore Ts'o

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

On Tue, Apr 06, 2004 at 09:16:02AM -0400, Vincent C Jones wrote:
> Is it my imagination or is there an acute lack of interest in supporting
> notebook features in 2.6.X? Since the early days of 2.5.X, there have
> been questions raised regarding suspend/resume and related questions of
> critical importance to mobile users. All (at least those associated with
> IBM ThinkPads) have been ignored by developers, with the only responses
> coming from other notebook users expressing similar concerns.
>
> Is the answer to upgrade to a faster notebook so I can get adequate
> performance using the 2.4 kernel in order to retain the ability to
> quickly and safely suspend / resume while on the road?
>
> Side note: X23, kernel 2.6.5, SuSE 9.0 with Kraxel fixes. Suspend only
> works while on battery, forgetting to unplug the AC first fails every
> time and intermittently locks up the box.

Well, I've taken the easy way out and simply used ditched ACPI, and
used APM support, which works just fine on IBM Thinkpads. It would be
nice if ACPI worked, and every so often I put in a day or two worth of
futile frustration trying to improve ACPI support on my T40 laptop,
but with so many things being broken, and my only having limited
number of hours in the day, so it was much easier to simply fall back
ten yards and punt.

This is not a particularly satisfing solution for people who are stuck
with Dell or Sony laptops that don't have APM support, and who only
have ACPI, but this might have something to do with why I know a lot
of kernel developers who use IBM Thinkpads. :-P

- Ted

P.S. Of course, in the interests of fair disclosure, a lot of them
work for IBM, including myself....

2004-04-06 22:53:36

by Brown, Len

[permalink] [raw]
Subject: RE: 2.6.5, ACPI, suspend and ThinkPad R40

>> lack of interest in supporting notebook features

I'm glad that you're complaining about suspend/resume not working.
This means that you were able to boot and configure your system
using ACPI -- a year ago you wouldn't have got so far;-)

Yes, in the past year we've concentrated more on the configuration
issues at the expense of advanced features such as suspend/resume.
While we still have configuration issues, their frequency and
severity is lower than it once was, and so I'm hopeful that
we're over the hump there and will be able to
spend more time on features such as supsend/resume.

When I looked at a suspend/resume failure a couple of weeks ago
I discovered that there is no code in linux to save/restore
PCI configuration space for PCI bridges. This is sort of a deal
killer -- as bits such as bus-master-enable could come up
enabled or disabled depending on the roll of the dice.
I hoped somebody on linux-pci would send a patch, but I haven't
seen one yet.

Cheers,
-Len

2004-04-07 07:24:38

by Olivier Bornet

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

Hello,

On Tue, Apr 06, 2004 at 12:19:40AM +0200, Olivier Bornet wrote:
> On Mon, Apr 05, 2004 at 12:00:09AM +0200, Michal Schmidt wrote:
> > Yes, see:
> > http://bugzilla.kernel.org/show_bug.cgi?id=1415
> > There is a patch which worked for me.
>
> Thanks a lot. :-) This patch is working as expected for me.

A correction: I can now suspend to ram and resume. But it seems that the
laptop is not in a good state after suspend to ram. I have let it in
this mode the whole day, and when I was back at home, the battery was
empty. :-(

I don't have use this laptop (or even another one) with another
configuration for suspending to ram, so I don't realy know how much time
we can have it in the suspend to ram state before the battery is empty.
But talking with one friend, he say that with 2.4 kernel and APM, this
will be many weeks.

I'm ready to help with the ACPI stuff if this may be usefull. Just let
me know what I can test.

Good day, and thanks for your help.

Olivier
--
Olivier Bornet | fran?ais : http://puck.ch/f
Swiss Ice Hockey Results | english : http://puck.ch/e
http://puck.ch/ | deutsch : http://puck.ch/g
[email protected] | italiano : http://puck.ch/i
Get my PGP-key at http://puck.ch/pgp or at http://pgp.mit.edu/


Attachments:
(No filename) (1.27 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments

2004-04-19 11:13:30

by Charles Bueche

[permalink] [raw]
Subject: Re: 2.6.5, ACPI, suspend and ThinkPad R40

On Tue, 6 Apr 2004 09:16:02 -0400 (EDT)
[email protected] (Vincent C Jones) wrote:
> Is it my imagination or is there an acute lack of interest in
> supporting notebook features in 2.6.X? Since the early days of 2.5.X,
> there have been questions raised regarding suspend/resume and related
> questions of critical importance to mobile users. All (at least those
> associated with IBM ThinkPads) have been ignored by developers, with
> the only responses coming from other notebook users expressing similar
> concerns.

I can add my "me-too" here. I own a Dell I8600 which perform excellently
in gentoo with 2.6.x, with the only remaining issue being
suspend+resume.

I have tried several times to understand this ACPI thing, only to find
that the KISS principle has been forgotten when it has been designed.
Maybe it's simply not possible to design something"acceptably simple" in
this business, but the fact that Alan Cox has called it "terminally
broken" tend to support my point of view.

My intend is not to start a flamewar here, but with laptop HW coming
down in price, we have to provide a better support for casual users.

I can't contribute code here, but I can test things you throw at me for
Dell I8600, so feel free.

Charles

--
Charles Bueche <[email protected]>
sand, snow, wave, wind and net -surfer