login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2011
»
January
»
3
Re: [PATCH] acpi: Update battery information on notification 0x81
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Rafael J. Wysocki
Subject:
Re: [PATCH] acpi: Update battery information on notification 0x81
Date: Monday, January 3, 2011 - 1:56 pm
On Monday, January 03, 2011, Matthew Garrett wrote:
quoted text
> On Thu, Dec 23, 2010 at 11:23:42PM +0100, Rafael J. Wysocki wrote: > > > As I've already said on IRC, I'd simply add a new function like: > > > > void acpi_battery_refresh(struct acpi_battery *battery) > > { > > if (!battery->bat.dev) > > return; > > acpi_battery_get_info(battery); > > /* The battery may have changed its reporting units */ > > sysfs_remove_battery(battery); > > sysfs_add_battery(battery); > > } > > > > and call it before acpi_battery_update() > > (a) in acpi_battery_resume() > > (b) in acpi_battery_notify() if event == ACPI_BATTERY_NOTIFY_INFO > > > > That would be more straightforward IMHO. > > That might be more reasonable. Want to send that, or shall I?
I can do that. Thanks, Rafael --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] acpi: Update battery information on notification 0x81
, Matthew Garrett
, (Mon Aug 16, 1:32 pm)
Re: [PATCH] acpi: Update battery information on notificati ...
, Richard Hughes
, (Tue Aug 31, 2:06 am)
Re: [PATCH] acpi: Update battery information on notificati ...
, Matthew Garrett
, (Wed Dec 15, 10:19 am)
[PATCH] acpi: Update battery information on notification 0x81
, Matthew Garrett
, (Thu Dec 23, 2:16 pm)
Re: [PATCH] acpi: Update battery information on notificati ...
, Rafael J. Wysocki
, (Thu Dec 23, 3:23 pm)
Re: [PATCH] acpi: Update battery information on notificati ...
, Matthew Garrett
, (Mon Jan 3, 10:59 am)
Re: [PATCH] acpi: Update battery information on notificati ...
, Rafael J. Wysocki
, (Mon Jan 3, 1:56 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Gene Heskett
Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
Ray Lee
Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Gene Heskett
Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
Justin Mattock
Re: macbook pro dvd playback after suspend Buffer I/O error
git
:
Bill Lear
cpio command not found
Gary Yang
fatal: did you run git update-server-info on the server? mv post-update.sample pos...
Uwe
Re: "bash: git-upload-pack: command not found" ??
Ben Schmidt
Getting the path right for git over SSH
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
linux-netdev
:
Jamie Lokier
Re: [2/3] POHMELFS: Documentation.
Francois-Xavier Le Bail
[PATCH v2] net: typos in comments in include/linux/igmp.h
Stephen Hemminger
Re: vlan JMicron Technologies, Inc. JMC250 PCI Express Gigabit Ethernet
Sage Weil
Re: [2/3] POHMELFS: Documentation.
Patrick McHardy
Re: [ANNOUNCE]: First release of nftables
openbsd-misc
:
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
openbsd
observed spamd behavior
Ted Unangst
Re: OpenSMTPd actual development and integration
Paul M
Corrupted RAIDFrame device
BetClic
Benfica vs Porto - Qual o seu palpite?
git-commits-head
:
Linux Kernel Mailing List
Remove empty comment in acpi/power.c
Linux Kernel Mailing List
Linux 2.6.34-rc4
Linux Kernel Mailing List
[SCSI] scsi_dh_rdac: Retry for Quiescence in Progress in rdac device handler
Linux Kernel Mailing List
ALSA: cosmetic: make hda intel interrupt name consistent with others
Linux Kernel Mailing List
USB: gadget: audio: provide correct device id
Colocation donated by:
Syndicate