mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] /sys/class/power_supply/BAT0/ shouldn't disappear when battery is unplugged
@ 2009-04-26 13:36 Maxim Levitsky
  2009-04-27 17:49 ` Anton Vorontsov
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Levitsky @ 2009-04-26 13:36 UTC (permalink / raw)
  To: cbou; +Cc: dwmw2, linux-kernel

New sysfs battery interface has a flaw.

Suppose I removed battery from the system, and then booted it.
then gnome power manager has no idea that my system has battery, and
thus it hides battery settings.

It also has a bug that prevents it from hiding battery icon, when I
unplug the battery, in other words, it isn't prepared for battery to
disappear.

I think it would be nice to keep /sys/class/power_supply/BAT0/ even if
battery isn't present.

btw, there is /sys/class/power_supply/BAT0/present, thus maybe this is
just a bug?

Best regards,
	Maxim Levitsky


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-28 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-26 13:36 [BUG] /sys/class/power_supply/BAT0/ shouldn't disappear when battery is unplugged Maxim Levitsky
2009-04-27 17:49 ` Anton Vorontsov
2009-04-28 21:00   ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®