[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Laptop waking up in bag



On Sun, Jun 29, 2008 at 03:28:28PM +0300, Dotan Cohen wrote:

> 1) Find out what ACPI event (lid switch or power button) caused the
> system to wake?

keep acpi_listen running in a terminal

> 2) Find out how much time the laptop has been running since wake (not
> uptime, which is the time from boot)?

enclose the s2ram command (likely run by some script in /etc/acpi/) in
2 marker commands, eg

!  logger -t acpi_s2ram === going to sleep ===
!  <suspend command>
!  logger -t acpi_s2ram === got a wake up ===

in case you're seen clock troubles, log an hw timestamp as well, like:

! logger -t acpi_s2ram === going to sleep (`hwclock`) ===

> 3) Configure the laptop to poll the lid switch and return to RAM

hardly reliable, you risk sudden shutdown while working... better figure out
what's wrong, and use s2disk meanwhile.

HTH
-- 
paolo


Reply to: