[Pkg-xfce-devel] Bug#841479: xfce4-power-manager: Interface wider than screen when battery model is a long string.

Beardy zz.beard at ntlworld.com
Fri Oct 21 01:03:54 UTC 2016

Package: xfce4-power-manager
Versions: 1.4.1-1 and 1.4.4-4
Severity: normal
Tags: upstream

Dear Maintainer,

* What led up to the situation?

Attempted to use the package on a General Dynamics / Itronics GD8200
notebook with
an original OEM battery installed.

* What exactly did you do (or not do) that was effective (or ineffective)?

I tried resizing fonts, changing theme, and internet searches for solutions.

* What was the outcome of this action?

The interface cannot be resized to fit on-screen, the screen having a
set at 1024x768.  I located an archived Debian bug #763713 which I believe
to be
related, the report also contains a proposed patch, which would fix the
issue if
the code is still applicable after the changes made upstream to half fix

However, upstream adopted a different approach which only deals with the
where the battery is not recognised creating a long string of characters to
rendered on the devices tab, not where the manufacturer's name or model
result in a long string, which is the case for GD/Itronix notebook

* Additional information

In the original bug report at:

Message #42 links to additional information requested by upstream at the

As it is relevant to reproducing the issue, I provide it below:

***** Begin paste from terminal *****

beardy at GD8200-DB-BL:~$ upower --enumerate
beardy at GD8200-DB-BL:~$ upower -i
  native-path:          BAT1
  vendor:               SMP                             
  model:                GD8200 Primary Battery          018762
LiIon                           SMP                             
  serial:               018762                          LiIon
  power supply:         yes
  updated:              Thu 20 Oct 2016 11:31:54 BST (56 seconds ago)
  has history:          yes
  has statistics:       yes
    present:             yes
    rechargeable:        yes
    state:               fully-charged	
    warning-level:       none
    energy:              58.7088 Wh
    energy-empty:        0 Wh
    energy-full:         58.7088 Wh
    energy-full-design:  56.4516 Wh
    energy-rate:         0.0108 W
    voltage:             4.967 V
    percentage:          100%
    capacity:            100%
    icon-name:          'battery-full-charged-symbolic'
  History (rate):
    1476959514	0.011	fully-charged

***** End paste *****

In this case the culprit is the long line provided as model, rather than 64
characters generated by an unrecognised battery, however, the basic issue is
identical.  The interface either needs to accommodate or truncate the
rather than increasing the window dimensions beyond what fits on a

Upstream believe the issue to be fixed in this version. However, the basic
that the interface can't accommodate long strings without extending off
is still present the versions cited at the beginning of this report.

-- System Information:
Distributor ID: BunsenLabs
Description:    BunsenLabs GNU/Linux 8.5 (Hydrogen)
Release:        8.5
Codename:       bunsen-hydrogen
Architecture: x86_64

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xfce4-power-manager depends on:
ii  libc6                     2.19-18+deb8u6
ii  libcairo2                 1.14.0-2.1+deb8u1
ii  libdbus-1-3               1.8.20-0+deb8u1
ii  libdbus-glib-1-2          0.102-1
ii  libgdk-pixbuf2.0-0        2.31.1-2+deb8u5
ii  libglib2.0-0              2.42.1-1+b1
ii  libgtk2.0-0               2.24.25-3+deb8u1
ii  libnotify4                0.7.6-2
ii  libpango-1.0-0            1.36.8-3
ii  libpangocairo-1.0-0       1.36.8-3
ii  libupower-glib3           0.99.1-3.2
ii  libx11-6                  2:1.6.2-3
ii  libxext6                  2:1.3.3-1
ii  libxfce4ui-1-0            4.10.0-6
ii  libxfce4util6             4.10.1-2
ii  libxfconf-0-2             4.10.0-3
ii  libxrandr2                2:1.4.2-1+b1
ii  upower                    0.99.1-3.2
ii  xfce4-power-manager-data  1.4.4-4~bpo8+1

Versions of packages xfce4-power-manager recommends:
ii  libpam-systemd               215-17+deb8u5
pn  xfce4-power-manager-plugins  <none>

xfce4-power-manager suggests no packages.

-- no debconf information

This email has been checked for viruses by Avast antivirus software.

More information about the Pkg-xfce-devel mailing list