I'll attach the output of 'upower --dump' for three different situations: 1. Shortly before my notebook battery drains: Note that the reported battery percentage is 2.99967%, time to empty is 12.1 minutes. I have seen the exact same values over a period of more than 10 minutes – those are the lowest values I get, at this point they won't change anymore.
At the same time 'acpi -b' reports a battery percentage of 2%. 2. Shortly after I connected the power supply and booted up: Note that now the reported values are really strange now. Not only battery percentage is 0% but also energy-full and energy-full-design is 0 Wh. 'acpi -b' also reports a battery percentage of 0%. 3. A few minutes later (still charging): Values seem to be back to normal. Please have a look at the output of 'gsettings list-recursively org.gnome.settings-daemon.plugins.power' in comment #15, setting: 'percentage-action 2'. I assume this means that critical battery action should be fired at a battery percentage of 2%. As I said before, 'upower --dump' will never report a lower battery percentage than 2.99967%. Maybe this is why the critical battery action isn't executed? I'll try to manipulate this value and report back later.
stefan@rosa:~$ upower --dump Device: /org/freedesktop/UPower/devices/line_power_ACAD native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/ACPI0003:00/power_supply/ACAD power supply: yes updated: Thu Nov 1 12:45:56 2012 (3222 seconds ago) has history: no has statistics: no line-power online: no Device: /org/freedesktop/UPower/devices/battery_BAT1 native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0A:00/power_supply/BAT1 vendor: 13-17 model: Venturi serial: 01317 01/24/2012 power supply: yes updated: Thu Nov 1 13:39:32 2012 (6 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging energy: 1.798 Wh energy-empty: 0 Wh energy-full: 59.94 Wh energy-full-design: 59.94 Wh energy-rate: 8.88 W voltage: 10.314 V time to empty: 12.1 minutes percentage: 2.99967% capacity: 100% History (rate): 1351773572 8.880 discharging 1351773542 8.868 discharging 1351773512 8.991 discharging 1351773482 9.490 discharging
stefan@rosa:~$ upower --dump Device: /org/freedesktop/UPower/devices/line_power_ACAD native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/ACPI0003:00/power_supply/ACAD power supply: yes updated: Thu Nov 1 13:50:13 2012 (53 seconds ago) has history: no has statistics: no line-power online: yes Device: /org/freedesktop/UPower/devices/battery_BAT1 native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0A:00/power_supply/BAT1 vendor: 13-17 model: Venturi serial: 01317 01/24/2012 power supply: yes updated: Thu Nov 1 13:50:48 2012 (18 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging energy: 0 Wh energy-empty: 0 Wh energy-full: 0 Wh energy-full-design: 0 Wh energy-rate: 0 W voltage: 10.581 V percentage: 0% capacity: 100% History (charge): 1351774213 0.000 unknown History (rate): 1351774213 0.000 unknown Daemon: daemon-version: 0.9.17 can-suspend: yes can-hibernate yes on-battery: no on-low-battery: no lid-is-closed: yes lid-is-present: yes is-docked: yes
stefan@rosa:~$ upower --dump Device: /org/freedesktop/UPower/devices/line_power_ACAD native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/ACPI0003:00/power_supply/ACAD power supply: yes updated: Thu Nov 1 13:50:13 2012 (448 seconds ago) has history: no has statistics: no line-power online: yes Device: /org/freedesktop/UPower/devices/battery_BAT1 native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C0A:00/power_supply/BAT1 vendor: 13-17 model: Venturi serial: 01317 01/24/2012 power supply: yes updated: Thu Nov 1 13:57:18 2012 (23 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging energy: 2.397 Wh energy-empty: 0 Wh energy-full: 59.94 Wh energy-full-design: 59.94 Wh energy-rate: 27.8413 W voltage: 11.627 V time to full: 2.1 hours percentage: 3.999% capacity: 100% History (charge): 1351774578 3.999 charging History (rate): 1351774578 27.841 charging Daemon: daemon-version: 0.9.17 can-suspend: yes can-hibernate yes on-battery: no on-low-battery: no lid-is-closed: yes lid-is-present: yes is-docked: yes