Re: Suspend broken on a thinkpad

Manuel J. Galan (manolow@step.es)
Wed, 28 Jan 1998 21:32:21 +0000 (WET)


---1849616000-1804289383-886023152=:13877
Content-Type: TEXT/plain; CHARSET=US-ASCII

On 28 Jan, Dean Gaudet wrote:
> Visit <http://www.arctic.org/~dgaudet/tp560/linux-apm.patch>.
> Depending on what thinkpad bios version you have (no I don't have a
> list of numbers) you may need my patch to get suspend to work properly.
> I just learned recently that a brand new 560X seems to suspend just fine
> with the stock kernel. So maybe IBM changed their apm bios behaviour.
>
> Incidentally, the bug I'm working around here is quite arguably a bug
> in drivers/char/apm_bios.c. apm_bios.c treats the APM bios as a source
> of asynchronous events, and queries it regularly. Whereas IBM's bios
> appears to behave as if it were synchronous -- it doesn't expect you to
> query it again while you're supposedly busy suspending. What ends up
> happening is that the tiny 20 element event queues overflow, and there's
> no overflow detection.
>
> But your problem sounds different from the problems I've had with my
> older 560.
>
> Dean
>
> On 28 Jan 1998, Jan Rychter wrote:
>
>> >>>>> "John" == John Goerzen <jgoerzen@southwind.net>:
>> John> Hi, I just got a new Thinkpad 310ED (133 MMX). Of course, I
>> John> quickly took Windows down to size and installed Linux.
>>
>> John> I've installed the pcmcia utilties and got them working without
>> John> problems.
>>
>> John> But the power management features don't seem to work under Linux,
>> John> but they do under Windows 95.
>>
>> John> Specifically, the suspend feature (write all memory to disk and
>> John> shut off) doesn't work. The LCD will briefly turn off, and then
>> John> will beep and turn right back on and cause some hard disk
>> John> activity for a bit.
>>
>> On my TP560 I had one thing bugging me for a long time -- if IRQ 9 was
>> made available to the pcmcia-cs package, then at some point machine
>> refused to hibernate. Not really predictable, e.g. it would happily
>> hibernate 20 times and then suddenly refuse. Usually just when I was in
>> *real* hurry :-)
>>
>> So, you might take a look at that.
>>
>> And BTW, for the ThinkPad 560 owners: anybody got suspend to work (not
>> hibernation, not standby, SUSPEND == fn-f4) ? My machine w/Linux happily
>> suspends and then never wakes up. I can open&close the screen, tap the
>> keys, etc, no go. Nada. Have to disconnect AC and remove the batteries.
>>
>> --J.
>>

Just for the record my 760XD suspends/redisafe (Fn-F4) and hybernates
(Fn-F12) OK with stock 2.0.33 ...It seems that not all thinkpads are
born equal ;-)

-- 
-- 
Manuel J. Galan
manolow@step.es

---1849616000-1804289383-886023152=:13877 Content-Type: APPLICATION/pgp-signature

-----BEGIN PGP MESSAGE----- Version: 2.6.3in Comment: Requires PGP version 2.6 or later.

iQEVAwUBNM+j6WD+APAfXUYjAQHdZQf9Fw8DCGM+jQJhvPKBGsdG8/eO51eoFDZ0 UkAkuwG8PHyWtXcHJbQDFuD8wKMgSd2NmkomJVy/kguySso1PCPNN/UPbgTW6cXn jOIl/Uth/Un8k7pm7eh3v03esROXUwxwOs4IE5JV2H5pAYOrjiFRQgPSVN+J2fqb jbIEVYyeBB9SpDVs3J2mbo0XEP2U8xKvjOozXPhhJs9YFQ6wkdI+jQDtsNfPK+LD sG5sjiY4ZHrlNly82GkSyWRPfBLT+01F/wViS1B64YiC7VwT5hbfr8J3NYT/EaD6 VPKmK6QuMYegzJ2Jy6nbfuUFLFX974rWgWyTO8hOo8vBB6+C4Ke3qg== =D1eC -----END PGP MESSAGE-----

---1849616000-1804289383-886023152=:13877--