Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute even if battery is absent

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexey Starikovskiy <aystarik@...>
Cc: <linux-acpi@...>, <linux-kernel@...>, <cbou@...>, <dwmw2@...>
Date: Saturday, October 27, 2007 - 1:50 pm

On Saturday 27 October 2007, Alexey Starikovskiy wrote:
AL

Do they have different set of properties depending on underlying hardware t=
hat=20
you can't query unless hardware is present? I'd rather avoid adding fake=20
attributes; but I do not actually care so which one do you prefer? :)



Neither does your code (nor kpowersave :) ) Remove battery and set of=20
attributes is "stuck" instead of being reset to only fixed set of power=20
device attributes (basically "info"). The only call to power_supply_registe=
r=20
is in acpi_battery_add and as far as I can tell this is executed on adding=
=20
*slot* not when content of this slot changes.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] 2.6.24-rc1: ensure "present" sysfs attribute even if..., Andrey Borzenkov, (Sat Oct 27, 12:54 pm)
Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve..., Alexey Starikovskiy, (Sat Oct 27, 1:16 pm)
Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve..., Andrey Borzenkov, (Sat Oct 27, 1:50 pm)
Re: [PATCH] 2.6.24-rc1: ensure "present" sysfs attribute eve..., Alexey Starikovskiy, (Sat Oct 27, 2:18 pm)