Package: xosview Version: 1.8.3+debian-21 Severity: normal btrymeter.h and btrymeter.cc
1) In the function bool BtryMeter::getacpi_or_sys_info, there is no /enery_* directories in "/sys/class/power_supply" of my old laptop. All I have is /curret_* directories. Thus, I have no battery information on xosview. I added /charge_full_design, /charge_full, and /charge_now after /energy_full_design, /energy_full, and /energy_now respectively in my local sources. After that, I can see a battery status on xosview. 2) struct battery is not initialized, thus when I tried to debug them by turning on XOSDEBUG, full capacity, remain capacity, rate, and alarm have the same junk numbers on them. *) Linux 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2011 i686 GNU/Linu *) Samsung R50 -- System Information: Debian Release: 6.0 APT prefers squeeze-updates APT policy: (500, 'squeeze-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xosview depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.5-8 GCC support library ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3 ii libx11-6 2:1.3.3-4 X11 client-side library Versions of packages xosview recommends: ii xfonts-base 1:1.0.1 standard fonts for X xosview suggests no packages. -- no debconf information
<<attachment: before.png>>

