From: Maxim Levitsky <maximlevitsky@gmail.com>
To: cbou@mail.ru
Cc: dwmw2@infradead.org, linux-kernel <linux-kernel@vger.kernel.org>
Subject: [BUG] /sys/class/power_supply/BAT0/ shouldn't disappear when battery is unplugged
Date: Sun, 26 Apr 2009 16:36:58 +0300 [thread overview]
Message-ID: <1240753018.26851.6.camel@maxim-laptop> (raw)
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
next reply other threads:[~2009-04-26 13:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-26 13:36 Maxim Levitsky [this message]
2009-04-27 17:49 ` Anton Vorontsov
2009-04-28 21:00 ` Maxim Levitsky
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=1240753018.26851.6.camel@maxim-laptop \
--to=maximlevitsky@gmail.com \
--cc=cbou@mail.ru \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®