From: Michal Hocko on
Hi Rafael, Matthew,
my laptop changed behavior during poweroff recently (after upgrading
from .33 to .34-rc1). The system seems to be powered off (status display
is off) at first glance but when I close the lid then I can hear a noise
which sounds like HDD parking and when I open lid again it starts
booting without poweroff button (same like when I suspend to RAM).

I have bisected that down to the following commit:

commit 9630bdd9b15d2f489c646d8bc04b60e53eb5ec78
Author: Rafael J. Wysocki <rjw(a)sisk.pl>
Date: Wed Feb 17 23:41:07 2010 +0100

ACPI: Use GPE reference counting to support shared GPEs

ACPI GPEs may map to multiple devices. The current GPE interface
only provides a mechanism for enabling and disabling GPEs, making
it difficult to change the state of GPEs at runtime without extensive
cooperation between devices.

Add an API to allow devices to indicate whether or not they want
their device's GPE to be enabled for both runtime and wakeup events.

Remove the old GPE type handling entirely, which gets rid of various
quirks, like the implicit disabling with GPE type setting. This
requires a small amount of rework in order to ensure that non-wake
GPEs are enabled by default to preserve existing behaviour.

Based on patches from Matthew Garrett <mjg(a)redhat.com>.

Signed-off-by: Matthew Garrett <mjg(a)redhat.com>
Signed-off-by: Rafael J. Wysocki <rjw(a)sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes(a)virtuousgeek.org>

When I revert this commit, the system behaves like before. I am not sure
which kind of information might be useful so I have attached only config
file for now. The laptop is Futjitsu Siemens Lifebook S Series.

Let me know what else might help for further investigation.

Thanks
and
best regards
--
Michal Hocko
L3 team
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic
From: Matthew Garrett on
On Thu, Apr 01, 2010 at 03:39:23PM +0200, Michal Hocko wrote:
> Hi Rafael, Matthew,
> my laptop changed behavior during poweroff recently (after upgrading
> from .33 to .34-rc1). The system seems to be powered off (status display
> is off) at first glance but when I close the lid then I can hear a noise
> which sounds like HDD parking and when I open lid again it starts
> booting without poweroff button (same like when I suspend to RAM).

Hm. At a guess, we're somehow managing to leave the lid GPE enabled at
poweroff. Can you send the output of the acpidump command?

--
Matthew Garrett | mjg59(a)srcf.ucam.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Michal Hocko on
On Thu 01-04-10 14:45:35, Matthew Garrett wrote:
> On Thu, Apr 01, 2010 at 03:39:23PM +0200, Michal Hocko wrote:
> > Hi Rafael, Matthew,
> > my laptop changed behavior during poweroff recently (after upgrading
> > from .33 to .34-rc1). The system seems to be powered off (status display
> > is off) at first glance but when I close the lid then I can hear a noise
> > which sounds like HDD parking and when I open lid again it starts
> > booting without poweroff button (same like when I suspend to RAM).
>
> Hm. At a guess, we're somehow managing to leave the lid GPE enabled at
> poweroff. Can you send the output of the acpidump command?

Sure, see attached.
Thanks!

>
> --
> Matthew Garrett | mjg59(a)srcf.ucam.org

--
Michal Hocko
L3 team
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic
From: Rafael J. Wysocki on
On Thursday 01 April 2010, Michal Hocko wrote:
> On Thu 01-04-10 14:45:35, Matthew Garrett wrote:
> > On Thu, Apr 01, 2010 at 03:39:23PM +0200, Michal Hocko wrote:
> > > Hi Rafael, Matthew,
> > > my laptop changed behavior during poweroff recently (after upgrading
> > > from .33 to .34-rc1). The system seems to be powered off (status display
> > > is off) at first glance but when I close the lid then I can hear a noise
> > > which sounds like HDD parking and when I open lid again it starts
> > > booting without poweroff button (same like when I suspend to RAM).
> >
> > Hm. At a guess, we're somehow managing to leave the lid GPE enabled at
> > poweroff. Can you send the output of the acpidump command?
>
> Sure, see attached.

Thanks.

Please also send the contents of /proc/acpi/wakeup.

Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Michal Hocko on
Sorry for late reply, but I was AFK during holiday.

On Fri 02-04-10 21:31:47, Rafael J. Wysocki wrote:
> On Thursday 01 April 2010, Michal Hocko wrote:
> > On Thu 01-04-10 14:45:35, Matthew Garrett wrote:
> > > On Thu, Apr 01, 2010 at 03:39:23PM +0200, Michal Hocko wrote:
> > > > Hi Rafael, Matthew,
> > > > my laptop changed behavior during poweroff recently (after upgrading
> > > > from .33 to .34-rc1). The system seems to be powered off (status display
> > > > is off) at first glance but when I close the lid then I can hear a noise
> > > > which sounds like HDD parking and when I open lid again it starts
> > > > booting without poweroff button (same like when I suspend to RAM).
> > >
> > > Hm. At a guess, we're somehow managing to leave the lid GPE enabled at
> > > poweroff. Can you send the output of the acpidump command?
> >
> > Sure, see attached.
>
> Thanks.
>
> Please also send the contents of /proc/acpi/wakeup.

See attached. I have checked both kernels (with and without reverted
9630bdd) and the output looks pretty much same. 2.6.34-rc3, however,
looks different a bit, so I am attaching it as well.

>
> Rafael

--
Michal Hocko
L3 team
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic