Skip to contentSkip to conversation

Sleep button events on Compaq Evo.

DISCUSSION root 1 participant 1 message Jul 30, 2003 ACPI

lore
Share & tools
lore

root

author
#0 lore 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