From: "P. Christeas" <p_christ-U04EIuiosng@public.gmane.org>
To: Knut Neumann
<knut.neumann-4bfl1RV3iZDOEhgYWvzSCYQuADTiUCJX@public.gmane.org>,
"Grover,
Andrew" <andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Sleeping pills for the 2.5.39 Insomnia ..
Date: Mon, 30 Sep 2002 19:32:16 +0300 [thread overview]
Message-ID: <200209301932.16677.p_christ@hol.gr> (raw)
In-Reply-To: <1033400645.7338.17.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 573 bytes --]
> Since software_suspend() gets called from there and IIRC thats not part
> of the acpi subsytem I wonder why S4 would not work in case state is
> correctly set there...
>
> Anyway, thats only a quick shot assumption so do not flame in case
> I am plain wrong ;)
>
I already solved the bug. Don't try any more..
To A.Grover: please apply the patch (or just the '!' yourself).
I'd like the two extra messages to be always logged. It's your call to keep
them.
Can you give me a one-line explanation for those messages I get with S4? Is
the S1 warning of any importance?
[-- Attachment #2: sleep.diff --]
[-- Type: text/x-diff, Size: 1060 bytes --]
diff -bBaur ./drivers/acpi/sleep.c /usr/src/linux/drivers/acpi/sleep.c
--- ./drivers/acpi/sleep.c 2002-09-28 14:05:32.000000000 +0300
+++ /usr/src/linux/drivers/acpi/sleep.c 2002-09-30 19:11:58.000000000 +0300
@@ -329,8 +329,9 @@
state_string[count] = '\0';
state = simple_strtoul(state_string, NULL, 0);
+ printk(KERN_INFO PREFIX "sleep: S%d written\n", state);
- if (sleep_states[state])
+ if (!sleep_states[state])
return_VALUE(-ENODEV);
#ifdef CONFIG_SOFTWARE_SUSPEND
@@ -341,6 +342,8 @@
#endif
status = acpi_suspend(state);
+ printk(KERN_INFO PREFIX "sleep: S%d resumed w. status 0x%x\n", state, status);
+
if (ACPI_FAILURE(status))
return_VALUE(-ENODEV);
@@ -665,7 +668,7 @@
if (acpi_disabled)
return_VALUE(0);
- printk(KERN_INFO PREFIX "(supports");
+ printk(KERN_INFO PREFIX "Sleep supports");
for (i=0; i<ACPI_S_STATE_COUNT; i++) {
u8 type_a, type_b;
status = acpi_get_sleep_type_data(i, &type_a, &type_b);
@@ -674,7 +677,7 @@
printk(" S%d", i);
}
}
- printk(")\n");
+ printk("\n");
/* 'sleep' [R/W]*/
[-- Attachment #3: messages.bz2 --]
[-- Type: application/x-bzip2, Size: 609 bytes --]
prev parent reply other threads:[~2002-09-30 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-30 12:41 2.5.39 Insomniac, any first dbg? P. Christeas
[not found] ` <200209301541.47910.p_christ-U04EIuiosng@public.gmane.org>
2002-09-30 15:05 ` Knut Neumann
[not found] ` <1033398342.7338.5.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org>
2002-09-30 13:12 ` P. Christeas
[not found] ` <200209301612.28344.p_christ-U04EIuiosng@public.gmane.org>
2002-09-30 15:44 ` Knut Neumann
[not found] ` <1033400645.7338.17.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org>
2002-09-30 16:32 ` P. Christeas [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=200209301932.16677.p_christ@hol.gr \
--to=p_christ-u04eiuiosng@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=knut.neumann-4bfl1RV3iZDOEhgYWvzSCYQuADTiUCJX@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