Your message dated Tue, 27 Dec 2011 17:04:45 +0000
with message-id <[email protected]>
and subject line Bug#649222: fixed in xmobar 0.14-1
has caused the Debian Bug report #649222,
regarding xmobar: battery plugin doesn't support drivers that use
charge_full_design
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
649222: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649222
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xmobar
Version: 0.13-2
The battery plugin uses charge_now and charge_full (or energy_now and
energy_full, depending upon what's available) to determine the amount
of battery charge remaining. This works most of the time, but battery
drivers don't always provide charge_full; some provide
charge_full_design instead of (or sometimes in addition to)
charge_full. This means the battery plugin is unusable with my XO-1,
for example, which uses the olpc-battery driver.
The attached patch changes xmobar's battery plugin to use
charge_full_design if charge_full doesn't exist. I've only tested it
on my XO-1.. It should be tested on other platforms to ensure no
regressions.
Support *_full_design in battery monitor plugin
Some battery drivers don't support things like energy_full or
charge_full; instead, they use charge_full_design. Change the
battery monitor plugin to use *_full_design if *_full doesn't
exist but *_full_design does exist.
---
--- xmobar-0.13.orig/src/Plugins/Monitors/Batt.hs
+++ xmobar-0.13/src/Plugins/Monitors/Batt.hs
@@ -95,15 +95,21 @@ batteryFiles bat =
is_energy <- fileExist $ prefix </> "energy_now"
is_current <- fileExist $ prefix </> "current_now"
let cf = if is_current then "current_now" else "power_now"
- return $ case (is_charge, is_energy) of
- (True, _) -> files "charge" cf
- (_, True) -> files "energy" cf
+ ch = case (is_charge, is_energy) of
+ (True, _) -> "charge"
+ (_, True) -> "energy"
+ _ -> ""
+ is_full <- fileExist $ prefix </> ch ++ "_full"
+ is_design <- fileExist $ prefix </> ch ++ "_full_design"
+ return $ case (is_full, is_design) of
+ (True, _) -> files ch cf ""
+ (_, True) -> files ch cf "_design"
_ -> NoFiles
where prefix = sysDir </> bat
- files ch cf = Files { fFull = prefix </> ch ++ "_full"
- , fNow = prefix </> ch ++ "_now"
- , fCurrent = prefix </> cf
- , fVoltage = prefix </> "voltage_now" }
+ files ch cf des = Files { fFull = prefix </> ch ++ "_full" ++ des
+ , fNow = prefix </> ch ++ "_now"
+ , fCurrent = prefix </> cf
+ , fVoltage = prefix </> "voltage_now" }
haveAc :: FilePath -> IO Bool
haveAc f = do
--- End Message ---
--- Begin Message ---
Source: xmobar
Source-Version: 0.14-1
We believe that the bug you reported is fixed in the latest version of
xmobar, which is due to be installed in the Debian FTP archive:
xmobar_0.14-1.debian.tar.gz
to main/x/xmobar/xmobar_0.14-1.debian.tar.gz
xmobar_0.14-1.dsc
to main/x/xmobar/xmobar_0.14-1.dsc
xmobar_0.14-1_i386.deb
to main/x/xmobar/xmobar_0.14-1_i386.deb
xmobar_0.14.orig.tar.gz
to main/x/xmobar/xmobar_0.14.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Apollon Oikonomopoulos <[email protected]> (supplier of updated xmobar package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 20 Dec 2011 09:24:10 +0200
Source: xmobar
Binary: xmobar
Architecture: source i386
Version: 0.14-1
Distribution: unstable
Urgency: low
Maintainer: Apollon Oikonomopoulos <[email protected]>
Changed-By: Apollon Oikonomopoulos <[email protected]>
Description:
xmobar - Lightweight status bar for X11 window managers with UTF-8 and Xft
Closes: 649222 652630
Changes:
xmobar (0.14-1) unstable; urgency=low
.
* New upstream version (Closes: #649222, #652630)
Checksums-Sha1:
15595f676fc282c276d28d96ea575a34a21c2694 1245 xmobar_0.14-1.dsc
ea40641184a23011d29dd1346fa91cbbb5570f72 64977 xmobar_0.14.orig.tar.gz
4984e23d167db33ab6a9e3ae9b7ecccd5fd7a107 16376 xmobar_0.14-1.debian.tar.gz
6381eb2de6c68563cb79544be0b3441c637023f0 820244 xmobar_0.14-1_i386.deb
Checksums-Sha256:
5d5baad8de4679bb3306d77632d233654c6237c0f4cb49f9e4ccb775f0a9cebb 1245
xmobar_0.14-1.dsc
70c39b0bd98a95fb362a78305cc9b10d4f9c24aa6431597fd81da65d945846f8 64977
xmobar_0.14.orig.tar.gz
31e76c9acb071fc6b17b15e41961bff8bcbc2abaf26171555bfc98d4bcbed5c2 16376
xmobar_0.14-1.debian.tar.gz
c27bd986e6ecc246d0868fb081fd311c79bf7df5394c9c3f3476144e2a036ea4 820244
xmobar_0.14-1_i386.deb
Files:
4e9c8c061377e0b3187fbf2e796f9fd0 1245 x11 optional xmobar_0.14-1.dsc
b965e2db0555c741db96945210995777 64977 x11 optional xmobar_0.14.orig.tar.gz
f0470c9fa0f2a8ce2a2c2cdf11fb54f2 16376 x11 optional xmobar_0.14-1.debian.tar.gz
536c4809b5136a8d89ab8d1bd72f9021 820244 x11 optional xmobar_0.14-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk759rIACgkQVty5d8XpUzM9FgCfeRMeQZvoldnECkGeZQS1Ghgn
+eoAniU9XVbWIwLFrJFkhhzRflRZRs+w
=Jljc
-----END PGP SIGNATURE-----
--- End Message ---