Faça o ícone da bateria systray ficar vermelho quando a bateria estiver fraca

1

14 de abril, 2018 atualização

Aparentemente, o problema desapareceu por conta própria:

power-dsnippetrelevante:

Device:/org/freedesktop/UPower/devices/keyboard_0003o046Do2010x0009native-path:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.0003/0003:046D:2010.0009vendor:Logitech,Inc.model:K800serial:6DB54BFEpowersupply:noupdated:Sat14Apr201805:26:41PMMDT(27secondsago)hashistory:yeshasstatistics:nokeyboardpresent:yesrechargeable:yesstate:dischargingwarning-level:nonepercentage:20%icon-name:'battery-low-symbolic'Device:/org/freedesktop/UPower/devices/mouse_0003o046Do101Ax0008native-path:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.0003/0003:046D:101A.0008vendor:Logitech,Inc.model:PerformanceMXserial:E6CE4571powersupply:noupdated:Sat14Apr201805:26:40PMMDT(28secondsago)hashistory:yeshasstatistics:nomousepresent:yesrechargeable:yesstate:dischargingwarning-level:nonepercentage:20%icon-name:'battery-low-symbolic'

Versãodokernel:

$uname-r4.14.27-041427-generic

Analisandooslogsdeinicializaçãocombasenadatadapergunta,émostradaumaversãodiferentedokernel(4.14.23):

$journalctl--list-boots-23e9eef9c57f3543d09223d720290e0c4bTue2018-03-2716:47:13MDT—Tue2018-03-2717:16:48MDT-2277c66f077f0e47a5b63f96d0e26fa9daTue2018-03-2717:17:52MDT—Fri2018-03-3011:17:30MDT-21320ccedf358b4aba8b4786a1bec35b96Fri2018-03-3011:52:18MDT—Fri2018-03-3016:29:28MDT-20d80a4dfc777b41fe86ae6f32c9a29aa1Sat2018-03-3108:45:57MDT—Sun2018-04-0110:18:56MDT$journalctl-b-22--LogsbeginatMon2018-03-0505:53:18MST,endatSat2018-04-1417:30:05MDT.--Mar2717:17:52aliensystemd-journald[295]:Runtimejournal(/run/log/journal/)is8.0M,maMar2717:17:52alienkernel:Linuxversion4.14.23-041423-generic(kernel@kathleen)(gccveMar2717:17:52alienkernel:Commandline:BOOT_IMAGE=/boot/vmlinuz-4.14.23-041423-generic

Euestouprocurandooreversodestaperguntaondeelesqueremdesligaroíconedabateriavermelhanabandejadosistema: Como desabilitar o status de energia do mouse na potência do indicador? .

O ícone Minha bandeja do sistema (indicador de aplicativo) não fica vermelho quando a bateria está fraca no teclado ou no mouse:

EutenhoqueconfiarnoLEDdotecladoficandovermelhoquandoabateriaestáprestesamorrerouverifiquemanualmenteopainelPowerStatistics(exibidoacima).

Oíconesystraycostumavamudarparavermelhoquandoabateriadomouseoudotecladoestavafraca(20%)quandoconectadoaolaptopantigo;DellInspiron17R7720SEcomIvybridgei-73630QM.Nuncafuncionounonovolaptop;DellAlienware17R3comSkylakei-76700HQ.

Possivelmenterelacionado,omouseeotecladonuncaapareceramnopainelPowerStatisticsatéqueeuforceiorecarregamentododriverduranteainicialização: O mouse da Logitech Performance MX mostra como" desconhecido "em Power Statistics

Alguma idéia de como fazer o ícone da bateria do Systray ficar vermelho quando a bateria do mouse ou do teclado estiver fraca?

Detalhes relevantes

upower -d snippets (depois que as baterias foram recarregadas):

Device: /org/freedesktop/UPower/devices/mouse_0003o046Do101Ax0008
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.0003/0003:046D:101A.0008
  vendor:               Logitech, Inc.
  model:                Performance MX
  serial:               E6CE4571
  power supply:         no
  updated:              Wed 28 Mar 2018 05:28:08 PM MDT (106 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          90%
    icon-name:          'battery-full-symbolic'

Device: /org/freedesktop/UPower/devices/keyboard_0003o046Do2010x0009
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:046D:C52B.0003/0003:046D:2010.0009
  vendor:               Logitech, Inc.
  model:                K800
  serial:               6DB54BFE
  power supply:         no
  updated:              Wed 28 Mar 2018 05:28:08 PM MDT (106 seconds ago)
  has history:          yes
  has statistics:       no
  keyboard
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    percentage:          90%
    icon-name:          'battery-full-symbolic'

% de co_de% relevante provavelmente se aplica apenas à bateria principal. ou seja, eu ficaria surpreso se o laptop fosse suspenso enquanto a bateria principal estivesse a 100%, mas a bateria do mouse falisse:

$ gsettings get org.gnome.settings-daemon.plugins.power percentage-critical
3
$ gsettings get org.gnome.settings-daemon.plugins.power percentage-action
2
$ gsettings get org.gnome.settings-daemon.plugins.power use-time-for-policy
false
$ gsettings get org.gnome.settings-daemon.plugins.power percentage-low
10
    
por WinEunuuchs2Unix 29.03.2018 / 01:40

0 respostas