After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689614 - Power redesign UX review
Power redesign UX review
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Power
git master
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
Control-Center Maintainers
: 689063 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-12-04 12:19 UTC by Allan Day
Modified: 2013-01-07 14:59 UTC
See Also:
GNOME target: 3.8
GNOME version: 3.7/3.8


Attachments
screenshots (46.62 KB, image/png)
2012-12-04 12:19 UTC, Allan Day
  Details
power high res mockups for comparision (35.76 KB, image/png)
2012-12-04 13:09 UTC, Andreas Nilsson
  Details
modified screenshot (66.64 KB, image/png)
2012-12-05 12:24 UTC, Allan Day
  Details
screenshot 1 (56.68 KB, image/png)
2012-12-06 14:07 UTC, Bastien Nocera
  Details
screenshot 2 (55.79 KB, image/png)
2012-12-06 14:29 UTC, Bastien Nocera
  Details
screenshot (94.31 KB, image/png)
2012-12-10 08:27 UTC, Bastien Nocera
  Details
squashed patch (81.15 KB, patch)
2012-12-17 19:35 UTC, Matthias Clasen
needs-work Details | Review
no batteries == no critical battery row (97.78 KB, image/png)
2012-12-19 04:32 UTC, Matthias Clasen
  Details
updated patch (85.67 KB, patch)
2012-12-19 05:25 UTC, Matthias Clasen
none Details | Review
updated patch (104.27 KB, patch)
2012-12-20 23:17 UTC, Matthias Clasen
needs-work Details | Review
screenshot - new battery section (101.24 KB, image/png)
2012-12-20 23:18 UTC, Matthias Clasen
  Details
screenshot - devices section, and secondary battery (95.57 KB, image/png)
2012-12-20 23:18 UTC, Matthias Clasen
  Details
screenshot - separate mobile and wifi switches (98.78 KB, image/png)
2012-12-20 23:19 UTC, Matthias Clasen
  Details

Description Allan Day 2012-12-04 12:19:28 UTC
Created attachment 230646 [details]
screenshots

The following is from testing the wip/power branch at 9802472793fe.

 * The list rows should all be the same height - those in the power saving and suspend & power off sections should be much taller

 * There needs to be the same amount of padding beneath the suspend and power off section as there is between the sections

 * Some of the status strings obviously need changing. "Charging - fully charged" can simply be "Charging"

 * The screen brightness slider should be the same length as the strength bars above

 * Each of the lists needs a border

Automatic suspend

 * The alignment of the status label ("On", "When on Battery Power") looks a bit off - there should be a little bit extra padding to the right

 * s/Suspend on Battery Power/When on Battery Power

 * s/Suspend when Plugged In/When Plugged In

 * Delay comboboxes get clipped on the right (see screenshot)

 * In the panel, don't use title case for the Automatic Suspend status label. eg. "When Plugged In" should be "When plugged in"
Comment 1 Andreas Nilsson 2012-12-04 13:09:00 UTC
Created attachment 230651 [details]
power high res mockups for comparision
Comment 2 Andreas Nilsson 2012-12-04 13:33:29 UTC
"Battery" and "Charging - fully charged" looks like they use the same font size. The second is smaller in the mockup.
Comment 3 Andreas Nilsson 2012-12-04 13:36:11 UTC
The mockup have a clearly defined line between the toolbar and the individual panels control area.

If this panel gets changed, all of them needs to:
Current: http://i.imgur.com/XDRxM.jpg
Proposed: http://i.imgur.com/iARyX.jpg

This also makes a clearer distinction between what areas are draggable and who are not.
Comment 4 Matthias Clasen 2012-12-04 17:02:34 UTC
thanks for the detailed review
Comment 5 Matthias Clasen 2012-12-05 04:06:07 UTC
I've pushed fixes for almost all of these points.

Known leftover todos at this point:

- implement screen power saving
- hide screen controls when not useful
- Figure out what to do about secondary batteries

To see what I mean with the last one, grep for 'fake' in cc-power-panel.c, and change the #if 0 to #if 1. You'll get some fake devices then, including a fully charged secondary battery.
Comment 6 Matthias Clasen 2012-12-05 04:12:32 UTC
One more known leftover: remove the padding outside the scrollbar
Comment 7 Allan Day 2012-12-05 12:24:48 UTC
Created attachment 230751 [details]
modified screenshot

Thanks for the updates, Matthias. This is looking very nice indeed. A couple of minor issues with the latest version (051cb44e0b7):

 * The window needs to be taller.
 * The padding above the battery section needs to be the same as the distance between the other sections below.
 * It would look better if there was more internal horizontal padding in each list row (and it would be good if this was consistent on both the right and left hand sides). 20px looked good in my experiments.
 * It would help if the section headings were indented by 6px.

See the modified screenshot for how these modifications look.
Comment 8 Bastien Nocera 2012-12-05 13:00:24 UTC
(In reply to comment #0)
<snip>
>  * Some of the status strings obviously need changing. "Charging - fully
> charged" can simply be "Charging"

It should be "charged".

>  * s/Suspend on Battery Power/When on Battery Power
> 
>  * s/Suspend when Plugged In/When Plugged In

You can't use those sentence constructs, they don't translate (imagine what would happen if one language put the combo box in the middle of that statement).
Comment 9 Bastien Nocera 2012-12-06 14:07:07 UTC
Created attachment 230889 [details]
screenshot 1
Comment 10 Bastien Nocera 2012-12-06 14:29:04 UTC
Created attachment 230893 [details]
screenshot 2
Comment 11 Matthias Clasen 2012-12-08 03:26:56 UTC
I've pushed fixes for the review in comment 7
Comment 12 Allan Day 2012-12-08 11:45:49 UTC
(In reply to comment #11)
> I've pushed fixes for the review in comment 7

Thanks Mattias. They look excellent.

One piece of feedback that we have got a few times is that people are uncertain what "Screen Power Saving" means. If anyone can think of a better label for this, let me know.

It could also be a good idea to add an explanatory subtext under "Screen Power Saving" (in the same style as the one below "Battery"). Something like "Automatically dims and blanks the screen", perhaps...
Comment 13 Bastien Nocera 2012-12-10 08:27:31 UTC
Created attachment 231115 [details]
screenshot

- White space under the "Power saving" section when screen brightness can't be changed
- "When battery power is critical" section is clipped
- Loads of white space at the bottom
Comment 14 Bastien Nocera 2012-12-10 08:35:28 UTC
I also get 2 warnings about unref'ing some objects on exit.
Comment 15 Matthias Clasen 2012-12-10 11:39:49 UTC
(In reply to comment #13)
> Created an attachment (id=231115) [details]
> screenshot
> 
> - White space under the "Power saving" section when screen brightness can't be
> changed
> - "When battery power is critical" section is clipped
> - Loads of white space at the bottom

These are size allocation bugs between gtk and egglistbox - haven't tracked those down.
Comment 16 Matthias Clasen 2012-12-10 11:40:21 UTC
(In reply to comment #14)
> I also get 2 warnings about unref'ing some objects on exit.

I believe these come out of the egglistbox code, will have a look
Comment 17 Matthias Clasen 2012-12-11 06:01:22 UTC
(In reply to comment #14)
> I also get 2 warnings about unref'ing some objects on exit.

These are fixed now.
Comment 18 Matthias Clasen 2012-12-12 11:35:05 UTC
The sizing issues are also fixed now
Comment 19 Matthias Clasen 2012-12-15 15:37:26 UTC
Bastien, I this branch is ready for another review and/or merge. All the issues pointed out previously have been addressed.
Comment 20 Matthias Clasen 2012-12-17 19:35:15 UTC
Created attachment 231769 [details] [review]
squashed patch
Comment 21 Bastien Nocera 2012-12-18 13:11:25 UTC
Review of attachment 231769 [details] [review]:

The killswitch code is a bit confused. You handle killswitches on the Bluetooth side, but not on the NM side.

I would do away with using separate code for both of those, and use the CcRfkillGlib code in the network panel instead.
Or possibly use cut'n'paste the related code from the bluetooth panel instead...

A couple of other comments:
- is there supposed to be so much white space around the panel (compared to the search panel for example)?
- automatic suspend has empty delays by default on my system (nothing matching the default values maybe?)
- there seems to be a bug in the focus drawing, the top item in a frame gets a dotted line on all for borders, tabbing to a lower one shows a dotted line on only 3 sides (no line at the top)
- On my desktop system "When battery power is critical" only offers "Power off" as upower says my machine cannot hibernate. There shouldn't be a drop-down, but a simple label instead.
- The "Screen Power Saving" string needs explaining
- The "Power Saving" frame probably needs some explanation, otherwise it looks plain bizarre. "You can turn off the devices you do not use to save energy".

::: panels/power/cc-power-panel.c
@@ +73,3 @@
+
+#ifdef HAVE_BLUETOOTH
+  BluetoothKillswitch *bt_killswitch;

Use the "default-adapter-powered" property of the BluetoothClient object instead.
We never actually set the killswitch to off in the Bluetooth panel, we only use it to know when the device is hard-locked.

Looking and modifying the powered property should be enough.

@@ +694,3 @@
     }
 
+#if 0

Remove those, or add a commented-out #define at the top of the file.

@@ +771,3 @@
+  priv->setting_brightness = TRUE;
+
+  /* push this to g-p-m */

g-p-m?

@@ +1075,3 @@
   g_ptr_array_unref (devices);
+
+#if 0

Ditto.

@@ +1192,3 @@
+  enabled = gtk_switch_get_active (sw);
+  g_debug ("Setting wifi %s", enabled ? "enabled" : "disabled");
+  nm_client_wireless_set_enabled (panel->priv->nm_client, enabled);

That doesn't disable WWAN hardware such as 3G dongles or WiMax (which nm_client_wwan_set_enabled() and nm_client_wimax_set_enabled() handle respectively).

@@ +1401,3 @@
+  const gchar *s;
+
+  ac_action = g_settings_get_enum (priv->gsd_settings, "sleep-inactive-ac-type");

Use the proper enums for this.

@@ +1406,3 @@
+  battery_timeout = g_settings_get_int (priv->gsd_settings, "sleep-inactive-battery-timeout");
+
+  if (ac_action == 5)

This would save us from using magic numbers.

@@ +1738,3 @@
+                            "org.gnome.SettingsDaemon",
+                            "/org/gnome/SettingsDaemon/Power",
+                            "org.gnome.SettingsDaemon.Power.Screen",

Should the keyboard backlight be handled as well?

@@ +1773,3 @@
+  g_object_unref (widget);
+
+  g_idle_add (grr, self);

Urgh.
Comment 22 Matthias Clasen 2012-12-19 04:31:10 UTC
(In reply to comment #21)
> Review of attachment 231769 [details] [review]:
> 
> The killswitch code is a bit confused. You handle killswitches on the Bluetooth
> side, but not on the NM side.
> 
> I would do away with using separate code for both of those, and use the
> CcRfkillGlib code in the network panel instead.
> Or possibly use cut'n'paste the related code from the bluetooth panel
> instead...

I'll have to look at that...


> A couple of other comments:
> - is there supposed to be so much white space around the panel (compared to the
> search panel for example)?

Compare to the mockups in https://live.gnome.org/Design/SystemSettings/Power ? Or maybe you are referring to the desktop case where we show less UI ? The patch as attached was forcing a fixed content height regardless of that; I've now changed it so that we only force the content height and show the scrollbar when there's enough UI to require scrolling.


> - automatic suspend has empty delays by default on my system (nothing matching
> the default values maybe?)

Yeah, I was not handling the default values right, indeed. Fixed in the next patch


> - there seems to be a bug in the focus drawing, the top item in a frame gets a
> dotted line on all for borders, tabbing to a lower one shows a dotted line on
> only 3 sides (no line at the top)

I'm seeing that too. Something between adwaita and egglistbox.


> - On my desktop system "When battery power is critical" only offers "Power off"
> as upower says my machine cannot hibernate. There shouldn't be a drop-down, but
> a simple label instead.


On a desktop system without battery, the entire row is supposed to be hidden. I'll attach a screenshot of what it looks like for me when I force 'no batteries'. However, the design was explicit about keeping the combobox if hibernate is not available:

"The hibernate option should be insensitive if the hardware capability is not present. That combobox should still be displayed, however."
Comment 23 Matthias Clasen 2012-12-19 04:32:03 UTC
Created attachment 231860 [details]
no batteries == no critical battery row
Comment 24 Matthias Clasen 2012-12-19 05:05:08 UTC
(In reply to comment #21)

> +
> +#ifdef HAVE_BLUETOOTH
> +  BluetoothKillswitch *bt_killswitch;
> 
> Use the "default-adapter-powered" property of the BluetoothClient object
> instead.
> We never actually set the killswitch to off in the Bluetooth panel, we only use
> it to know when the device is hard-locked.
> 
> Looking and modifying the powered property should be enough.
> 

Unfortunately, the property is readonly.
Comment 25 Matthias Clasen 2012-12-19 05:25:51 UTC
Created attachment 231861 [details] [review]
updated patch
Comment 26 Bastien Nocera 2012-12-20 08:35:54 UTC
Sorry, wrongly committed...
Comment 27 Matthias Clasen 2012-12-20 15:44:56 UTC
The focus rendering issue has been fixed in egg-list-box now.
Comment 28 Bastien Nocera 2012-12-20 16:23:44 UTC
I've tried fixing up some of the issues, but there's just too many things that I'm not happy with:
- Split the Wi-Fi toggle that does everything into 2 (Wi-Fi and Mobile Broadband, the latter for WiMax and cellular)
- I don't like the descriptions in the third person instead of actions. We're describing a switch, I'd prefer we used the imperative like everywhere else.
- "Screen Power Saving" isn't a good label, even with a description. We should turn on the screensaver/dpms a finite amount of time after the screen is locked, which would mean we can label it as "Dim screen when not in use" which is far clearer.
- Bluetooth switch should be disabled for now, and I'll handle making the bluetooth one shareable)
- I didn't have an explanation for the necessity of having a drop-down menu when there's a single possible value (and the others are disabled). Eg. my machine shows:
"When Battery Power is Critical" "Hibernate"
with "Hibernate" being dimmed because it's not possible on this machine. We should just show the only possible value (Power off) as a label.
- The Label under Battery shows "Using battery power". The battery isn't using battery power... It's discharging, or make it clearer that this is the power status for the computer
Comment 29 Allan Day 2012-12-20 17:31:31 UTC
(In reply to comment #28)
> I've tried fixing up some of the issues, but there's just too many things that
> I'm not happy with:
> - Split the Wi-Fi toggle that does everything into 2 (Wi-Fi and Mobile
> Broadband, the latter for WiMax and cellular)

You want to split it, or you don't think it should be split? The idea for this section is to help someone control their power consumption: if these facilities can be toggled in such a way as to (a) enable/disable specific features and (b) individually affect power consumption, then it would be good to have switches for them.

> - I don't like the descriptions in the third person instead of actions. We're
> describing a switch, I'd prefer we used the imperative like everywhere else.

I'm not sure I fully understand this. Can you give an example of a label that you don't like and what you think it should be changed to?

> - "Screen Power Saving" isn't a good label, even with a description. We should
> turn on the screensaver/dpms a finite amount of time after the screen is
> locked, which would mean we can label it as "Dim screen when not in use" which
> is far clearer.

The idea behind this feature was to combine dimming the screen with the timeout for blanking the screen. "Screen Power Saving" is meant to reflect that. If adjusting the screen blank time out doesn't make sense, or if someone can suggest a better label, then let's change it.

> - Bluetooth switch should be disabled for now, and I'll handle making the
> bluetooth one shareable)
> - I didn't have an explanation for the necessity of having a drop-down menu
> when there's a single possible value (and the others are disabled). Eg. my
> machine shows:
> "When Battery Power is Critical" "Hibernate"
> with "Hibernate" being dimmed because it's not possible on this machine. We
> should just show the only possible value (Power off) as a label.

Makes sense.

> - The Label under Battery shows "Using battery power". The battery isn't using
> battery power... It's discharging, or make it clearer that this is the power
> status for the computer

When charging, the string should read "Foo hours bar minutes until fully charged". When discharging, it should read "Foo hours bar minutes remaining".
Comment 30 Matthias Clasen 2012-12-20 23:17:13 UTC
Created attachment 232013 [details] [review]
updated patch
Comment 31 Matthias Clasen 2012-12-20 23:18:13 UTC
Created attachment 232014 [details]
screenshot - new battery section
Comment 32 Matthias Clasen 2012-12-20 23:18:46 UTC
Created attachment 232015 [details]
screenshot - devices section, and secondary battery
Comment 33 Matthias Clasen 2012-12-20 23:19:16 UTC
Created attachment 232016 [details]
screenshot - separate mobile and wifi switches
Comment 34 Matthias Clasen 2012-12-20 23:24:09 UTC
The latest patch addresses most of the issues Bastien has raised:

- splits the wifi switch into wifi and mobile

- redone bluetooth using ::default-adapter-powered instead of killswitch

- make the hibernate combo a simple label if only one option

I've also implemented the latest battery section design: https://raw.github.com/gnome-design-team/gnome-mockups/master/system-settings/power/power-hi-res.png
To do so, I had to port the code to get battery information from up-client instead of calling into gsd's power plugin.
Comment 35 Matthias Clasen 2012-12-22 16:21:16 UTC
*** Bug 689063 has been marked as a duplicate of this bug. ***
Comment 36 Bastien Nocera 2013-01-03 16:49:51 UTC
(In reply to comment #29)
> (In reply to comment #28)
> > I've tried fixing up some of the issues, but there's just too many things that
> > I'm not happy with:
> > - Split the Wi-Fi toggle that does everything into 2 (Wi-Fi and Mobile
> > Broadband, the latter for WiMax and cellular)
> 
> You want to split it, or you don't think it should be split? The idea for this
> section is to help someone control their power consumption: if these facilities
> can be toggled in such a way as to (a) enable/disable specific features and (b)
> individually affect power consumption, then it would be good to have switches
> for them.

I want it split, and that's fixed in Matthias' patch.

> > - I don't like the descriptions in the third person instead of actions. We're
> > describing a switch, I'd prefer we used the imperative like everywhere else.
> 
> I'm not sure I fully understand this. Can you give an example of a label that
> you don't like and what you think it should be changed to?

"Automatically dims and blanks the screen" isn't an action, it's what happens when idle. But the other switches are instant.

Similarly, "Turns off wireless devices". We usually use the imperative "Turn off wireless devices" rather than a descriptive third-person (Turns off wireless devices).

> > - "Screen Power Saving" isn't a good label, even with a description. We should
> > turn on the screensaver/dpms a finite amount of time after the screen is
> > locked, which would mean we can label it as "Dim screen when not in use" which
> > is far clearer.
> 
> The idea behind this feature was to combine dimming the screen with the timeout
> for blanking the screen.

I don't understand what it does... Means it just blanks the screen when it used to dim it? It reduces the amount of time before dimming? Or before blanking?

> "Screen Power Saving" is meant to reflect that. If
> adjusting the screen blank time out doesn't make sense, or if someone can
> suggest a better label, then let's change it.

I think the feature is too hard to explain. This needs to be simplified (both the functionality and the label).
Comment 37 Bastien Nocera 2013-01-03 16:51:21 UTC
Review of attachment 232013 [details] [review]:

::: panels/power/cc-power-panel.c
@@ +253,3 @@
           case UP_DEVICE_STATE_PENDING_DISCHARGE:
             /* TRANSLATORS: primary battery */
+            details = g_strdup (_("Discharging"));

Allan said:
> When discharging, it should read "Foo hours bar minutes remaining".

@@ +1015,2 @@
   devices = up_client_get_devices (self->priv->up_client);
+g_print ("got %d devices from upower\n", devices->len);

Remove the debug please (or use g_debug).

@@ +1333,3 @@
+  gtk_box_pack_start (GTK_BOX (box), box2, TRUE, TRUE, 0);
+
+  label = gtk_label_new (_("Screen _Power Saving"));

This is still a horrible label.

@@ +1399,3 @@
+  gtk_box_pack_start (GTK_BOX (box2), label, TRUE, TRUE, 0);
+
+  label = gtk_label_new ("Turns off WWAN and WiMax devices");

I don't think that WWAN should appear in user-visible strings. Mobile broadband is better even if the wording makes us think that WiMax both is and isn't mobile broadband (because of the header). Better than using WWAN anyway.
Comment 38 Matthias Clasen 2013-01-03 17:27:24 UTC
Looking at my phone, it has 3 screen-related settings (the second is

Brightness                                                  [ ] 
Adjust brightness of screen

Brightness                                                  [10 %]
10%

Screen timeout                                              [15 seconds]
Adjust the delay before the screen automatically turns off
Comment 39 Allan Day 2013-01-04 10:34:05 UTC
(In reply to comment #36)
> > > - Split the Wi-Fi toggle that does everything into 2 (Wi-Fi and Mobile
> > > Broadband, the latter for WiMax and cellular)
> > 
> > You want to split it, or you don't think it should be split? The idea for this
> > section is to help someone control their power consumption: if these facilities
> > can be toggled in such a way as to (a) enable/disable specific features and (b)
> > individually affect power consumption, then it would be good to have switches
> > for them.
> 
> I want it split, and that's fixed in Matthias' patch.

Cool.

> > > - I don't like the descriptions in the third person instead of actions. We're
> > > describing a switch, I'd prefer we used the imperative like everywhere else.
> > 
> > I'm not sure I fully understand this. Can you give an example of a label that
> > you don't like and what you think it should be changed to?
> 
> "Automatically dims and blanks the screen" isn't an action, it's what happens
> when idle. But the other switches are instant.
> 
> Similarly, "Turns off wireless devices". We usually use the imperative "Turn
> off wireless devices" rather than a descriptive third-person (Turns off
> wireless devices).

The phrasing in the mockups makes sense to me as a description of the label above. It's a subtext (a label for a label) rather than a label for the control.

> > > - "Screen Power Saving" isn't a good label, even with a description. We should
> > > turn on the screensaver/dpms a finite amount of time after the screen is
> > > locked, which would mean we can label it as "Dim screen when not in use" which
> > > is far clearer.
> > 
> > The idea behind this feature was to combine dimming the screen with the timeout
> > for blanking the screen.
> 
> I don't understand what it does... Means it just blanks the screen when it used
> to dim it? It reduces the amount of time before dimming? Or before blanking?

If the feature is on, the screen is dimmed when the user is idle (the same as the old "dim screen when inactive" or whatever it was). It will also reduce the timeout for blanking the screen.

> > "Screen Power Saving" is meant to reflect that. If
> > adjusting the screen blank time out doesn't make sense, or if someone can
> > suggest a better label, then let's change it.
> 
> I think the feature is too hard to explain. This needs to be simplified (both
> the functionality and the label).

That's a fair point. The concept for this feature originated from the need to deal with the existing options in the screen panel ("turn screen off when inactive for:" and "dim screen when inactive"); the solution was to combine them.

However, perhaps it would be better to keep a control for the "dim screen when idle" functionality and make "turn screen off when inactive" purely automatic or into a switch (rather than a combobox with different timeouts).
Comment 40 Bastien Nocera 2013-01-04 11:37:49 UTC
(In reply to comment #38)
> Looking at my phone, it has 3 screen-related settings (the second is

Mine has brightness too, along with a single "time-out" feature to select when the screen gets locked (and the screen turned off).

I think we could expose the lock timeout, dimming and turning off the screen would be respectively fractions and multipliers of that:
- dim after 1/2 the lock timeout or 1 minute, whichever is lower
- turn off the screen after 2x the lock timeout on desktops, instantly on laptops (or 2x on AC, instantly on battery).

This would mean that the power panel has something similar to the privacy panel.

Also, this would mean having the ability to pop down the shell's shield without having to enter a password. Is that possible yet?
Comment 41 Bastien Nocera 2013-01-04 17:27:29 UTC
(In reply to comment #37)
> Review of attachment 232013 [details] [review]:
> 
> ::: panels/power/cc-power-panel.c
> @@ +253,3 @@
>            case UP_DEVICE_STATE_PENDING_DISCHARGE:
>              /* TRANSLATORS: primary battery */
> +            details = g_strdup (_("Discharging"));

That's still to do. The "Screen Power Saving" section discussion goes to bug 691002.
Comment 42 Matthias Clasen 2013-01-04 23:40:01 UTC
(In reply to comment #41)
> (In reply to comment #37)
> > Review of attachment 232013 [details] [review] [details]:
> > 
> > ::: panels/power/cc-power-panel.c
> > @@ +253,3 @@
> >            case UP_DEVICE_STATE_PENDING_DISCHARGE:
> >              /* TRANSLATORS: primary battery */
> > +            details = g_strdup (_("Discharging"));
> 
> That's still to do. The "Screen Power Saving" section discussion goes to bug
> 691002.

If you look at the entire get_details_string() function, you will notice that this string is only chosen if we don't have information about the remaining time. If we do have a time, we use this code:

                /* TRANSLATORS: %1 is a time string, e.g. "1 hour 5 minutes" */
                details = g_strdup_printf (_("%s remaining"), time_string);

So I think this is probably as good as we can do.
Comment 43 Bastien Nocera 2013-01-07 14:59:44 UTC
OK, let's consider this done for now then.