Hi Stuart,

I can reproduce the issue with an up to date Jessie.

1st scenario (not working):
I boot the notebook with battery power, I login on KDM and when the KDE 
desktop is ready I wait till the warning (11%) and critical (10%) thresholds 
are reached but nothing happens, no messages and no suspend.

"upower -d" output after login:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              So 08 Mär 2015 01:32:27 CET (16 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/battery_BAT0
  native-path:          BAT0
  vendor:               Panasonic
  model:                DELL JD6066
  serial:               1135
  power supply:         yes
  updated:              So 08 Mär 2015 01:32:29 CET (14 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       low
    energy:              4,2513 Wh
    energy-empty:        0 Wh
    energy-full:         26,8509 Wh
    energy-full-design:  56,61 Wh
    energy-rate:         19,0476 W
    voltage:             11,2 V
    time to empty:       13,4 minutes
    percentage:          15%
    capacity:            47,4314%
    technology:          lithium-ion
    icon-name:          'battery-low-symbolic'
  History (charge):
    1425774747  15,000  charging
    1425774698  0,000   unknown
  History (rate):
    1425774749  19,048  discharging
    1425774747  26,784  charging
    1425774698  0,000   unknown

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Do 01 Jan 1970 01:00:00 CET (1425774763 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       low
    energy:              4,2513 Wh
    energy-full:         26,8509 Wh
    energy-rate:         19,0476 W
    time to empty:       13,4 minutes
    percentage:          15%
    icon-name:          'battery-low-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep



"upower -d" at 7% battery which is 3% below the critical threshold:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              So 08 Mär 2015 01:32:27 CET (341 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/battery_BAT0
  native-path:          BAT0
  vendor:               Panasonic
  model:                DELL JD6066
  serial:               1135
  power supply:         yes
  updated:              So 08 Mär 2015 01:37:59 CET (9 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       critical
    energy:              1,9647 Wh
    energy-empty:        0 Wh
    energy-full:         26,8509 Wh
    energy-full-design:  56,61 Wh
    energy-rate:         24,864 W
    voltage:             10,608 V
    time to empty:       4,7 minutes
    percentage:          7%
    capacity:            47,4314%
    technology:          lithium-ion
    icon-name:          'battery-caution-symbolic'
  History (charge):
    1425775079  7,000   discharging
    1425775019  8,000   discharging
    1425774989  9,000   discharging
  History (rate):
    1425775079  24,864  discharging
    1425775049  25,563  discharging
    1425775019  25,397  discharging
    1425774989  27,506  discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Do 01 Jan 1970 01:00:00 CET (1425775088 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       critical
    energy:              1,9647 Wh
    energy-full:         26,8509 Wh
    energy-rate:         24,864 W
    time to empty:       4,7 minutes
    percentage:          7%
    icon-name:          'battery-caution-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep



2nd scenario (not working):
I boot the notebook with AC power, I login on KDM and when the KDE desktop is 
ready I disconnect the AC adaptor. I wait till the warning and critical 
thresholds are reached but nothing happens, no messages and no suspend.



3rd scenario (working):
I boot the notebook with AC power. When on KDM I physically remove the 
battery. Then I login. When the KDE desktop is ready then I insert the battery 
and disconnect the AC adaptor. I wait till the warning (11%) and critical 
(10%) thresholds are reached and everything is working as expected. I get a 
warning message, then I get a critical message and 30 seconds later the 
notebook is suspending.

"upower -d" after login on AC power with battery removed:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              So 08 Mär 2015 01:44:26 CET (57 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:         no
  updated:              Do 01 Jan 1970 01:00:00 CET (1425775523 seconds ago)
  has history:          no
  has statistics:       no
  unknown
    warning-level:       none
    icon-name:          ''

Daemon:
  daemon-version:  0.99.1
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep



"upower -d" with battery added:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              So 08 Mär 2015 01:44:26 CET (111 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/battery_BAT0
  native-path:          BAT0
  vendor:               Panasonic
  model:                DELL JD6066
  serial:               1135
  power supply:         yes
  updated:              So 08 Mär 2015 01:46:04 CET (13 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              4,7841 Wh
    energy-empty:        0 Wh
    energy-full:         26,8509 Wh
    energy-full-design:  56,61 Wh
    energy-rate:         0,0111 W
    voltage:             11,368 V
    percentage:          17%
    capacity:            47,4314%
    technology:          lithium-ion
    icon-name:          'battery-low-charging-symbolic'
  History (charge):
    1425775559  17,000  charging
    1425775559  0,000   unknown
  History (rate):
    1425775559  0,011   charging
    1425775559  0,000   unknown

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Do 01 Jan 1970 01:00:00 CET (1425775577 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               charging
    warning-level:       none
    energy:              4,7841 Wh
    energy-full:         26,8509 Wh
    energy-rate:         0,0111 W
    percentage:          17%
    icon-name:          'battery-low-charging-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep


"upower -d" with AC disconnected:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              So 08 Mär 2015 01:46:24 CET (19 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/battery_BAT0
  native-path:          BAT0
  vendor:               Panasonic
  model:                DELL JD6066
  serial:               1135
  power supply:         yes
  updated:              So 08 Mär 2015 01:46:26 CET (17 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       low
    energy:              4,9284 Wh
    energy-empty:        0 Wh
    energy-full:         26,8509 Wh
    energy-full-design:  56,61 Wh
    energy-rate:         19,3251 W
    voltage:             11,144 V
    time to empty:       15,3 minutes
    percentage:          18%
    capacity:            47,4314%
    technology:          lithium-ion
    icon-name:          'battery-low-symbolic'
  History (charge):
    1425775584  18,000  charging
    1425775559  17,000  charging
    1425775559  0,000   unknown
  History (rate):
    1425775586  19,325  discharging
    1425775559  0,011   charging
    1425775559  0,000   unknown

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Do 01 Jan 1970 01:00:00 CET (1425775603 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       low
    energy:              4,9284 Wh
    energy-full:         26,8509 Wh
    energy-rate:         19,3251 W
    time to empty:       15,3 minutes
    percentage:          18%
    icon-name:          'battery-low-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep



"upower -d" a few seconds before suspend:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes
  updated:              So 08 Mär 2015 01:46:24 CET (342 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/battery_BAT0
  native-path:          BAT0
  vendor:               Panasonic
  model:                DELL JD6066
  serial:               1135
  power supply:         yes
  updated:              So 08 Mär 2015 01:51:56 CET (10 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       low
    energy:              2,8638 Wh
    energy-empty:        0 Wh
    energy-full:         26,8509 Wh
    energy-full-design:  56,61 Wh
    energy-rate:         28,6491 W
    voltage:             10,56 V
    time to empty:       6,0 minutes
    percentage:          10%
    capacity:            47,4314%
    technology:          lithium-ion
    icon-name:          'battery-low-symbolic'
  History (charge):
    1425775916  10,000  discharging
    1425775886  11,000  discharging
    1425775856  12,000  discharging
  History (rate):
    1425775916  28,649  discharging
    1425775886  25,641  discharging
    1425775856  24,453  discharging
    1425775826  31,946  discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  updated:              Do 01 Jan 1970 01:00:00 CET (1425775926 seconds ago)
  has history:          no
  has statistics:       no
  battery
    present:             yes
    state:               discharging
    warning-level:       low
    energy:              2,8638 Wh
    energy-full:         26,8509 Wh
    energy-rate:         28,6491 W
    time to empty:       6,0 minutes
    percentage:          10%
    icon-name:          'battery-low-symbolic'

Daemon:
  daemon-version:  0.99.1
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep



It looks to me that upower has no issues with the battery, what do you think?

I'm really interested to sort this issue out but need some help to get a 
better understanding how PowerDevil, libsolid4, upower and the kernel are 
working together. Also some details how to further troubleshoot the issue are 
very appreciated.

Thanks

Andreas


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to