public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: root <chp802-8tGg7S+viayFxr2TtlUqVg@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Sleep button events on Compaq Evo.
Date: Wed, 30 Jul 2003 16:41:47 +0100	[thread overview]
Message-ID: <3F27E73B.8030707@bangor.ac.uk> (raw)

Hi,

I was just trying to get my sleep button to work, not that swsusp has 
gone gold. I've got three buttons, that is controlled by acpi; Sleep, 
Soft power and Lid. Kernel gives @ bootup;

ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (FF) [SLPF]
ACPI: Lid Switch [LID]
ACPI: Processor [CPU0] (supports C1 C2, 8 throttling states)
ACPI: Thermal Zone [THRM] (59 C)

I've set up acpid like this;

------
event=button/lid LID.*
action=logger ACPI lid %e
------
event=button/power PWRF.*
action=logger ACPI power %e
------
event=button/sleep SLPF.*
action=logger ACPI sleep %e
------

Which makes Lid and Soft Power worky, but, alas, Sleep is noworky. I get 
no events whatsoever:(
DSDT gives this;

Scope (_SB)
    {
        Device (SLPB)
        {
            Name (_HID, EisaId ("PNP0C0E"))
            Name (_PRW, Package (0x02)
            {
                0x01,
                0x03
            })
        }

        Device (PWRB)
        {
            Name (_HID, EisaId ("PNP0C0C"))
            Name (_PRW, Package (0x02)
            {
                0x01,
                0x04
            })
        }

        Device (LID)
        {
            Name (_HID, EisaId ("PNP0C0D"))
            Name (_PRW, Package (0x02)
            {
                0x01,
                0x03
            })
            Method (_LID, 0, NotSerialized)
            {
                If (\_SB.PCI0.ISA.EC.ECOK)
                {
                    If (\_SB.PCI0.ISA.EC.LIDS)
                    {
                        Return (0x00)
                    }
                    Else
                    {
                        Return (0x01)
                    }
                }
                Else
                {
                    Return (0x00)
                }
            }
        }


But I'm not sure where I go from here. Is this a bug, perhaps? I've 
tried to see if the buttons generate and scancodes, but they don't. So I 
assume they're controlled by acpi directly. Cheers,

/Chris



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

             reply	other threads:[~2003-07-30 15:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-30 15:41 root [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-30 15:45 Sleep button events on Compaq Evo root

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=3F27E73B.8030707@bangor.ac.uk \
    --to=chp802-8tgg7s+viayfxr2ttluqvg@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