指示灯电源状态变化延迟

指示灯电源状态变化延迟

我最近将 Toshiba L645 笔记本电脑上的 32 位 14.04 LTS 迁移到了 64 位 16.04 LTS。我遇到了 Unity 面板上的电源指示灯问题。当我将电源从交流电更改为电池时,通常indicator-power需要几分钟才能更新状态。我知道系统/硬件运行正常,因为udevadm monitor -u更改时会立即输出:

UDEV  [3276.620509] change   /devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD (power_supply)
UDEV  [3277.010187] change   /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT1 (power_supply) 
UDEV  [3451.378534] change   /devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD (power_supply) 
UDEV  [3451.770260] change   /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT1 (power_supply)

我认为真正的问题是用于更新其信息的upower软件包。当我这样做时,我可以看到它在电源状态改变时没有更新。我当前的版本是。indicator-powerupower --monitor-detailupower (0.99.4-2ubuntu0.2)

更新:这个问题不是持续性的,即有时候indicator-power可以立即起作用,有时候则不行。

这是upower daemon在 拔下电源时的输出11:58:20.495(请注意,native-path最初显示为BAT1但很快变为ACAD11:58:20.499即使计算机仍处于断开连接状态。整整两分钟后,native-path才在 得到更正12:00:21.292):

[11:58:20.495]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 11:58:20 AM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              4.46 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         65.355 W
    voltage:             12.568 V
    percentage:          100%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'

[11:58:20.499]  device changed:     /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Sat 18 Jun 2016 11:58:20 AM NPT (0 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

[11:58:20.499]  device changed:     /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Sat 18 Jun 2016 11:58:20 AM NPT (0 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              no
    icon-name:          'ac-adapter-symbolic'

[12:00:21.292]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.296]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.298]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.300]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.302]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.303]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.305]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.307]  device changed:     /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               LGC
  power supply:         yes
  updated:              Sat 18 Jun 2016 12:00:21 PM NPT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              4.401 Wh
    energy-empty:        0 Wh
    energy-full:         4.46 Wh
    energy-full-design:  4.4 Wh
    energy-rate:         1.754 W
    voltage:             12.105 V
    time to empty:       2.5 hours
    percentage:          98%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1466230521  98.000  discharging
  History (rate):
    1466230521  1.754   discharging

[12:00:21.309]  daemon changed:
  daemon-version:  0.99.4
  on-battery:      yes
  lid-is-closed:   no
  lid-is-present:  yes
  critical-action: HybridSleep

但是,当恢复交流电时,变化是即时的。只有当从交流电切换到电池状态时才会发生这种延迟!

相关内容