From: Miroslav Ruda <ruda@ics.muni.cz>
To: linux-acpi@vger.kernel.org
Cc: seife@suse.de
Subject: Re: suspend to RAM on lifebook 7110
Date: Fri, 8 Dec 2006 22:13:08 +0100 [thread overview]
Message-ID: <20061208211308.GA5157@erebor.ics.muni.cz> (raw)
In-Reply-To: <20061208123358.GA3724@invalid.invalid>
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.
> 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.
Thanks for your help.
--
Mirek Ruda
next prev parent reply other threads:[~2006-12-08 21:13 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 [this message]
2006-12-18 6:51 ` Stefan Seyfried
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=20061208211308.GA5157@erebor.ics.muni.cz \
--to=ruda@ics.muni.cz \
--cc=linux-acpi@vger.kernel.org \
--cc=seife@suse.de \
/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