[Pkg-xfce-devel] Bug#507607: xfce4-battery-plugin: 2.6.28-rc7 breaks time remaining
pm at debian.org
Tue Dec 2 22:16:28 UTC 2008
The following kernel patch corrects the meaning of the contents of the
sysfs battery status directory, but breaks the "time remaining"
calculation in xfce4-battery-plugin.
current_now is should contain a value of the current being drawn at this
instant, but in older kernels would contain whatever units the ACPI
interface reported, which could be either current or power.
The attached patch fixes things, but may break existing installations
with older kernels.
Author: Alexey Starikovskiy <aystarik at gmail.com>
Date: Fri Nov 21 22:41:01 2008 +0800
ACPI: battery: Convert discharge energy rate to current properly
ACPI battery interface reports its state either in mW or in mA, and
discharge rate in your case is reported in mW. power_supply interface
does not have such a parameter, so current_now parameter is used
for all cases. But in case of mW, reported discharge should
be converted into mA.
Signed-off-by: Alexey Starikovskiy <astarikovskiy at suse.de>
Tested-by: Ferenc Wagner <wferi at niif.hu>
Signed-off-by: Len Brown <len.brown at intel.com>
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (99, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-rc7
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 xfce4-battery-plugin depends on:
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libcairo2 1.6.4-6.1 The Cairo 2D vector graphics libra
ii libglib2.0-0 2.16.6-1 The GLib library of C routines
ii libgtk2.0-0 2.12.11-4 The GTK+ graphical user interface
ii libpango1.0-0 1.20.5-3 Layout and rendering of internatio
ii libxfce4util4 4.4.2-3 Utility functions library for Xfce
ii libxfcegui4-4 4.4.2-4 Basic GUI C functions for Xfce4
ii xfce4-panel 4.4.2-6 The Xfce4 desktop environment pane
xfce4-battery-plugin recommends no packages.
xfce4-battery-plugin suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1346 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20081202/ee033eef/attachment.bin
More information about the Pkg-xfce-devel