Package: lxpanel Version: 0.3.8.1-2 Severity: normal Hello,
again thanks for lxde. The battery monitor cannot read the battery charge of my laptop. I noticed that it looks for /sys/class/power_supply/BAT0/charge_full which doesn't exist here. I have /sys/class/power_supply/BAT0/energy_full instead. The energy_full information can also be found here in /sys/class/power_supply/BAT0/uevent I fond the specification for the values that can be read from uevent: http://www.mjmwired.net/kernel/Documentation/power/power_supply_class.txt It looks like the difference between "charge" and "energy" is that charge is the value in µAh, energy is the value in µWh. There can also be a capacity value, in percent. Here's some information from my system that I hope is useful: $ ls -la /sys/class/power_supply/BAT0 -rw-r--r-- 1 root root 4096 2008-08-01 16:31 alarm -r--r--r-- 1 root root 4096 2008-08-01 15:34 current_now lrwxrwxrwx 1 root root 0 2008-08-01 16:31 device -> ../../../devices/LNXSYSTM:00/device:00/PNP0A08:00/PNP0C0A:00 -r--r--r-- 1 root root 4096 2008-08-01 15:34 energy_full -r--r--r-- 1 root root 4096 2008-08-01 16:31 energy_full_design -r--r--r-- 1 root root 4096 2008-08-01 15:34 energy_now -r--r--r-- 1 root root 4096 2008-08-01 16:31 manufacturer -r--r--r-- 1 root root 4096 2008-08-01 16:31 model_name drwxr-xr-x 2 root root 0 2008-08-01 16:31 power -r--r--r-- 1 root root 4096 2008-08-01 15:34 present -r--r--r-- 1 root root 4096 2008-08-01 16:31 serial_number -r--r--r-- 1 root root 4096 2008-08-01 15:34 status lrwxrwxrwx 1 root root 0 2008-08-01 16:31 subsystem -> ../../power_supply -r--r--r-- 1 root root 4096 2008-08-01 16:31 technology -r--r--r-- 1 root root 4096 2008-08-01 16:31 type -rw-r--r-- 1 root root 4096 2008-08-01 15:34 uevent -r--r--r-- 1 root root 4096 2008-08-01 16:31 voltage_min_design -r--r--r-- 1 root root 4096 2008-08-01 15:34 voltage_now $ cat /sys/class/power_supply/BAT0/uevent PHYSDEVPATH=/devices/LNXSYSTM:00/device:00/PNP0A08:00/PNP0C0A:00 PHYSDEVBUS=acpi PHYSDEVDRIVER=battery POWER_SUPPLY_NAME=BAT0 POWER_SUPPLY_TYPE=Battery POWER_SUPPLY_STATUS=Full POWER_SUPPLY_PRESENT=1 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000 POWER_SUPPLY_VOLTAGE_NOW=12475000 POWER_SUPPLY_CURRENT_NOW=0 POWER_SUPPLY_ENERGY_FULL_DESIGN=51260000 POWER_SUPPLY_ENERGY_FULL=50457000 POWER_SUPPLY_ENERGY_NOW=50094000 POWER_SUPPLY_MODEL_NAME=F9---24 POWER_SUPPLY_MANUFACTURER=ASUSTEK POWER_SUPPLY_SERIAL_NUMBER= Apparently, there is a new kernel interface[1] called kobject-uevent that *may*[2] allow to receive events from the kernel when the battery status changes, instead of polling periodically. It seems to work using netlink sockets. I'm writing it here not to suggest to use it right now, but just because it's something that I accidentally saw while looking for the energy/charge documentation above. Some links: - http://lists.freedesktop.org/archives/dbus/2005-January/001866.html - http://code.eikke.com/index.php?dir=kevent-dbus/ [1] starting from 2.6.10 kernels [2] I didn't find any documentation, only sparse vague posts and patches to HAL Ciao, Enrico -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages lxpanel depends on: ii libasound2 1.0.16-2 ALSA library ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit ii libc6 2.7-10 GNU C Library: Shared libraries ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra ii libfontconfig1 2.6.0-1 generic font configuration library ii libfreetype6 2.3.7-1 FreeType 2 font engine, shared lib ii libglib2.0-0 2.16.4-2 The GLib library of C routines ii libgtk2.0-0 2.12.10-2 The GTK+ graphical user interface ii libpango1.0-0 1.20.5-1 Layout and rendering of internatio ii libpixman-1-0 0.10.0-2 pixel-manipulation library for X a ii libpng12-0 1.2.27-1 PNG library - runtime ii libx11-6 2:1.1.4-2 X11 client-side library ii libxcb-render-util0 0.2+git36-1 utility libraries for X C Binding ii libxcb-render0 1.1-1.1 X C Binding, render extension ii libxcb1 1.1-1.1 X C Binding ii libxrender1 1:0.9.4-2 X Rendering Extension client libra ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime lxpanel recommends no packages. Versions of packages lxpanel suggests: ii epiphany-gecko [www-bro 2.22.3-1 Intuitive GNOME web browser - Geck ii epiphany-webkit [www-br 2.22.3-1 Intuitive GNOME web browser - webk ii iceweasel [www-browser] 3.0.1-1 lightweight web browser based on M ii konqueror [www-browser] 4:3.5.9.dfsg.1-4 KDE's advanced file manager, web b ii links [www-browser] 2.1pre37-1 Web browser running in text mode ii lxpanel-netstat-plugin 0.3.8.1-2 network monitor plugin for lxpanel ii lxsession-lite 0.3.6-1 a lightweight X11 session manager ii lynx-cur [www-browser] 2.8.7dev9-1.2 Text-mode WWW Browser with NLS sup ii menu 2.1.39 generates programs menu for all me ii w3m [www-browser] 0.5.2-2+b1 WWW browsable pager with excellent -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]