You are not logged in.

#1 2008-08-17 17:50:47

forlack
Member
Registered: 2008-08-02
Posts: 12

Lets speed up resume from sleep

So I am a laptop user and most everything works, but suspend(I rarely power down) is a little slow, or should I say resuming from suspend.  I counted it to be around 20-25s to come up.  I did some poking around and started editing some of my suspend scripts in /usr/lib/pm-utils/sleep.d.  I removed the suspend resume network manager because I use Arch Assistant and netcfg2.  That didn't seem to make a real difference (maybe a second).  The next thing I changed was the netcfg script.  I changed the netcfg2 all-resume/resume to run in the background via a & at the end and that seemed to make a big difference.  Suspend was a few seconds faster and resume now took around 10s.  So the question I have for all of you experts is what other scripts can be tweaked or added to the background to speed up the resume process?  By the way my network has seemed to work just fine and I can ping addresses as soon as the system awakes.

Lets see if we can get arch to resume in 2 seconds!  If it can already enlighten me please.

Offline

#2 2008-08-17 18:17:49

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Lets speed up resume from sleep

You can do a little test... Issue:

echo "mem" > /sys/power/state

as root.  That will send your computer to sleep without running any scripts on suspend/resume.  Time how long it takes to resume from sleep.  There is a chance that the system will not resume properly, since that method uses no hardware specific quirks, so be warned, but it should give you an idea of how fast it can be made to work or, in other words, what the hardware/kernel limitations are.

10 seconds sounds about right, by the way.  2 seconds?  No way!

Offline

#3 2008-08-17 19:10:56

forlack
Member
Registered: 2008-08-02
Posts: 12

Re: Lets speed up resume from sleep

Thanks fwojciec.  I ran that and I get about the same resume time.  I guess I'll have to wait for some more kernel/pm-utils updates before I can get to the 2's haha.

Offline

Board footer

Powered by FluxBB