apm -S freezes the laptop

Previous thread: Re: Wireless problems. by David Walker on Thursday, November 1, 2007 - 3:15 pm. (2 messages)

Next thread: Re: [i386/Thinkpad T41]USB mouse + Xorg obsd 4.1 by Mark Thomas on Thursday, November 1, 2007 - 5:22 pm. (1 message)
From: Pau Amaro-Seoane
Date: Thursday, November 1, 2007 - 4:15 pm

Hi,

this is a fujitsu siemens amilo 1425M; dmesg can be read here

www.aei.mpg.de/~pau/dmesg_FJS_Amilo1425.txt (OpenBSD 4.2, installed
today from CD)

ok... I changed apmd flags to apmd_flags="" because I noticed that
when I close the lid, the "suspend" light blinks and the screen gets
black and so remains it until I press again the power bottom. I hoped
that, maybe, the laptop could suspend via apm.

But the result is different. Closing the lid yields the same result,
but if I type apm -S or zzz, the laptop will die in a "millifraction"
of second. I press enter and almost immediately PUF! the whole laptop
is powered off; I mean _everything_ Not even the light "charging"
(plugged) is on (even if it's plugged, of course)

Is there any hope that this laptop suspends? I'm just asking
because... sigh... suspending under OpenBSD is my "dream"...

cheers,

Pau

From: Travers Buda
Date: Thursday, November 1, 2007 - 4:34 pm

Suspend-to-whatever is not something you should spend too much time
worrying about.  It's likely not going to work.  Causes: 
Buggy BIOS.
Poor design of APM/ACPI.
Poor implementation of the aforementioned.
Other misc reasons.

I've pretty much never seen it work on any OS, anywhere.  And IMHO,
it's hopeless, if not a pain in the ass, to get vendor specific
specs for every machine out there, test all of them, etc.

-- 
Travers Buda

From: Stuart Henderson
Date: Thursday, November 1, 2007 - 4:58 pm

Sssh, don't tell my X40.

From: Pau Amaro-Seoane
Date: Thursday, November 1, 2007 - 5:12 pm

hehe...

yes... this is indeed the reason that makes me think about thinkpads
(up to T43p; from that model onwards, bye-bye, suspend)

I have the feeling that only thinkpads suspend under openbsd... of
course, some other models in the laptop page say the contrary... btw,
how old is that page? I submitted some entries some months ago and

From: Pau Amaro-Seoane
Date: Friday, November 2, 2007 - 3:04 am

It IS suspending

I was too impatient! it takes some seconds, whilst in the thinkpads is a
fraction of second, but it is suspending

N I C E

But it only suspends when I press fn + "moon" (which is F1)

anyway... good news, it seems

Pau

From: Pau Amaro-Seoane
Date: Friday, November 2, 2007 - 3:15 am

meeeeerda!

in the middle of writing an email the laptop powered off!

exactly the same behaviour I had when typing "zzz" or "apm -S"

??

I had to boot and, of course, the filesystem didn't like it at all...

I'm going to try to update the bios, but I am not very positive...



From: Pau Amaro-Seoane
Date: Friday, November 2, 2007 - 8:44 am

Conclusions:

I thought it could be the ati driver

First I tried to change it with the vesa one and it suspended very
quickly; only X was not displayed correctly. So that I thought I could
give X a chance to run "on the fly" (without xorg.conf) and

1- the laptop is suspending/ resuming "the old thinkpad way" (i.e. in
a fraction of a second)
2- X is looking just as good as when using xorg.conf + vesa driver
3- "But" there is still a random power-off

After some minutes the laptop decides to power-off; as fast as if it
had been plugged without battery and you pulled out the power cable.

sigh...

Pau

From: Soner Tari
Date: Wednesday, November 7, 2007 - 4:03 am

My situation is a bit different. Because it seems like apm -S just
blanks the screen, and pressing the power button shuts down the system
immediately (of course, I get fsck on bootup, etc).

If I enter apm -z, the system looks like really suspending, i.e. screen
blanks, the system spends some time and finally shuts itself down, and
power led starts to blink as it should (this sequence of events is
exactly the same on Windows or Linux on the same laptop).

But after that I cannot wake it up. Pressing the power button does not
do anything, nor do the other buttons. In fact, I have to unplug the
system to wake it up (my battery died years ago). And when it wakes up
it behaves like I did apm -S instead with blank screen, no boot-up bios
strings at all (thus, go to first paragraph to see what happens).

Since it seems like apm -z works during suspending (?), I am hopeful.
It's like while suspending the bios should be instructed as to which
button-press (or event) to wake up with. I don't know how apmd/apm
works/suspends, but can I fix this issue somehow? Any hope? I am willing
to test/implement.

Btw, halt -p works without powerdown hack in sysctl.conf, and apmd
otherwise seems to be running fine in cool running mode, it adjusts the
CPU speed according to load, etc. So I am really hopeful.

Here is my dmesg:

OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz ("GenuineIntel"
686-class) 1.80 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 535846912 (511MB)
avail mem = 510488576 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/15/02, BIOS32 rev. 0 @ 0xfd880,
SMBIOS rev. 2.31 @ 0xd8010 (37 entries)
bios0: vendor vpr Matrix, Inc. version "03AB" date 10/15/02XX
bios0: vpr Matrix, Inc. 120-180B5
apm0 at bios0: Power Management spec V1.2
apm0: AC ...
Previous thread: Re: Wireless problems. by David Walker on Thursday, November 1, 2007 - 3:15 pm. (2 messages)

Next thread: Re: [i386/Thinkpad T41]USB mouse + Xorg obsd 4.1 by Mark Thomas on Thursday, November 1, 2007 - 5:22 pm. (1 message)