Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2015 10:22:43 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        Olivier Duchateau <olivierd@freebsd.org>
Cc:        freebsd-xfce@freebsd.org
Subject:   Re: [CFT] sysutils/xfce4-power-manager 1.4.2
Message-ID:  <54EAF163.6060307@netfence.it>
In-Reply-To: <20150221171659.8d3d3ab86a58106a95279d92@freebsd.org>
References:  <20150217231434.36f057bacaeb92eae93df57c@freebsd.org>	<54E89568.1090602@netfence.it> <20150221171659.8d3d3ab86a58106a95279d92@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/21/15 18:16, Olivier Duchateau wrote:

>> The panel icon now shows correctly if I'm running on line power or
>> battery (as it did before upower 0.99).
>> An estimate is given about battery life and I also receive
>> notifications; the two however don't agree at all: e.g. panel gives
>> 2h1', notification says 2' (60 times less).
>
> What says 'upower -d'?

% upower -d
Device: /org/freedesktop/UPower/devices/battery_devxbatteryx0
   native-path:          dev.battery.0
   vendor:               SANYO
   model:                Li_Ion_4000mA
   serial:               0005
   power supply:         yes
   updated:              Mon Feb 23 09:20:37 2015 (0 seconds ago)
   has history:          yes
   has statistics:       yes
   battery
     present:             yes
     rechargeable:        yes
     state:               fully-charged
     warning-level:       none
     energy:              35.7272 Wh
     energy-empty:        1.0656 Wh
     energy-full:         35.7272 Wh
     energy-full-design:  37 Wh
     energy-rate:         0 W
     voltage:             14.8 V
     percentage:          100%
     capacity:            96.56%
     technology:          lithium-ion
     icon-name:          'battery-full-charged-symbolic'
   History (charge):
     1424679577	100.000	fully-charged
     1424679546	0.000	unknown
   History (rate):
     1424679546	0.000	unknown

Device: /org/freedesktop/UPower/devices/line_power_hwxacpixacline
   native-path:          hw.acpi.acline
   power supply:         yes
   updated:              Mon Feb 23 09:20:37 2015 (0 seconds ago)
   has history:          no
   has statistics:       no
   line-power
     warning-level:       none
     online:              yes
     icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
   power supply:         yes
   updated:              Thu Jan  1 01:00:00 1970 (1424679637 seconds ago)
   has history:          no
   has statistics:       no
   battery
     present:             yes
     state:               fully-charged
     warning-level:       none
     energy:              35.7272 Wh
     energy-full:         35.7272 Wh
     energy-rate:         0 W
     percentage:          100%
     icon-name:          'battery-full-charged-symbolic'

Daemon:
   daemon-version:  0.99.0
   on-battery:      no
   lid-is-closed:   no
   lid-is-present:  no
   is-docked:       no
   critical-action: PowerOff
ventu@guardian:~ % upower -d
Device: /org/freedesktop/UPower/devices/battery_devxbatteryx0
   native-path:          dev.battery.0
   vendor:               SANYO
   model:                Li_Ion_4000mA
   serial:               0005
   power supply:         yes
   updated:              Mon Feb 23 09:21:02 2015 (2 seconds ago)
   has history:          yes
   has statistics:       yes
   battery
     present:             yes
     rechargeable:        yes
     state:               discharging
     warning-level:       none
     energy:              35.7272 Wh
     energy-empty:        1.0656 Wh
     energy-full:         35.7272 Wh
     energy-full-design:  37 Wh
     energy-rate:         7.696 W
     voltage:             14.8 V
     time to empty:       4.6 hours
     percentage:          100%
     capacity:            96.56%
     technology:          lithium-ion
     icon-name:          'battery-full-symbolic'
   History (charge):
     1424679577	100.000	fully-charged
   History (rate):
     1424679662	7.696	discharging

Device: /org/freedesktop/UPower/devices/line_power_hwxacpixacline
   native-path:          hw.acpi.acline
   power supply:         yes
   updated:              Mon Feb 23 09:21:01 2015 (3 seconds ago)
   has history:          no
   has statistics:       no
   line-power
     warning-level:       none
     online:              no
     icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
   power supply:         yes
   updated:              Thu Jan  1 01:00:00 1970 (1424679664 seconds ago)
   has history:          no
   has statistics:       no
   battery
     present:             yes
     state:               discharging
     warning-level:       none
     energy:              35.7272 Wh
     energy-full:         35.7272 Wh
     energy-rate:         7.696 W
     time to empty:       4.6 hours
     percentage:          100%
     icon-name:          'battery-full-symbolic'

Daemon:
   daemon-version:  0.99.0
   on-battery:      yes
   lid-is-closed:   no
   lid-is-present:  no
   is-docked:       no
   critical-action: PowerOff




Overall, this agrees with what the panel says; it's just notification 
bubbles that give absurd values.









>> Closing the lid does not lock the screen: this was working before (with
>> older upower).
>
> Perhaps with UPower 0.99.2 [1]?
>
> [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196394

This only made things worse:
_ lid closing still does not lock;
_ panel plugin now crashes;
_ in addition I can't open Settings -> Power Manager anymore (no errors, 
just nothing).



  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54EAF163.6060307>