public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Seyfried <seife@suse.de>
To: Miroslav Ruda <ruda@ics.muni.cz>
Cc: suspend-devel List <suspend-devel@lists.sourceforge.net>,
	linux-acpi@vger.kernel.org
Subject: Re: suspend to RAM on lifebook 7110
Date: Mon, 18 Dec 2006 07:51:36 +0100	[thread overview]
Message-ID: <20061218065136.GG26170@suse.de> (raw)
In-Reply-To: <20061208211308.GA5157@erebor.ics.muni.cz>

On Fri, Dec 08, 2006 at 10:13:08PM +0100, Miroslav Ruda wrote:
> On Fri, Dec 08, 2006 at 01:33:58PM +0100, Frank Ursel wrote:
> > Before i actually suspend the notebook, i write some data about the
> > graphic card on disk and on resume the data is written back to the
> > graphic card and everything works fine (I'm writing only the relevant
> > parts in here):
> > 
> >  # discover video card's ID
> >  ID=`lspci | grep VGA | awk '{ print $1 }' | sed -e 's@0000:@@' -e 's@:@/@'`
> > 
> >  # dump current data from the video card to the temporary file
> >  cat /proc/bus/pci/$ID > $TMP_FILE
> > 
> >  # suspend
> >  echo -n mem > /sys/power/state
> > 
> >  # restore video card data from the temporary file
> >  # on resume
> >  cat $TMP_FILE > /proc/bus/pci/$ID
> 
> Great, it works for me too.

OK. This is probably the same as the R50e entry in the whitelist:
        /* R50e needs not yet implemented save_video_pci_state :-(

I thought that this should somehow go away by the PCI bus suspend/resume
methods that somewhen back got merged by Greg K-H.
I still think that this belongs in the kernel and that we should not work
around this issue in s2ram. But maybe somebody who knows more about this
stuff can convince me otherwise. It should not be too hard :-)

> > Note: This works fine for me in a script, which is invoked by acpi on
> >       button-press. I'm using Debian/SID and i don't know where the right
> >       place for manipulation on Suse is. Maybe you need to tweek a bit
> 
> Just for record (or others with the same problem :-), I'm using hibernate 
> script from swsusp2 and there I was able to use
> OnSuspend 80 /etc/hibernate/video.sh store
> OnResume 80 /etc/hibernate/video.sh restore
> into /etc/hibernate/ususpend-ram.conf script.
> 
> Or on Suse 10.2, pm-utils are used by default and it's easy to add call to 
> this script to /etc/pm/hooks/ directory.

Yes, that's how it was intended to be. Easy and straightforward :-)

Best regards,

     Stefan

-- 
Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg  | "Well, surrounding them's out." 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  reply	other threads:[~2006-12-18  6:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-08 12:33 suspend to RAM on lifebook 7110 Frank Ursel
2006-12-08 21:13 ` Miroslav Ruda
2006-12-18  6:51   ` Stefan Seyfried [this message]
2006-12-18 11:11     ` Matthew Garrett
2006-12-18 11:29       ` Stefan Seyfried
2006-12-18 12:05         ` Matthew Garrett
2006-12-18 17:48           ` Stefan Seyfried
2006-12-18 20:00             ` Rafael J. Wysocki
2006-12-18 12:16         ` Pavel Machek
2006-12-18 15:55           ` Rafael J. Wysocki
  -- strict thread matches above, loose matches on Subject: below --
2006-12-07 22:18 Miroslav Ruda
2006-12-18  6:38 ` Stefan Seyfried
2006-12-18  9:30   ` Frank Ursel
2006-12-18 16:53   ` Miroslav Ruda

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=20061218065136.GG26170@suse.de \
    --to=seife@suse.de \
    --cc=linux-acpi@vger.kernel.org \
    --cc=ruda@ics.muni.cz \
    --cc=suspend-devel@lists.sourceforge.net \
    /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