Skip to Content.
Sympa Menu

sm-discuss - RE: [SM-Discuss] acpi, sleep

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "David Kowis" <dkowis AT shlrm.org>
  • To: "'Bas van Gils'" <Bas.vanGils AT cs.kun.nl>, "'Discuss-list'" <sm-discuss AT lists.ibiblio.org>
  • Cc:
  • Subject: RE: [SM-Discuss] acpi, sleep
  • Date: Fri, 4 Jun 2004 12:03:20 -0500

> -----Original Message-----
> From: sm-discuss-bounces AT lists.ibiblio.org
> [mailto:sm-discuss-bounces AT lists.ibiblio.org] On Behalf Of
> Bas van Gils
> Sent: Friday, June 04, 2004 4:53 AM
> To: Discuss-list
> Subject: [SM-Discuss] acpi, sleep
>
>
> Hi all,
>
> I decided to play a little with ACPI today. I read several
> docs on the web
> about it... but I can't seem to get it right. Here's what I did:
>
> - recompile 2.6.6 kernel with acpi and the acpi patch
> - cast acpid
>
> After reboot, acpi seems to work fine... At least, I think so:
>
> root@gaspode:~# cat /proc/acpi/battery/BAT1/state
> present: yes
> capacity state: ok
> charging state: charged
> present rate: 0 mA
> remaining capacity: 6450 mAh
> present voltage: 11100 mV
>
> root@gaspode:~# cat /proc/acpi/button/power/PWRF/info
> type: Power Button (FF)
>
>
> Now, what I really want is that my laptop "goes to sleep"
> when I hit the power
> button. The relevant info is:
>
> root@gaspode:~# cat /proc/acpi/sleep
> S0 S3 S4 S5
>
> I think I should modify "/etc/acpi/default.sh" in some way...
> but I'm not sure
> how. Any help is greatly appreciated...

I know on my laptop
echo 4 > /proc/acpi/sleep

Makes it go into hibernate mode. Hibernate mode requires the suspend to disk
options being enabled. Standby (Mode 3) doesn't.
I'll try to appear on #sourcemage and I can help more. It's a touchy thing.
Linux suspend works well on some hardware and on others it doesn't. You have
to expirement. But be warned, you will probably crash the computer more than
once.

You should appear on #sourcemage and I can help you with it.

>
> Cheers
>
> Bas
>
> --
> drs. Bas van Gils <Bas.vanGils AT cs.kun.nl> |
> /(bb|[^b]{2})/
> http://www.cs.kun.nl/~basvg |
> that's the question
> PGP = 3805 664A F24E 90D5 6A77 C624 E13D 0440 2768 A493 |
>





Archive powered by MHonArc 2.6.24.

Top of Page