Re: [PATCH 1/2] ideapad-laptop: Ignore an unused VPC notification
From: Keng-YÃ Lin
Date: Mon Jul 11 2011 - 03:30:48 EST
On Thu, Jul 7, 2011 at 11:10 PM, Matthew Garrett <mjg59@xxxxxxxxxxxxx> wrote:
> On Tue, Jun 28, 2011 at 02:35:53PM +0100, Keng-Yu Lin wrote:
>> BIOS fires notifications in a constant period with VPC bit 1 set when the
>> power cord is unplugged.
>
> How frequently? That's going to do bad things to power management. It'd
> be nice to find a way to just make it stop doing that.
>
About every 22 seconds.
May 18 13:46:36 ubuntu-Rev-1-0 kernel: [ 1359.734293] keyboard: can't
emulate rawmode for keycode 240
May 18 13:46:36 ubuntu-Rev-1-0 kernel: [ 1359.734324] keyboard: can't
emulate rawmode for keycode 240
May 18 13:46:58 ubuntu-Rev-1-0 kernel: [ 1382.195371] keyboard: can't
emulate rawmode for keycode 240
May 18 13:46:58 ubuntu-Rev-1-0 kernel: [ 1382.195388] keyboard: can't
emulate rawmode for keycode 240
May 18 13:47:21 ubuntu-Rev-1-0 kernel: [ 1404.650451] keyboard: can't
emulate rawmode for keycode 240
May 18 13:47:21 ubuntu-Rev-1-0 kernel: [ 1404.650470] keyboard: can't
emulate rawmode for keycode 240
May 18 13:47:43 ubuntu-Rev-1-0 kernel: [ 1427.103195] keyboard: can't
emulate rawmode for keycode 240
May 18 13:47:43 ubuntu-Rev-1-0 kernel: [ 1427.103214] keyboard: can't
emulate rawmode for keycode 240
May 18 13:48:06 ubuntu-Rev-1-0 kernel: [ 1449.568874] keyboard: can't
emulate rawmode for keycode 240
May 18 13:48:06 ubuntu-Rev-1-0 kernel: [ 1449.568884] keyboard: can't
emulate rawmode for keycode 240
May 18 13:48:28 ubuntu-Rev-1-0 kernel: [ 1472.103599] keyboard: can't
emulate rawmode for keycode 240
May 18 13:48:28 ubuntu-Rev-1-0 kernel: [ 1472.103612] keyboard: can't
emulate rawmode for keycode 240
(skip)
It'd be ideal if we can find the real use of the notification and
assign it a corresponding keycode, but now I am not able to find any.
Since it occurs in a period when AC cord unplugged, I suspect it is
just a notification to the Windows App, probably due to that the App
is badly written and the App does not want to poll the battery
information. In Linux the userspace can access the battery information
in an easier way through the ACPI proc/sysfs and it is probably not
true in Windows. It could be the reason/purpose why this notification
is sent in a period.
If so, it should be safe to filter out.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/