How do I get the battery status to work on Debian squeeze/wheezy?

Asked by Tom

I have enabled the battery status, and the screen is wide enough, but I do not see it (on Debian squeeze and wheezy both). Why?

Where does byobu store its log of errors?

This is in a console login. gdm is running, but no one is logged in there.

Question information

Language:
English Edit question
Status:
Answered
For:
byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

Hmm, the battery code is a little hardware specific.

Can you paste the output of:

find /proc/acpi/battery/

Thanks,
Dustin

Revision history for this message
Tom (tom-reportbug) said :
#2

find: `/proc/acpi/battery': No such file or directory

Kernel is 2.6.39 bpo, Gnome power management works fine.

Revision history for this message
Tom (tom-reportbug) said :
#3

On Wed, Sep 14, 2011 at 4:55 PM, Thomas Shanks
<email address hidden> wrote:
> find: `/proc/acpi/battery': No such file or directory
> Kernel is 2.6.39 bpo, Gnome power management works fine.

This is the squeeze laptop, an Arrandale-based Thinkpad Edge 15.
Other than the kernel-related packages, nothing else significant is
upgraded to backports.

Here is a link to more info on the configuration:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640973 (that bug is
unrelated and fixed)

Revision history for this message
Dustin Kirkland  (kirkland) said :
#4

Okay, so Byobu just looks in /proc/acpi/battery for your battery information.

If you can tell me where your system stores your battery information, and what the format is, I can update Byobu accordingly. Unfortunately, I can't reproduce your problem here, so I'll need your help with that ;-)

Revision history for this message
Tom (tom-reportbug) said :
#5

How is gnome power management doing it?

Revision history for this message
Tom (tom-reportbug) said :
#6

/proc/acpi is (and has been) deprecated and is finally disabled in
Debian as of kernel 3.0.

It's been moved into /sys/.

Revision history for this message
Tom (tom-reportbug) said :
#7

From http://www.kernel.org/doc/menuconfig/drivers-acpi-Kconfig.html:

_Deprecated power /proc/acpi directories_

For backwards compatibility, this option allows
deprecated power /proc/acpi/ directories to exist, even when
they have been replaced by functions in /sys.
The deprecated directories (and their replacements) include:
/proc/acpi/battery/* (/sys/class/power_supply/*)
/proc/acpi/ac_adapter/* (sys/class/power_supply/*)
This option has no effect on /proc/acpi/ directories
and functions, which do not yet exist in /sys
This option, together with the proc directories, will be
deleted in 2.6.39.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#8

Perfect, thanks. I've converted this question into a bug report.
I'll need to do a bit of coding to get the new /sys interface sorted
out, but it should be pretty straightforward. Thanks for the
question/bug/featurerequest and the information!

Can you help with this problem?

Provide an answer of your own, or ask Tom for more information if necessary.

To post a message you must log in.