! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Battery plugin doesn't resize correctly
Status:
RESOLVED: FIXED
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Ben Ford 2006-05-10 07:17:30 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060502 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060502 Firefox/1.5.0.3

The battery icon doesn't resize.  This means that the panel cannot be smaller than about 32 pixels and when it's larger, the battery plugin just looks funny.

Reproducible: Always
Comment 1 Nick Schermer editbugs 2006-05-10 17:07:23 CEST
I'm working on a new battery plugin (using HAL). You can find it here:

http://www.foo-projects.org/~nick/plugins/xfce4-battery-plugin-0.0.1.tar.bz2
http://www.foo-projects.org/~nick/plugins/xfce4-battery-plugin.png

Maybe it's good to replace the current battery plugin with this one since it'll fix a lot of acpi/apm problem and the panel resize problem.

Gr. Nick
Comment 2 Yves-Alexis Perez editbugs 2006-05-10 17:48:58 CEST
Is it a good idea to keep the same name if it's different software ? Or to restart version numbering ? Shouldn't you change the name or bump the current plugin version ?
Comment 3 Nick Schermer editbugs 2006-05-10 17:56:29 CEST
Well the idea of the plugin is the same of cource, so it would be a bit misleading to change the software name and the version numbers is only 0.0.1 to make clear it's not finished yet, but this will (if it's going to replace the current plugin) change to 4.0.0 or maybe 5.0.0.

The biggest problem atm is the lack of tester to give me some feedback.

Nick
Comment 4 Yves-Alexis Perez editbugs 2006-05-10 21:38:06 CEST
I've installed it, I'll test it for some days and report any bug I find. But, first, the plugin doesnt resize the panel, it keeps the right size, but the progressbar doesn't have the same size as other one.

See screenshot attached for details.
Comment 5 Yves-Alexis Perez editbugs 2006-05-10 21:38:59 CEST
Created attachment 544 
Battery plugin
Comment 6 Foxy 2006-05-10 21:52:24 CEST
I tried to install it but have

checking for gtk+-2.0 >= 2.6.0... not found
*** The required package gtk+-2.0 was not found on your system.
*** Please install gtk+-2.0 (atleast version 2.6.0) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.

though I have libgtk2.0-dev installed on Ubuntu Dapper
Comment 7 Yves-Alexis Perez editbugs 2006-05-11 01:47:04 CEST
Hmh, ok, the plugin doesnt work at all, it reports 100% / on AC, even when using battery, and battery is discharged.

I'm using pmu and apm emulation, don't know if it's a problem.
Comment 8 Nick Schermer editbugs 2006-05-11 05:04:45 CEST
I've just uploaded the 0.0.2 version, this should fix some problem with other laptops. You can compare the output of the plugin with lshal | grep battery. If it different please attach or send me the lshal output and some lshal -m output (wait a couple of minutes).

Nick
Comment 9 Yves-Alexis Perez editbugs 2006-05-11 08:31:40 CEST
This version needs libxfce4util 4.3.90.2 (beta 2 ??) which I don't have and don't want to install svn versions, so I'll test it another time.
Comment 10 Benedikt Meurer editbugs 2006-05-11 08:34:47 CEST
Uhm, before replacing the old plugin, the new plugin should atleast support all the platforms that were supported by the previous one.
Comment 11 Nick Schermer editbugs 2006-05-11 17:09:05 CEST
> This version needs libxfce4util 4.3.90.2 (beta 2 ??) which I don't have and
> don't want to install svn versions, so I'll test it another time.

I've uploaded 0.0.3 without this dependancy. There is a BUGS file to explaing
how to report bugs (and compare / test the plugin with lshal).

> Uhm, before replacing the old plugin, the new plugin should atleast support all
> the platforms that were supported by the previous one.

Of cource, but most of the platform support is for HAL now isn't it?
Comment 12 Yves-Alexis Perez editbugs 2006-05-11 21:38:14 CEST
Tried 0.0.3.

Infos stay at what they were when plugin was loaded (here, 95% charged). And progressbar still doesnt have the same size as other ones.

corsac@hidalgo: lshal | grep battery                                        [~]
udi = '/org/freedesktop/Hal/devices/pmu_battery_0_0'
  battery.remaining_time = 786  (0x312)  (int)
  info.udi = '/org/freedesktop/Hal/devices/pmu_battery_0_0'  (string)
  battery.charge_level.percentage = 96  (0x60)  (int)
  battery.charge_level.rate = 581  (0x245)  (int)
  battery.charge_level.design = 3199  (0xc7f)  (int)
  battery.charge_level.last_full = 3199  (0xc7f)  (int)
  battery.charge_level.current = 3072  (0xc00)  (int)
  battery.rechargeable.is_discharging = false  (bool)
  battery.rechargeable.is_charging = true  (bool)
  battery.is_rechargeable = true  (bool)
  battery.present = true  (bool)
  info.capabilities = {'battery'} (string list)
  info.category = 'battery'  (string)
  battery.type = 'primary'  (string)
  info.product = 'Battery Bay'  (string)
  linux.pmu_path = '/proc/pmu/battery_0'  (string)


corsac@hidalgo: lshal -m                                                    [~]

Start monitoring devicelist:
-------------------------------------------------
pmu_battery_0_0 property battery.remaining_time = 8099 (0x1fa3)
pmu_battery_0_0 property battery.charge_level.rate = 1381 (0x565)
pmu_battery_0_0 property battery.charge_level.percentage = 96 (0x60)
pmu_battery_0_0 property battery.remaining_time = 8083 (0x1f93)
pmu_battery_0_0 property battery.charge_level.current = 3101 (0xc1d)
pmu_battery_0_0 property battery.remaining_time removed
pmu_battery_0_0 property battery.rechargeable.is_discharging = false
pmu_info_1 property ac_adapter.present = true
pmu_battery_0_0 property battery.remaining_time = 440 (0x1b8) (new)
pmu_battery_0_0 property battery.charge_level.rate = 801 (0x321)
pmu_battery_0_0 property battery.rechargeable.is_charging = true
pmu_battery_0_0 property battery.remaining_time = 449 (0x1c1)
pmu_battery_0_0 property battery.charge_level.current = 3099 (0xc1b)
pmu_battery_0_0 property battery.remaining_time = 530 (0x212)
pmu_battery_0_0 property battery.charge_level.rate = 678 (0x2a6)
pmu_battery_0_0 property battery.remaining_time = 515 (0x203)
pmu_battery_0_0 property battery.charge_level.current = 3102 (0xc1e)
pmu_battery_0_0 property battery.remaining_time = 565 (0x235)
pmu_battery_0_0 property battery.charge_level.rate = 617 (0x269)
pmu_battery_0_0 property battery.charge_level.percentage = 97 (0x61)
pmu_battery_0_0 property battery.remaining_time = 554 (0x22a)
pmu_battery_0_0 property battery.charge_level.current = 3104 (0xc20)
pmu_battery_0_0 property battery.remaining_time = 590 (0x24e)
pmu_battery_0_0 property battery.charge_level.rate = 579 (0x243)
pmu_battery_0_0 property battery.remaining_time = 572 (0x23c)
pmu_battery_0_0 property battery.charge_level.current = 3107 (0xc23)
pmu_battery_0_0 property battery.remaining_time = 598 (0x256)
pmu_battery_0_0 property battery.charge_level.rate = 553 (0x229)
pmu_battery_0_0 property battery.remaining_time = 585 (0x249)
pmu_battery_0_0 property battery.charge_level.current = 3109 (0xc25)
pmu_battery_0_0 property battery.remaining_time = 607 (0x25f)
pmu_battery_0_0 property battery.charge_level.rate = 533 (0x215)
pmu_battery_0_0 property battery.remaining_time = 594 (0x252)
pmu_battery_0_0 property battery.charge_level.current = 3111 (0xc27)


Comment 13 Nick Schermer editbugs 2006-05-12 06:21:14 CEST
Uploaded 0.0.4:

* Plugin border to 4px
* Change hal property change behaviour, this will probably
  work for most people now.
Comment 14 Yves-Alexis Perez editbugs 2006-05-12 09:39:49 CEST
Still doesnt work on my (pmu based) box. Value is the one when plugin is loaded (or panel started), but doesnt change after.
Comment 15 Nick Schermer editbugs 2006-05-15 07:50:46 CEST
Released test version 0.0.5, some HAL fixes and it
seems to work for Corsac now.

http://foo-projects.org/~nick/plugins/xfce4-battery-plugin-0.0.5.tar.bz2

I'm going to finish the plugin now so it will support (most) of the
current battery plugin stuff. If people still have problems with
HAL please fill a bug report or send me an email.
The following version will have a version number like 0.5.x.

Nick
Comment 16 Yves-Alexis Perez editbugs 2006-05-15 09:00:53 CEST
Now the plugin works here. The only thing (yet seen with nick) is the time format displayed next to the progress bar.

Currently it's minutes:seconds, while in tooltip it's ##hr ##min.

A format like "hours:minutes" would be better, I guess.

Regards,

Yves-Alexis Perez
Comment 17 Nick Schermer editbugs 2006-05-18 05:39:23 CEST
I've started a testing branch for the new battery plugin, you can find in the goodies svn: xfce4-battery-plugin/branches/XERVERIUS.

Comment 18 Nick Schermer editbugs 2006-09-01 10:35:10 CEST
Should be fixed in the 0.4.90.2 release, that will be announced today or so...

Bug #1791

Reported by:
Ben Ford
Reported on: 2006-05-10
Last modified on: 2010-12-24

People

Assignee:
Xfce-Goodies Maintainers
CC List:
6 users

Version

Version:
0.5.1 or older
Target Milestone:
0.5.1 or older

Attachments

Battery plugin (953.67 KB, image/png)
2006-05-10 21:38 CEST , Yves-Alexis Perez
no flags

Additional information