* Using the SLPB button for MEM state (suspend to ram)
@ 2005-10-11 3:10 ` Petros Kolyvas
[not found] ` <BAYC1-PASMTP03F4CB11CD595EA2BC0C07D6780-NW7P6tAEKYY@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Petros Kolyvas @ 2005-10-11 3:10 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi folks,
I've been using ACPI4Linux's suspend to RAM for some time. Until a
recent reinstall of gentoo, I had been using the lid button (LID0), and
a script which polled its state (/proc/acpi/button/lid/LID0/state) and
consequently, depending on whether the lid was up or down, the laptop
would either come out of or go into the "mem" state.
Now the thing is that I've begun to use my laptop in the car quite a
bit; got myself an inverter and I keep it tucked under the front
passenger seat - anyway, the why and hows don't matter.
Basically I want to keep the screen down and keep the laptop powered
up... no problem... just remove the lid button acpi script. The thing is
that I would like to be able to put it into the "mem" state when I so
desire.
I noticed that the Sleep Button, (/proc/acpi/button/sleep/SLPB) is
present but that there is no state (/proc/acpi/button/sleep/SLPB/state)
to poll in a script and therefore I'm unsure if I can use the button at
all.
If anyone has any idea on how to possibly use this button, if it can be
used, or if there's a HOWTO out there that I missed, I'd greatly
appreciate it.
All the best for those celebrating Canadian thanksgiving.
Pk
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
^ permalink raw reply [flat|nested] 3+ messages in thread* Using the SLPB button for MEM state (suspend to ram)
@ 2005-10-11 3:10 ` Petros Kolyvas
[not found] ` <BAYC1-PASMTP03F4CB11CD595EA2BC0C07D6780-NW7P6tAEKYY@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Petros Kolyvas @ 2005-10-11 3:10 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi folks,
I've been using ACPI4Linux's suspend to RAM for some time. Until a
recent reinstall of gentoo, I had been using the lid button (LID0), and
a script which polled its state (/proc/acpi/button/lid/LID0/state) and
consequently, depending on whether the lid was up or down, the laptop
would either come out of or go into the "mem" state.
Now the thing is that I've begun to use my laptop in the car quite a
bit; got myself an inverter and I keep it tucked under the front
passenger seat - anyway, the why and hows don't matter.
Basically I want to keep the screen down and keep the laptop powered
up... no problem... just remove the lid button acpi script. The thing is
that I would like to be able to put it into the "mem" state when I so
desire.
I noticed that the Sleep Button, (/proc/acpi/button/sleep/SLPB) is
present but that there is no state (/proc/acpi/button/sleep/SLPB/state)
to poll in a script and therefore I'm unsure if I can use the button at
all.
If anyone has any idea on how to possibly use this button, if it can be
used, or if there's a HOWTO out there that I missed, I'd greatly
appreciate it.
All the best for those celebrating Canadian thanksgiving.
Pk
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Using the SLPB button for MEM state (suspend to ram)
@ 2005-10-11 4:07 ` Neil Brown
0 siblings, 0 replies; 3+ messages in thread
From: Neil Brown @ 2005-10-11 4:07 UTC (permalink / raw)
To: Petros Kolyvas; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Monday October 10, pkolyvas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> Hi folks,
>
> I've been using ACPI4Linux's suspend to RAM for some time. Until a
> recent reinstall of gentoo, I had been using the lid button (LID0), and
> a script which polled its state (/proc/acpi/button/lid/LID0/state) and
> consequently, depending on whether the lid was up or down, the laptop
> would either come out of or go into the "mem" state.
That's an interesting approach.
I use acpid which monitors /proc/acpi/events and runs various scripts
in /etc/acpi/events when things happen.
>
> I noticed that the Sleep Button, (/proc/acpi/button/sleep/SLPB) is
> present but that there is no state (/proc/acpi/button/sleep/SLPB/state)
> to poll in a script and therefore I'm unsure if I can use the button at
> all.
SLPB doesn't have a state because it is edge-triggered, not level
triggered.
It causes an action as you press it. Holding the button down, or
releasing it, aren't interesting at all.
This contrasts with LID0 which is a level. It tells you whether the
lid is open or closed. There are two states and both are interesting.
>
> If anyone has any idea on how to possibly use this button, if it can be
> used, or if there's a HOWTO out there that I missed, I'd greatly
> appreciate it.
>
Looking into acpid.
NeilBrown
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-11 4:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 3:10 Using the SLPB button for MEM state (suspend to ram) Petros Kolyvas
2005-10-11 3:10 ` Petros Kolyvas
[not found] ` <BAYC1-PASMTP03F4CB11CD595EA2BC0C07D6780-NW7P6tAEKYY@public.gmane.org>
2005-10-11 3:22 ` Petros Kolyvas
2005-10-11 3:22 ` Petros Kolyvas
2005-10-11 4:07 ` Neil Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.