[ltp] Re: immediate resume from suspend
Vitus Jensen
linux-thinkpad@linux-thinkpad.org
Fri, 24 Oct 2008 23:24:31 +0000 (UTC)
Am Fri, 24 Oct 2008 22:53:19 +0000 schrieb Vitus Jensen:
> 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.
...
> * 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!
Hmm, that was fast. See output of acpitool -w:
Device S-state Status Sysfs node
---------------------------------------
1. LID S3 *enabled
2. SLPB S3 *enabled
3. PB2 S4 disabled
4. PB3 S4 disabled
5. PB4 S4 disabled pci:0000:00:04.0
6. PB5 S4 disabled
7. PB6 S4 disabled pci:0000:00:06.0
8. PB7 S4 disabled
9. P2P S4 disabled pci:0000:00:14.4
10. USB0 S3 disabled pci:0000:00:13.0
11. USB1 S3 disabled pci:0000:00:13.1
12. USB2 S3 disabled pci:0000:00:13.2
13. AC9M S3 disabled
It lists 2 wakeup sources. When I disable one:
asterix ~ # acpitool -W 1
Changed status for wakeup device #1 (LID )
Device S-state Status Sysfs node
---------------------------------------
1. LID S3 *disabled
2. SLPB S3 *disabled
3. PB2 S4 disabled
4. PB3 S4 disabled
...
Both get disabled. And ... tataa! ... the R51e stays in suspend every
time :-) One can't any longer wakeup via Fn key but has to use the power
button. This is no big problem.
I love thinkpads :-D
By[t]e,
Vitus
--
Vitus Jensen, Hannover, Germany, Earth, Milky Way, Universe (current)