From owner-freebsd-xfce@FreeBSD.ORG Mon Feb 23 09:28:54 2015 Return-Path: Delivered-To: freebsd-xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5A12D8F; Mon, 23 Feb 2015 09:28:54 +0000 (UTC) Received: from smtp209.alice.it (smtp209.alice.it [82.57.200.105]) by mx1.freebsd.org (Postfix) with ESMTP id 72F4D7C4; Mon, 23 Feb 2015 09:28:54 +0000 (UTC) Received: from soth.ventu (95.236.11.204) by smtp209.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 547E30250BBB7B70; Mon, 23 Feb 2015 10:23:19 +0100 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.15.1/8.14.9) with ESMTP id t1N9MN83021131; Mon, 23 Feb 2015 10:22:23 +0100 (CET) (envelope-from ml@netfence.it) Message-ID: <54EAF163.6060307@netfence.it> Date: Mon, 23 Feb 2015 10:22:43 +0100 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Olivier Duchateau Subject: Re: [CFT] sysutils/xfce4-power-manager 1.4.2 References: <20150217231434.36f057bacaeb92eae93df57c@freebsd.org> <54E89568.1090602@netfence.it> <20150221171659.8d3d3ab86a58106a95279d92@freebsd.org> In-Reply-To: <20150221171659.8d3d3ab86a58106a95279d92@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 09:28:55 -0000 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.