public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Brouard Nicolas <nicolas.brouard-TDf4sKD1mxeHlu7OokbhRg@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Sonypi resuming nicely. Was "ACPI S4 suspend resuming instead of powering off"
Date: Sun, 07 Nov 2004 21:26:27 +0100	[thread overview]
Message-ID: <1099859187.2828.50.camel@localhost> (raw)
In-Reply-To: <1099593139.6265.17.camel@pichat>

Le jeudi 04 novembre 2004 à 19:32 +0100, Brouard Nicolas a écrit :
> Hi,
> 
> I have been using echo 4>/proc/acpi/sleep on kernel 2.6.8.1 successfully
> since some time now on my Sony Z1. 
> 
> The sonypi module has been patched recently (Dmitry Torokhov) and
> Stelian Pop) in order to suspend/resume correctly. I have been able to
> patch a kernel 2.6.8.1 with these patches (need kfifo and
> roundup_pow_of_two patches from 2.6.10). 
> 
> And suspending/resuming works well but it doesn't halt in between! It is
> only cycling.
> 
> In fact I discovered that the reason is elsewhere. Just at the same time
> I upgraded my system (Mandrake cooker uptodated 10.1) by using the 6 CD
> of the Mandrake 10.1 Official distribution. The upgrade was very quick
> because all of my rpms were already updated, but the upgrade added new
> services (Bluetooth) and modules and even other configuration which I
> don't know.
> 
> I had a list of former modules and removed the new modules (or
> daemon/services) added by the upgrade. But I am STILL cycling and don't
> know what to do.
> 
> With all of my tests or official kernel I am recycling.
> 
> Is there a parameter in /proc/acpi/??? which makes the cycling.
> 
> Any hint will be appreciated.


During the installation of Mandrake 10.1 Official, via the CD,
my /etc/lilo.conf has been changed and specifically the name of the swap partition.
If I set it back to the original partition name, it is suspending, halting and
resuming well.

It was formerly: swap=/dev/hda8 but it has been changed to
  swap=/dev/brouvg/swaplv 
which was a former swap partition within my "volume group" (LVM) and it is
not a good idea to have a logical volume for a swap. 

With this new sonypi module resuming nicely, ACPI/S4 is working
satisfactorily on my Sony Z1. Until this summer, it wasn't possible to
hope suspending to disk with S4, and there was more hope with swsusp2.
But since 2.6.8 and the inclusion of all your patches during the summer,
I am using S4 again. Evdev and psmouse which I need for my Alps touchpad
do not need to be unloaded before resuming with swsusp1 (it is still
required for swsusp2 I think). 

Thus, my suspend script concerns mostly the clock and usb modules only.
I am able to suspend from a replicator at work and to resume correctly
at home with another network (if I add eth0 to be restarted after
resuming).

Depending on the load, I am able to suspend in about 1 minute (up to
complete power off) and to resume in about the same amount of time.

By using this new sonypi module my gain is about 5 to 10 seconds (not
because of the module itself but because of the service sonyxosd which
needed some time to be reloaded). It is not a huge gain, but step by
step it is shortening the delay of suspending/resuming.

Thanks a lot to all the people who contributed to make
resuming/suspending working. 

Yes, suspend to RAM is not here for a Sony but it might come...

Cheers,

Nicolas Brouard


PS: If people are interested in running the new sonypi modules, Stelian
Pop/Dmitry Torokhov patches are already filed in 2.6.10.xx, but if you
need to use the 8 patches against a standard kernel like Mandrake 10.1
official (2.6.8.1) you need two additional patches, one for kfifo and
another for a macro "roundup_pow_of_two"; and you can find them at
http://sauvy.ined.fr/~brouard/sony/patches .

 
-- 
Brouard Nicolas <nicolas.brouard-TDf4sKD1mxeHlu7OokbhRg@public.gmane.org>



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click

      reply	other threads:[~2004-11-07 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-04 18:32 Sony Vaio ACPI S4 suspend resumes instead of power off Brouard Nicolas
2004-11-07 20:26 ` Brouard Nicolas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1099859187.2828.50.camel@localhost \
    --to=nicolas.brouard-tdf4skd1mxehlu7ookbhrg@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox