From: Giridhar Pemmasani <giri-IxWJ8JVbGpr5NRxSJurNR4dd74u8MsAO@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Resume from suspend-to-ram
Date: Fri, 20 Feb 2004 15:46:17 -0500 [thread overview]
Message-ID: <c15rn0$5bu$2@sea.gmane.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1854 bytes --]
I have already posted the following message to LKML. However, since there
was lot of discussion on this topic in this mailing list, I am posting here
too.
I have Dell Latitude D600 laptop with Radeon R250 Lf (Mobility 9000
M9) video card. I have been trying to get suspend-to-ram work with
this laptop since 2.5.70 or so. The problem almost always was that if
frame buffer (I have tried radeon and vesa) is used, resume won't
finish - it would hang right after pressing power button and if plain
console is used resume works fine, but the LCD stays off.
Since new radeonfb has suspend/resume driver model, I thought I might
give it a try, but still the laptop would hang during resume. With a
bit of trial and error (and some guess work), I got the laptop to
resume successfully with the following patch.
--- radeon_pm.c.orig 2004-02-20 15:11:18.000000000 -0500
+++ radeon_pm.c 2004-02-20 15:12:23.000000000 -0500
@@ -907,11 +907,13 @@
/* Restore display & engine */
radeonfb_set_par(info);
- fb_pan_display(info, &info->var);
- fb_set_cmap(&info->cmap, 1, info);
+ /* fb_pan_display(info, &info->var);
+ * fb_set_cmap(&info->cmap, 1, info);
+ */
/* Refresh */
- fb_set_suspend(info, 0);
+ /* fb_set_suspend(info, 0);
+ */
/* Unblank */
rinfo->lock_blank = 0;
Right now after resume, console still remains blank, but X restores
the screen properly. Note that since frame buffer is not restored
properly, the console is pretty much useless, but it is not a problem
for me as I use X all the time.
I have used this patch with kernel 2.6.3-mm2. I haven't tried 2.6.3,
but I think it may work with 2.6.3 too.
I am also attaching config.bz2 and /etc/acpi/sleep (the script used to
suspend the laptop).
I am not subscribed to LKML, so please CC me.
[-- Attachment #2: config.bz2 --]
[-- Type: application/x-bzip2, Size: 5471 bytes --]
[-- Attachment #3: sleep --]
[-- Type: application/x-shellscript, Size: 799 bytes --]
next reply other threads:[~2004-02-20 20:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-20 20:46 Giridhar Pemmasani [this message]
2004-02-23 7:00 ` Resume from suspend-to-ram (radeon) Len Brown
[not found] ` <1077519609.12675.63.camel-D2Zvc0uNKG8@public.gmane.org>
2004-02-23 7:42 ` Giridhar Pemmasani
[not found] ` <20040223074227.80AE57831D-Yo/1PYb2HdawRS80dfYGFoIJIQD0bWaD@public.gmane.org>
2004-03-31 12:44 ` Luca Capello
[not found] ` <406ABD4A.10408-wlebWZzHoyE@public.gmane.org>
2004-04-01 1:10 ` Nigel Cunningham
[not found] ` <1080781821.3066.5.camel-632l8fqo88ezhJTzJkPP2xCuuivNXqWP@public.gmane.org>
2004-04-01 4:04 ` Giridhar Pemmasani
[not found] ` <20040401040507.0AAC477A2B-Yo/1PYb2HdawRS80dfYGFoIJIQD0bWaD@public.gmane.org>
2004-04-01 6:03 ` Nigel Cunningham
2004-04-02 15:24 ` Stefan Dösinger
[not found] ` <200404021524.46611.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-04-20 10:17 ` Pavel Machek
[not found] ` <20040420101720.GA2314-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-04-23 12:08 ` Stefan Dösinger
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='c15rn0$5bu$2@sea.gmane.org' \
--to=giri-ixwj8jvbgpr5nrxsjurnr4dd74u8msao@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