[ltp] immediate resume from suspend

Vitus Jensen linux-thinkpad@linux-thinkpad.org
Fri, 24 Oct 2008 22:53:19 +0000 (UTC)


Hej!

After a patch enabled my Thinkpad R51e (1843-6NG) to generate ACPI events 
and react to the Fn-keys (see http://bugzilla.kernel.org/show_bug.cgi?
id=8246), I'm experiencing problems getting the R51e to suspend probably: 
after boot the first time suspend works, every other time the Thinkpad 
immediately resumes.  No other issues, it just won't suspend anymore.  Do 
a reboot and you will get it to do a single suspend.

Gentoo, 2.6.27-wl, dmesg looks exactly the same on every suspend, whether 
it resumes immediately or stays off.  Google wasn't much help and I'm now 
trying to trace the suspend and find the reason myself.  But if someone 
on the list has an idea which could shorten the quest I would be 
gratefull.

What I found so far:
* acpi_enter_sleep_state() in drivers/acpi/hardware/hwsleep.c
  is reached (via do_suspend_lowlevel())
* no error exit from that routine
* ACPI_FLUSH_CPU_CACHE() is reached
* just before ACPI_FLUSH_CPU_CACHE() ACPI_BITREG_WAKE_STATUS
  is still zero (so no wakeup reason?)
* after return from acpi_enter_sleep_state() acpi_get_event_status()
  reports that the state for event 1 and 2 is set.  Whichever this
  means, but it's the same for every suspend try.

I will try to understand which events those are and whether I can disable 
one or both and see how this affects things.  But as I said, any hint is 
welcome!

Bye,
    Vitus

PS: yes, without the RSDT-patch the R51e suspend/resumes every time.

-- 
Vitus Jensen, Hannover, Germany, Earth, Milky Way, Universe (current)