From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petros Kolyvas Subject: Using the SLPB button for MEM state (suspend to ram) Date: Mon, 10 Oct 2005 23:10:25 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Message-ID: <434B2D21.1090709@gmail.com> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org 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