From: Russell Neches <russell-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: bug in acpid scripts
Date: Fri, 23 Jul 2004 15:36:58 -0400 [thread overview]
Message-ID: <20040723193658.GA3331@omocha.vort.org> (raw)
I've assumed that the S3 sleep state was broken on my laptop for some
time now, but it turns out that the problem was cased by the behavior of
the distributed powerbtn.sh script. Or, at least, that's where the bug
manifests itself.
My system always enters S3 without complaining, and resumes without
complaining. Then it immediately begins a clean shutdown. I had assumed
this was caused by general S3 breakage, but the problem is actually
caused by acpid catching the power button event that triggered the
system to resume. It then dutifully calls powerbtn.sh, and the system
shuts down.
Tossing an "exit" at the beginning of powerbtn.sh fixes the problem
(with an obvious trade-ff), and my laptop suspends and resumes
perfectly. Well, almost perfectly -- I have to unload ohci_hcd before
shutting down, and I have to figure out how to get wireless working
after resume, but those are separate issues.
Is there a sensible way to tell if the system is coming off of S3? I
imagine I could do something like this to get into S3;
#!/bin/sh
touch /tmp/S3.ignore.powerbtn
echo 3 > /proc/acpi/sleep
sleep 10
rm /tmp/S3.ignore.powerbtn
and then add this to the beginning of powerbtn.sh;
if [ -e /tmp/S3.ignore.powerbtn ]; then
exit
fi
but that just seems dumb. Any better ideas?
Russell
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
next reply other threads:[~2004-07-23 19:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-23 19:36 Russell Neches [this message]
[not found] ` <20040723193658.GA3331-5z3TbH0F9hyr8sbHwu5NIg@public.gmane.org>
2004-07-23 20:39 ` bug in acpid scripts Vernon Mauery
[not found] ` <1090615197.9015.7.camel-DNmeG3802II@public.gmane.org>
2004-07-23 23:34 ` Russell Neches
2004-07-24 12:50 ` Matthew Garrett
[not found] ` <1090673420.4412.14.camel-myFlNLNQP+Q@public.gmane.org>
2004-07-24 13:51 ` Mattia Dongili
[not found] ` <20040724135111.GC2328-MEqNC12sBsHxa7XIdbXXog@public.gmane.org>
2004-07-24 14:40 ` Luca Capello
2004-08-11 13:40 ` Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2004-07-24 13:23 Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F03665E4F-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-07-25 1:42 ` Russell Neches
2004-08-12 7:07 Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F038AD732-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-13 0:24 ` Nathan Bryant
2004-08-13 6:18 ` Stefan Seyfried
2004-08-13 0:52 Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F038ADB3E-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-13 0:55 ` Nathan Bryant
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=20040723193658.GA3331@omocha.vort.org \
--to=russell-1vnkwvzi4qavc3sceru5cw@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