public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Daniele Boffi <boffi-piYtxHxN1XRAly3Pu9w1wA@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Re: [Swsusp-devel] swsusp and ac status
Date: Wed, 30 Jun 2004 21:40:13 +0200	[thread overview]
Message-ID: <20040630194013.GD12631@elf.ucw.cz> (raw)
In-Reply-To: <200406301539.i5UFdUWt011300-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>

Hi!

> > This is known, and can be properly fixed by entering S4 (not S5;
> > during swsusp. Some more hacky solutions are available, too.
> > Get 2.6.7-vanilla and ask me for testing patch... 
> 
> Yes, please. I find swsusp2 more reliable than pm-suspend and would 
> like to have it work correctly.

Here it is. Its for swsusp1, you'll have to port it to swsusp2
yourself. And its little... "interesting".
							Pavel

Index: linux/kernel/power/swsusp.c
===================================================================
--- linux.orig/kernel/power/swsusp.c	2004-06-22 12:53:19.000000000 +0200
+++ linux/kernel/power/swsusp.c	2004-06-27 18:25:28.000000000 +0200
@@ -750,6 +759,11 @@
 	update_screen(fg_console);
 	release_console_sem();
 #endif
+
+#ifdef CONFIG_ACPI_SLEEP
+	acpi_leave_sleep_state(5);	/* This is "interesting". We need to call _WAK due to HP nx5000,
+					   but we really should make this normal S4 support. */
+#endif
 }
 
 /* do_magic() is implemented in arch/?/kernel/suspend_asm.S, and basically does:



-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com

  parent reply	other threads:[~2004-06-30 19:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mhf@linuxmail.org>
     [not found] ` <mhf-jjFNsPSvq+iXDw4h08c5KA@public.gmane.org>
     [not found]   ` <opr93r8ap24evsfm-TBR8pM7LtsqkE96DxU8f+dAkNl5+tjhE@public.gmane.org>
2004-06-24 15:13     ` [Swsusp-devel] swsusp and ac status Daniele Boffi
     [not found]       ` <200406241513.i5OFDpKC003189-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2004-06-24 17:26         ` Michael Frank
2004-06-28 20:25         ` Pavel Machek
     [not found]           ` <200406301539.i5UFdUWt011300@fermat.unipv.it>
     [not found]             ` <200406301539.i5UFdUWt011300-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2004-06-30 19:40               ` Pavel Machek [this message]
     [not found] ` <opr93z2ex34evsfm-TBR8pM7LtsqkE96DxU8f+dAkNl5+tjhE@public.gmane.org>
2004-06-25  7:01   ` Daniele Boffi
     [not found]     ` <200406250701.i5P71GKC006204-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2004-06-25  9:21       ` Nigel Cunningham
2004-06-25 11:29       ` Michael Frank
2004-06-25 23:21   ` Micha Feigin
     [not found] ` <opr95d71ln4evsfm-TBR8pM7LtsqkE96DxU8f+dAkNl5+tjhE@public.gmane.org>
2004-06-25 12:09   ` Daniele Boffi
2004-06-25 15:14   ` Stefan Seyfried
     [not found]     ` <20040625151421.GA8852-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2004-06-30  0:33       ` Micha Feigin
2004-06-27 22:28   ` Re: [Swsusp-devel] " Karol Kozimor
     [not found]     ` <20040627222842.GB1816-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2004-06-28  0:13       ` Michael Frank
     [not found]         ` <opr992vyyr4evsfm-TBR8pM7LtsqkE96DxU8f+dAkNl5+tjhE@public.gmane.org>
2004-06-28  0:50           ` Michael Frank
     [not found]             ` <opr994muhg4evsfm-TBR8pM7LtsqkE96DxU8f+dAkNl5+tjhE@public.gmane.org>
2004-06-28  5:27               ` Karol Kozimor
     [not found]                 ` <20040628052704.GA24842-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2004-06-28 10:03                   ` Michael Frank
2004-06-28 20:29         ` [ACPI] " Pavel Machek
     [not found] <200406241233.i5OCXiKC002386@fermat.unipv.it>
     [not found] ` <200406241233.i5OCXiKC002386-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2004-06-24 14:37   ` [Swsusp-devel] " Michael Frank

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=20040630194013.GD12631@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=boffi-piYtxHxN1XRAly3Pu9w1wA@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