[Pkg-e-devel] Bug#627868: provides eeze and build e17 against it (so to use udev instead of hal)

Alban Browaeys prahal at yahoo.com
Wed May 25 03:30:58 UTC 2011


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

to add more to the hal removal I found out why I get the value of the charge divided by two :
hal-info shows:
33: udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_archos_usb'
  linux.sysfs_path = '/sys/devices/platform/archos-battery/power_supply/archos_usb'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'power_supply'  (string)
  info.category = 'battery'  (string)
  info.capabilities = { 'battery' } (string list)
  info.subsystem = 'power_supply'  (string)
  info.product = 'Generic Battery Device'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_archos_usb'  (string)
  battery.type = 'usb'  (string)

34: udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_archos_battery'
  battery.rechargeable.is_discharging = true  (bool)
  battery.charge_level.current = 0  (0x0)  (int)
  battery.charge_level.last_full = 0  (0x0)  (int)
  battery.charge_level.design = 0  (0x0)  (int)
  battery.charge_level.rate = 0  (0x0)  (int)
  linux.sysfs_path = '/sys/devices/platform/archos-battery/power_supply/archos_battery'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  battery.charge_level.percentage = 75  (0x4b)  (int)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'power_supply'  (string)
  info.category = 'battery'  (string)
  info.capabilities = { 'battery' } (string list)
  info.subsystem = 'power_supply'  (string)
  info.product = 'Generic Battery Device'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_archos_battery'  (string)
  battery.type = 'primary'  (string)
  battery.reporting.technology = 'Li-poly'  (string)
  battery.technology = 'unknown'  (string)
  battery.voltage.design = 4  (0x4)  (int)
  battery.voltage.unit = 'mV'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 3  (0x3)  (int)
  battery.is_rechargeable = true  (bool)
  battery.rechargeable.is_charging = false  (bool)

35: udi = '/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_archos_ac'
  linux.sysfs_path = '/sys/devices/platform/archos-battery/power_supply/archos_ac'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'power_supply'  (string)
  info.category = 'ac_adapter'  (string)
  info.capabilities = { 'ac_adapter' } (string list)
  info.subsystem = 'power_supply'  (string)
  info.product = 'Generic AC Adapter Device'  (string)
  ac_adapter.present = false  (bool)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_archos_ac'  (string)

ie usb power supply is tagged with capability battery while it is an adapter thus in 
http://svn.enlightenment.org/svn/e/trunk/e/src/modules/battery/e_mod_main.c
_battery_device_update(void) :
if (batnum > 0) full /= batnum;
the full value is devided by 2 instead of 1.

Cheers
Alban

-- 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