|
List Info
Thread: acpi sleep state S3 (suspend to ram)
|
|
| acpi sleep state S3 (suspend to ram) |
  Canada |
2007-08-14 11:50:18 |
Hi everyone,
I just subscribed to the list, and would gladly search
through the
archives if nobody has a quick reply.
Basically, I would like to get ACPI sleep state (suspend to
ram) S3
working on my laptop.
I've tried messing with this for quite a long time. I think
I actually
had it running about a year ago, but then after some
upgrades I
accidentally overwrote a config file or something.
In spite of reading the howtos on the gentoo wiki and from
gentoo.org,
even using the default hibernate scripts and acpid, I still
have no
success.
My goal - to achieve an S3 sleep state when I close the lid
of my laptop
and to have it wake-up when I open the lid.
In no way am I a newbie to Gentoo and I would love to hear
some of the
nitty gritty technical details if any of you have them, so
that I can
keep everything in mind for the future.
My hardware is:
Manufacturer: 'Eurocom'
Model: M560A 'Divine'
CPU: Intel Pentium-M 800 MHz -1.73 GHz
ACPI information:
cat /proc/acpi/processor/CPU0/power
active state: C2
max_cstate: C8
Kernel:
2.6.21 (self-rolled)
I've had S3 (suspend-to-ram) and S4 (suspend-to-disk)
working in the
past. But it seemed to have taken weeks of messing around,
and I can't
afford that kind of time right now.
Video Card:
ATI Radeon X700 (PCIE)
============== Output of lspci ===============
00:00.0 Host bridge: Intel Corporation Mobile
915GM/PM/GMS/910GML
Express Processor to DRAM Controller (rev 04)
00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM
Express PCI
Express Root Port (rev 04)
00:1b.0 Audio device: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW
(ICH6
Family) PCI Express Port 1 (rev 04)
00:1d.0 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI
Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC
Interface
Bridge (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M)
SATA
Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6
Family)
SMBus Controller (rev 04)
01:00.0 VGA compatible controller: ATI Technologies Inc
Radeon Mobility
X700 (PCIE)
03:03.0 Network controller: Intel Corporation PRO/Wireless
2200BG
Network Connection (rev 05)
03:04.0 CardBus bridge: Texas Instruments PCIxx21/x515
Cardbus Controller
03:04.2 FireWire (IEEE 1394): Texas Instruments OHCI
Compliant IEEE 1394
Host Controller
03:04.3 Mass storage controller: Texas Instruments PCIxx21
Integrated
FlashMedia Controller
03:04.4 Class 0805: Texas Instruments
PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital
Controller
03:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8169
Gigabit Ethernet (rev 10)
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |

|
2007-08-14 11:59:02 |
2007/8/14, Christopher Friedt <cfriedt visible-assets.com>:
> Basically, I would like to get ACPI sleep state
(suspend to ram) S3
> working on my laptop.
>
> I've tried messing with this for quite a long time. I
think I actually
> had it running about a year ago, but then after some
upgrades I
> accidentally overwrote a config file or something.
I used to get S3 working fine in the past too and I'm
currently
experiencing issues with it (it sometimes hangs when
suspending,
sometimes hangs when resuming, sometimes works...). I didn't
search
yet for a resolution. I'm suspecting an upgrade, when I
switch from
2.6.18-suspend2 to 2.6.20-suspend2.
Is anyone else having such issues?
--
Camille Huot
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |

|
2007-08-14 12:06:05 |
On 8/14/07, Christopher Friedt <cfriedt visible-assets.com> wrote:
> Hi everyone,
> In spite of reading the howtos on the gentoo wiki and
from gentoo.org,
> even using the default hibernate scripts and acpid, I
still have no
> success.
>
> My goal - to achieve an S3 sleep state when I close the
lid of my laptop
> and to have it wake-up when I open the lid.
Hi,
when you manage to get Suspend to Ram (STR) working using
command
line, the rest is usually very easy. I'm using
hibernate-script, so it
is enough to run "hibernate-ram" and edit configs
at /etc. You of
course need a kernel compiled with appropriate options
"on" (I don't
have an access to it right now, but it is pretty obvious if
you look
for it).
For debugging, you may want to start with X server switched
off,
unplugged usb devices and (as much as you can) kernel
modules
unloaded. When you manage to get it working with everything
switched
off, you can than add services, modules etc. and to reveal
what (if
anything) is a problem.
The problem in my case was the ATI drivers, with very
unpredictable
behavior - one release was ok, the next one completely break
it. If
STR fails, it is most likely a driver or something. Using
latest
kernel helped. If you manage to find somebody with similar
hardware,
it also helps a lot - I have Thinkpad R60, so I'm not the
one.
As for the kernel version, I'm using 2.6.22
(suspend2-sources) and I
have seen significant improvement in reliability when
upgrading from
2.6.21 and 2.6.20, so you may also consider it.
Most importantly, give it a try and if it does not work,
report what, when etc.
Best regards and good luck
Jan
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |

|
2007-08-14 12:21:03 |
|
for me the s3 never worked, until 2.6.22-r1. currently im using it a lot when i'm around and have to move quickly from one place to another and it works quite well. the only problem is that networkmanager cannot be stopped during shutdown, but it has to be closed manually.
that said, i'm not using intel hw, and i don't have any error or warning from dsdt recompilation (according to this guide http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems
) i don't know if it is related but give it a try. you never know. as for ati-drivers, i'm always using the last one (currently 39.4) and i'll switch to 8.40.4 as soon as the recall will be out. as for ati users which want to stay tuned about ati-drivers updates this is what the new release contains:
http://www.phoronix.com/scan.php?page=article&item=804&num=1
2007/8/14, Jan Myslivecek <
myslivec gmail.com">myslivec gmail.com>:On 8/14/07, Christopher Friedt <
cfriedt visible-assets.com">cfriedt visible-assets.com> wrote: > Hi everyone, > In spite of reading the howtos on the gentoo wiki and from gentoo.org,
> even using the default hibernate scripts and acpid, I still have no > success. > > My goal - to achieve an S3 sleep state when I close the lid of my laptop > and to have it wake-up when I open the lid.
Hi, when you manage to get Suspend to Ram (STR) working using command line, the rest is usually very easy. I'm using hibernate-script, so it is enough to run "hibernate-ram" and edit configs at /etc. You of
course need a kernel compiled with appropriate options "on" (I don't have an access to it right now, but it is pretty obvious if you look for it). For debugging, you may want to start with X server switched off,
unplugged usb devices and (as much as you can) kernel modules unloaded. When you manage to get it working with everything switched off, you can than add services, modules etc. and to reveal what (if anything) is a problem.
The problem in my case was the ATI drivers, with very unpredictable behavior - one release was ok, the next one completely break it. If STR fails, it is most likely a driver or something. Using latest kernel helped. If you manage to find somebody with similar hardware,
it also helps a lot - I have Thinkpad R60, so I'm not the one. As for the kernel version, I'm using 2.6.22 (suspend2-sources) and I have seen significant improvement in reliability when upgrading from
2.6.21 and 2.6.20, so you may also consider it. Most importantly, give it a try and if it does not work, report what, when etc. Best regards and good luck Jan -- gentoo-laptop gentoo.org">gentoo-laptop gentoo.org
mailing list
-- dott. ing. beso
|
| Re: acpi sleep state S3 (suspend to
ram) |
  United States |
2007-08-14 13:28:04 |
On Tue, 2007-08-14 at 12:50 -0400, Christopher Friedt
wrote:
> Hi everyone,
>
> I just subscribed to the list, and would gladly search
through the
> archives if nobody has a quick reply.
>
> Basically, I would like to get ACPI sleep state
(suspend to ram) S3
> working on my laptop.
>
> I've tried messing with this for quite a long time. I
think I actually
> had it running about a year ago, but then after some
upgrades I
> accidentally overwrote a config file or something.
>
> In spite of reading the howtos on the gentoo wiki and
from gentoo.org,
> even using the default hibernate scripts and acpid, I
still have no
> success.
>
> My goal - to achieve an S3 sleep state when I close the
lid of my laptop
> and to have it wake-up when I open the lid.
>
> In no way am I a newbie to Gentoo and I would love to
hear some of the
> nitty gritty technical details if any of you have them,
so that I can
> keep everything in mind for the future.
>
>
> My hardware is:
>
> Manufacturer: 'Eurocom'
> Model: M560A 'Divine'
> CPU: Intel Pentium-M 800 MHz -1.73 GHz
>
> ACPI information:
> cat /proc/acpi/processor/CPU0/power
> active state: C2
> max_cstate: C8
>
> Kernel:
> 2.6.21 (self-rolled)
>
> I've had S3 (suspend-to-ram) and S4 (suspend-to-disk)
working in the
> past. But it seemed to have taken weeks of messing
around, and I can't
> afford that kind of time right now.
>
> Video Card:
> ATI Radeon X700 (PCIE)
>
> ============== Output of lspci ===============
> 00:00.0 Host bridge: Intel Corporation Mobile
915GM/PM/GMS/910GML
> Express Processor to DRAM Controller (rev 04)
> 00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM
Express PCI
> Express Root Port (rev 04)
> 00:1b.0 Audio device: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) High Definition Audio Controller (rev 04)
> 00:1c.0 PCI bridge: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) PCI Express Port 1 (rev 04)
> 00:1d.0 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) USB UHCI #1 (rev 04)
> 00:1d.1 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) USB UHCI #2 (rev 04)
> 00:1d.2 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) USB UHCI #3 (rev 04)
> 00:1d.3 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) USB UHCI #4 (rev 04)
> 00:1d.7 USB Controller: Intel Corporation
82801FB/FBM/FR/FW/FRW (ICH6
> Family) USB2 EHCI Controller (rev 04)
> 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI
Bridge (rev d4)
> 00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M)
LPC Interface
> Bridge (rev 04)
> 00:1f.2 IDE interface: Intel Corporation 82801FBM
(ICH6M) SATA
> Controller (rev 04)
> 00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW
(ICH6 Family)
> SMBus Controller (rev 04)
> 01:00.0 VGA compatible controller: ATI Technologies Inc
Radeon Mobility
> X700 (PCIE)
> 03:03.0 Network controller: Intel Corporation
PRO/Wireless 2200BG
> Network Connection (rev 05)
> 03:04.0 CardBus bridge: Texas Instruments PCIxx21/x515
Cardbus Controller
> 03:04.2 FireWire (IEEE 1394): Texas Instruments OHCI
Compliant IEEE 1394
> Host Controller
> 03:04.3 Mass storage controller: Texas Instruments
PCIxx21 Integrated
> FlashMedia Controller
> 03:04.4 Class 0805: Texas Instruments
> PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure
Digital Controller
> 03:05.0 Ethernet controller: Realtek Semiconductor Co.,
Ltd. RTL-8169
> Gigabit Ethernet (rev 10)
I use a Thinkpad T41 and T43. I have been through this for
months and
never got it to work. I have been at it for more than a
year.
My experience is... Forget it, it does not work! I do not
use it at all
and simply shut down when not in use! Much easier, and less
power
consumption!
rick
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |
  Canada |
2007-08-15 07:53:56 |
Jan Myslivecek wrote:
> The problem in my case was the ATI drivers, with very
unpredictable
> behavior - one release was ok, the next one completely
break it. If
> STR fails, it is most likely a driver or something.
I think that's my problem, S3 works when it suspends, but
then when I
resume all that I get is a blank screen, and I"m also
using
ati-drivers-8.39.4 and the linux kernel 2.6.21.6.
I remember in the past differing versions of the ATI drivers
would
completely break the software suspend.
Would you mind posting your /etc/hibernate-ram.conf ? Which
ATI card do
you have?
Many thanks,
Chris
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |

|
2007-08-15 08:03:28 |
Take a look at s2ram program. It implements many tricks for
resuming
correctly on different hardware configurations.
Use CVS version as it is more featured.
2007/8/15, Christopher Friedt <cfriedt visible-assets.com>:
> Jan Myslivecek wrote:
> > The problem in my case was the ATI drivers, with
very unpredictable
> > behavior - one release was ok, the next one
completely break it. If
> > STR fails, it is most likely a driver or
something.
>
> I think that's my problem, S3 works when it suspends,
but then when I
> resume all that I get is a blank screen, and I"m
also using
> ati-drivers-8.39.4 and the linux kernel 2.6.21.6.
>
> I remember in the past differing versions of the ATI
drivers would
> completely break the software suspend.
>
> Would you mind posting your /etc/hibernate-ram.conf ?
Which ATI card do
> you have?
>
> Many thanks,
>
> Chris
> --
> gentoo-laptop gentoo.org mailing list
>
>
--
-wbr,
Andrey Melentyev
+7 904 644 91 66
andrey.melentyev gmail.com
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |
  Canada |
2007-08-15 08:26:31 |
Rick Bragg wrote:
> I use a Thinkpad T41 and T43. I have been through this
for months and
> never got it to work. I have been at it for more than a
year.
I had it working for a while, but it is sadly _such_ a pain
to get the
configuration right, especially for people with drivers that
aren't
properly implementing power management.
>
> My experience is... Forget it, it does not work! I do
not use it at all
> and simply shut down when not in use! Much easier, and
less power
> consumption!
I'm not sure if that's actually true, but I suppose it
depends on the
length of time the machine is left asleep.
A laptop can use approximately 1 A during boot sequences,
but when in S3
it only uses about 25 mA, which is 1/40th of the power
consumption.
i1 * t1 == i2 * t2
would sufficiently describe the threshold, when acpi s3
begins to take
more current than just shutting down, where t1 is the time
required to
shut down and restart all services, desktop, applications,
etc. until
you are at the same state when you left off. i1 is 1A, i2 is
~25mA and
t2 is the amount of time you leave the laptop
suspended-to-ram.
As an example, if your laptop required 5 minutes to
shutdown, restart,
start your desktop and whatever applications you were
running, then if
you left your laptop asleep for t2 = 1/0.025 * 300s == 12000
s == 3.3 h
you would start using more power than shutting it down and
starting it
up again.
Bottom line is, though, that S3 is just more convenient
~/Chris
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |
  United States |
2007-08-15 09:03:08 |
On Wed, 2007-08-15 at 09:26 -0400, Christopher Friedt
wrote:
> Rick Bragg wrote:
> > I use a Thinkpad T41 and T43. I have been through
this for months and
> > never got it to work. I have been at it for more
than a year.
>
> I had it working for a while, but it is sadly _such_ a
pain to get the
> configuration right, especially for people with drivers
that aren't
> properly implementing power management.
>
> >
> > My experience is... Forget it, it does not work! I
do not use it at all
> > and simply shut down when not in use! Much
easier, and less power
> > consumption!
>
> I'm not sure if that's actually true, but I suppose it
depends on the
> length of time the machine is left asleep.
>
> A laptop can use approximately 1 A during boot
sequences, but when in S3
> it only uses about 25 mA, which is 1/40th of the power
consumption.
>
> i1 * t1 == i2 * t2
>
> would sufficiently describe the threshold, when acpi s3
begins to take
> more current than just shutting down, where t1 is the
time required to
> shut down and restart all services, desktop,
applications, etc. until
> you are at the same state when you left off. i1 is 1A,
i2 is ~25mA and
> t2 is the amount of time you leave the laptop
suspended-to-ram.
>
> As an example, if your laptop required 5 minutes to
shutdown, restart,
> start your desktop and whatever applications you were
running, then if
> you left your laptop asleep for t2 = 1/0.025 * 300s ==
12000 s == 3.3 h
> you would start using more power than shutting it down
and starting it
> up again.
>
> Bottom line is, though, that S3 is just more convenient
>
> ~/Chris
True. In the future, I would REALLY like to get it working!
I wanted
to roll out a "line" of linux thinkpads with my
custom Gentoo setup on
them. I have alot of really great stuff that I should be
able to
"ghost" including Blender, Kino, Audacity,
Scribus, Gimp, Kstars, Gnome,
Wifi, IRC, etc... I have a few set up already and it is
fairly easy to
copy onto new laptops. I would really need ACPI to work
right in order
to market it as a real solution though.
rick
--
gentoo-laptop gentoo.org mailing list
|
|
| Re: acpi sleep state S3 (suspend to
ram) |
  Canada |
2007-08-15 09:22:28 |
Rick Bragg wrote:
> True. In the future, I would REALLY like to get it
working! I wanted
> to roll out a "line" of linux thinkpads with
my custom Gentoo setup on
> them. I have alot of really great stuff that I should
be able to
> "ghost" including Blender, Kino, Audacity,
Scribus, Gimp, Kstars, Gnome,
> Wifi, IRC, etc... I have a few set up already and it is
fairly easy to
> copy onto new laptops. I would really need ACPI to
work right in order
> to market it as a real solution though.
Aside from maybe Ubuntu (not true in a couple of cases), I
have never
seen a distro that 'just works' out of the box, so if you
could cover
that market, more power to you
... sigh, I think I might eventually buy a macbook just for
the battery
life.
~/Chris
--
gentoo-laptop gentoo.org mailing list
|
|
|
|