[Pkg-e-devel] Bug#593156: battery gadget does not work for /sys/class/power_supply/.../capacity

Alban Browaeys prahal at yahoo.com
Wed May 25 03:08:45 UTC 2011

Package: e17
Version: 0.16.999.55225-1
Followup-For: Bug #593156

This could be due to http://svn.enlightenment.org/svn/e/trunk/e/src/modules/battery/batget.c
linux_sys_class_power_supply_sysev_init(Sys_Class_Power_Supply_Uevent *sysev):
   snprintf(buf, sizeof(buf), "/sys/class/power_supply/%s/voltage_full", sysev->name);
   if (ecore_file_exists(buf)) sysev->basis = BASIS_VOLTAGE;
   snprintf(buf, sizeof(buf), "/sys/class/power_supply/%s/voltage_full_design", sysev->name);
   if (ecore_file_exists(buf)) sysev->basis = BASIS_VOLTAGE;

ie this should be voltage_max and voltage_max_design (voltage_full_* is not at least in current kernels
a valid choice per include/linux/power_supply.h in kernel sources).


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-rc7-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages e17 depends on:
ii  dbus-x11                1.5.0-2          simple interprocess messaging syst
ii  e17-data                0.16.999.55225-1 Enlightenment Window Manager Run T
ii  libasound2              1.0.23-4         shared library for ALSA applicatio
ii  libc6                   2.13-4           Embedded GNU C Library: Shared lib
ii  libdbus-1-3             1.5.0-2          simple interprocess messaging syst
ii  libecore-con1           1.0.0-2          Ecore Connection Library
ii  libecore-evas1          1.0.0-2          Ecore Evas Wrapper Library
ii  libecore-file1          1.0.0-2          Ecore File Library
ii  libecore-imf1           1.0.0-2          Ecore Input Method Framework modul
ii  libecore-input1         1.0.0-2          Ecore input module
ii  libecore-ipc1           1.0.0-2          Ecore inter-process communication 
ii  libecore-x1             1.0.0-2          Ecore functions for dealing with t
ii  libecore1               1.0.0-2          Core abstraction layer for enlight
ii  libedbus1               1.0.0-1          D-Bus and HAL wrapper libraries fo
ii  libedje-bin             1.0.0-1          Various binaries for use with libe
ii  libedje1                1.0.0-1          Graphical layout and animation lib
ii  libeet1                 1.4.0-2          Enlightenment DR17 file chunk read
ii  libefreet1              1.0.0-1          Library that implements freedeskto
ii  libeina1                1.0.0-1          Enlightenment Foundation Library p
ii  libevas1                1.0.0-1          Enlightenment DR17 advanced canvas
ii  libevas1-engines-x [lib 1.0.0-1          Evas module providing the X11 engi
ii  libpam0g                1.1.2-3          Pluggable Authentication Modules l
ii  libx11-6                2:1.4.3-1        X11 client-side library
ii  libxext6                2:1.3.0-1        X11 miscellaneous extension librar

e17 recommends no packages.

e17 suggests no packages.

-- no debconf information

More information about the Pkg-e-devel mailing list