Battery menu is invisible in the login screen

Bug #830175 reported by Matthew Paul Thomas
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
indicator-power (Ubuntu)
Fix Released
Undecided
Unassigned
unity-greeter (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

indicator-power 0.6-0ubuntu2, unity-greeter 0.0.2-0ubuntu3, lightdm 0.9.3-0ubuntu5, Ubuntu Ocelot

1. At the login screen, open the clock menu, then move to the left.

What happens: The battery menu appears from an empty sliver of the menu bar.
What should happen: The title of the battery menu appears as normal.

Changed in indicator-power (Ubuntu):
status: New → Confirmed
Changed in lightdm (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, what version of unity-greeter do you use?

Changed in lightdm (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
affects: lightdm (Ubuntu) → unity-greeter (Ubuntu)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

unity-greeter 0.0.2-0ubuntu3.

description: updated
Changed in unity-greeter (Ubuntu):
status: Incomplete → New
Revision history for this message
Jason Conti (jconti) wrote :

I think there are two issues here.

indicator-power only shows its image if there are batteries available to avoid showing the battery-missing icon on systems without a battery. indicator-applet handles this situation by connecting to the show/hide signals of the indicator entry's image and label and then showing/hiding the indicator menuitem when a signal is received.

Also, indicator-power requires org.gnome.SettingsDaemon.Power to gather information on the devices, but it seems that gnome-settings-daemon needs to be started before the GetDevices call will succeed (it doesn't seem to load the power plugin until then, :0-greeter.log will contain:
Error getting devices: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gnome.SettingsDaemon.Power' on object at path /org/gnome/SettingsDaemon/Power
).

My first thought was to call org.gnome.SettingsDaemon.Start() in unity-greeter/src/user-list.vala:setup_indicators before loading any of the indicators. This seems to work, but it may better to handle it in indicator-power.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

p:~jconti/unity-greeter/hide-hidden-indicators contains a fix, awaiting contributor agreement sign-off to merge it.

Changed in unity-greeter (Ubuntu):
status: New → In Progress
Changed in unity-greeter (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in unity-greeter 0.0.6

Changed in unity-greeter (Ubuntu):
status: Fix Committed → Fix Released
Javier Jardón (jjardon)
Changed in indicator-power (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.