Opened 4 years ago

Closed 3 years ago

Last modified 4 months ago

#11878 closed defect (fixed)

gnome battery icon unresponsive

Reported by: pgf Owned by: martin.langhoff
Priority: normal Milestone:
Component: gnome-desktop Version: Development build as of this date
Keywords: Cc: pbrobinson
Blocked By: Blocking:
Deployments affected: Action Needed: no action
Verified: no

Description (last modified by greenfeld)

sometimes the battery icon isn't visible, due to #11860. but if i make it visible (after multiple restarts), the battery icon is unresponsive to mouse control, and doesn't change when external power is inserted/removed.

(1.75, os10)

Change History (10)

comment:1 Changed 4 years ago by martin.langhoff

Investigating. Found some upowerd oddities (see below), but they seem harmless. Calling upower --dump and running upowerd --monitor always show upowerd having a clear idea of the state of the system.

The breakdown is in communicating with the gnome battery icon thingy (no longer an applet), which I cannot locate. I can find it in my F16 laptop system, but it's moved in F17/GNOME3.4 .

Filed upstream minor issues:

comment:2 Changed 4 years ago by martin.langhoff

  • Batti works well (but looks ugly, and still takes a good chunk of RAM)
  • Contacted Richard Hughes to help w diagnosis

comment:3 Changed 4 years ago by martin.langhoff

Hmmm, on my desktop machine, the battery control panel seems controlled by /usr/share/gnome-shell/js/ui/status/power.js -- which is part of gnome-shell. On the XO, installing gnome-shell does bring it in, but does not lead to a working battery icon.

Maybe someone on desktop-devel has a hint for us ~

comment:4 Changed 4 years ago by martin.langhoff

Got some help and managed to get debug logs from gnome-settings-daemon (where power-plugin drives the battery icon we care about).

In summary, the logs show that g-s-m's internal state is consistent with upower and with what the kernel events see.

Looks like the same #11860 bug that hides the icon prevents updates to the icon.

For reference, here's how to get good logs --

At the end of olpc-session

  G_MESSAGES_DEBUG=power-plugin # did not work for me
  # exec $desktop
  $desktop --debug 2>~/.desktop.errlog >~/.desktop.log

then replace g-s-d thus:

 mv /usr/libexec/gnome-settings-daemon{,.real}
 cat >/usr/libexec/gnome-settings-daemon <<EOF
 exec /usr/libexec/gnome-settings-daemon.real --debug
 chmod ugo+x /usr/libexec/gnome-settings-daemon

Now you are ready for

systemctl restart prefdm.service

comment:5 Changed 4 years ago by martin.langhoff

Updating to libgfx-marvell- and xorg-x11-drv-dove-0.3.5-1.olpc, now we get tooltips.

The tooltips track the state correctly, but the icon is still not being updated.

All tests on XO-1.75.

comment:6 Changed 4 years ago by dsd

My comment on #11860 was wrong - there is an issue with the gnome-settings-daemon code here. Fixed with

comment:7 Changed 3 years ago by dsd

  • Action Needed changed from diagnose to add to build
  • Cc pbrobinson added

comment:8 Changed 3 years ago by pbrobinson

  • Action Needed changed from add to build to test in build

gnome-settings-daemon-3.4.2-2.fc17 is in os13

comment:9 Changed 3 years ago by greenfeld

  • Action Needed changed from test in build to no action
  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed

The GNOME battery icon changes state when we plug/unplug a XO from external power in 12.1.0 os15.

comment:10 Changed 4 months ago by Quozl

  • Milestone 12.1.0 deleted

Milestone 12.1.0 deleted

Note: See TracTickets for help on using tickets.