* Sleep button events on Compaq Evo.
@ 2003-07-30 15:41 root
0 siblings, 0 replies; 2+ messages in thread
From: root @ 2003-07-30 15:41 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Sleep button events on Compaq Evo.
@ 2003-07-30 15:45 root
0 siblings, 0 replies; 2+ messages in thread
From: root @ 2003-07-30 15:45 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
I was just trying to get my sleep button to work, not that swsusp has
gone gold. I've got three buttons, which are 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)
Which seems to indicate fixed-featue buttons. 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:(. Note, though, I've yet to see any docs of how to
setup acpid, so I'm just assuming this is right.
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)
}
}
}
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 indeed 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-30 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-30 15:45 Sleep button events on Compaq Evo root
-- strict thread matches above, loose matches on Subject: below --
2003-07-30 15:41 root
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox