public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mikael Nilsson <mini-2VlUfDpRm2MwFerOooGFRg@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Double button events?
Date: Wed, 13 Apr 2005 14:39:48 +0200	[thread overview]
Message-ID: <425D1314.1090805@nada.kth.se> (raw)

[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]

Hi!

I've just gotten ACPI suspend-to-mem to work on my Dell Inspiron 8200,
using kernel 2.6.11. I'm actually very happy about it, because I've been
stuck on 2.4 until yesterday :-D

One confusing thing is a "double event" from acpi when I press the
suspend button (Fn+Esc).

  [Wed Apr 13 12:49:19 2005] received event "button/sleep SBTN 00000080
000000c6"
[Wed Apr 13 12:49:19 2005] notifying client 9917[1000:1000]
[Wed Apr 13 12:49:19 2005] executing action
"/etc/acpi/actions/sleepbtn.sh button/sleep SBTN 00000080 000000c6"[Wed
Apr 13 12:49:19 2005] BEGIN HANDLER MESSAGES
[Wed Apr 13 13:49:25 2005] END HANDLER MESSAGES
[Wed Apr 13 13:49:25 2005] action exited with status 0
[Wed Apr 13 13:49:25 2005] completed event "button/sleep SBTN 00000080
000000c6"
[Wed Apr 13 13:49:25 2005] received event "button/sleep SBTN 00000080
000000c7"
[Wed Apr 13 13:49:25 2005] notifying client 9917[1000:1000]
[Wed Apr 13 13:49:25 2005] executing action
"/etc/acpi/actions/sleepbtn.sh button/sleep SBTN 00000080 000000c7"[Wed
Apr 13 13:49:25 2005] BEGIN HANDLER MESSAGES
[Wed Apr 13 13:49:25 2005] END HANDLER MESSAGES
[Wed Apr 13 13:49:25 2005] action exited with status 0
[Wed Apr 13 13:49:25 2005] completed event "button/sleep SBTN 00000080
000000c7"

The result is a suspend immediately after resuming. I've solved it 
temporarily by putting:

seqno=$4
parity=`(echo "ibase=16"; echo -n $seqno |\
            tr '[a-z]' '[A-Z]'; echo " % 2")|bc`

if [ $parity = 0 ]; then

   # Do it!
   echo mem > /sys/power/state
fi

in my sleepbtn.sh, but it's such a hack :-) Something must be doing 
something wrong, right? Is this a kernel bug, BIOS bug or what? I'd love 
to see a better solution.

/Mikael

-- 
Plus ça change, plus c'est la même chose


[-- Attachment #2: mini.vcf --]
[-- Type: text/x-vcard, Size: 272 bytes --]

begin:vcard
fn:Mikael Nilsson
n:Nilsson;Mikael
org:Royal Institute of technology;KMR group, NADA
adr;dom:;;;Stockholm
email;internet:mini-2VlUfDpRm2MwFerOooGFRg@public.gmane.org
tel;work:+46 8 7906896
x-mozilla-html:FALSE
url:http://kmr.nada.kth.se
version:2.1
end:vcard


                 reply	other threads:[~2005-04-13 12:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=425D1314.1090805@nada.kth.se \
    --to=mini-2vlufdprm2mwferooogfrg@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