From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: ACPI Devel Maling List <linux-acpi@vger.kernel.org>
Cc: Alexey Starikovskiy <astarikovskiy@suse.de>,
Len Brown <lenb@kernel.org>, LKML <linux-kernel@vger.kernel.org>,
Zhang Rui <rui.zhang@intel.com>, walken <walken@zoy.org>
Subject: Re: Regression: ACPI AC driver doesn't work on Toshiba Portege R500 (bisected)
Date: Mon, 24 Nov 2008 02:02:59 +0100 [thread overview]
Message-ID: <200811240202.59513.rjw@sisk.pl> (raw)
In-Reply-To: <200811240037.15835.rjw@sisk.pl>
On Monday, 24 of November 2008, Rafael J. Wysocki wrote:
> On Sunday, 23 of November 2008, Rafael J. Wysocki wrote:
> > Hi,
> >
> > With current mainline (2.6.28-rc6-git1 as of today) on Toshiba Portege R500 the
> > status of the AC adapter is not updated when the adapter is unplugged and
> > plugged in. Evidently, /sys/class/power_supply/ADP1/online always contains the
> > same value. Interestingly enough, though, if the box is suspended to RAM and
> > resumed, the status of the AC adapter is correctly updated, but the value read
> > at that time remains in /sys/class/power_supply/ADP1/online until the next
> > suspend/resume cycle regardless of what's going on with the AC adapter.
> >
> > 2.6.27.7 works correctly on this box so the recent EC patches don't seem to
> > cause this regression to happen.
> >
> > Any other ideas?
>
> The problem was introduced by the following commit:
>
> commit faee816b1502385dc9bc5abf2960d1cc645844d1
> Author: Zhang Rui <rui.zhang@intel.com>
> Date: Fri Sep 12 11:12:25 2008 +0800
>
> ACPI: don't enable control method power button as wakeup device when Fixed Power button is used
>
> don't enable control method power button as wakeup device
> when Fixed Power button is used.
>
> http://bugzilla.kernel.org/show_bug.cgi?id=10503
>
> Tested-by: walken@zoy.org <walken@zoy.org>
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> Signed-off-by: Len Brown <len.brown@intel.com>
>
> Reverting this commit on top of the current mainline makes the kernel behave
> correctly again.
Alas, after reverting the patch the box hangs on resume from suspend to RAM
when it is woken up by opening the lid.
I suspect that the GPE which is normally used for signalling the AC adapter
events is the same one associated with the fake power button and it is not
enabled if that button is not regarded as a wake-up device. However, it causes
problems to happen during resume if the fake power button _is_ regarded as
a wake-up device.
The DSDT for the box is at:
http://www.sisk.pl/kernel/debug/ACPI/R500/DSDT.dsl
Thanks,
Rafael
next prev parent reply other threads:[~2008-11-24 1:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-22 23:53 Regression: ACPI AC driver doesn't work on Toshiba Portege R500 Rafael J. Wysocki
2008-11-23 23:37 ` Regression: ACPI AC driver doesn't work on Toshiba Portege R500 (bisected) Rafael J. Wysocki
2008-11-24 1:02 ` Rafael J. Wysocki [this message]
2008-11-24 13:27 ` Rafael J. Wysocki
2008-11-24 1:15 ` Zhao Yakui
2008-11-24 1:21 ` Rafael J. Wysocki
2008-11-24 1:31 ` Zhang Rui
2008-11-24 13:30 ` Rafael J. Wysocki
2008-11-25 1:20 ` Zhang Rui
2008-11-25 9:06 ` Rafael J. Wysocki
2008-11-25 9:36 ` [PATCH] ACPI: Revert commit faee816b150238 due to regression Rafael J. Wysocki
2008-11-25 1:24 ` Regression: ACPI AC driver doesn't work on Toshiba Portege R500 (bisected) Zhao Yakui
2008-11-25 9:08 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200811240202.59513.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=astarikovskiy@suse.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=walken@zoy.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox