atraso de alteração do status da alimentação do indicador

5

Eu recentemente migrei para o 16.04 LTS de 64 bits do 14.04 LTS de 32 bits no meu laptop Toshiba L645. Estou enfrentando um problema com o indicador de energia no painel da unidade. Quando eu mudo a fonte de energia para a bateria da CA, o indicator-power normalmente leva alguns minutos antes de atualizar o status. Eu sei que o sistema / hardware está funcionando bem, pois o udevadm monitor -u instantaneamente gera uma mudança:

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)

Acho que o problema real é o upower package que indicator-power usa para atualizar suas informações. Quando eu faço upower --monitor-detail eu posso ver que não está atualizando quando o estado de energia é alterado. Minha versão atual é upower (0.99.4-2ubuntu0.2) .

Atualização: Esse problema não é persistente, ou seja, às vezes, o indicator-power funciona instantaneamente, às vezes não.

Veja a saída upower daemon quando desconectado em 11:58:20.495 (observe que native-path diz inicialmente BAT1 , mas muda rapidamente para ACAD at 11:58:20.499 , mesmo que o computador ainda esteja desconectado. O native-path é corrigido apenas em 12:00:21.292 , completo dois minutos depois):

[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

No entanto, quando voltar na CA, a alteração é instantânea. Esse atraso só ocorre quando se muda o estado de CA para bateria!

    
por thethakuri 18.06.2016 / 05:46

0 respostas