Brightness setting does not persist across reboots

Bug #1364453 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gsettings-ubuntu-touch-schemas (Ubuntu)
Fix Released
Undecided
Charles Kerr
indicator-power (Ubuntu)
Fix Released
High
Charles Kerr
unity-system-compositor (Ubuntu)
Invalid
Undecided
Alberto Aguirre
unity8 (Ubuntu)
Invalid
High
Unassigned

Bug Description

When altering the brightness setting, it is always reset to the default value after a reboot. It is expected that changing the setting should persist across reboots.

Related branches

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Charles Kerr (charlesk) wrote :

We'll need to store this somewhere; probably in the "com.ubuntu.touch.system" schema alongside the auto-brightness flag setting?

In order to fail gracefully on non-touch (ie unity7), indicator-power would need to check g_settings_schema_source_lookup() to see if the schema's installed.

Changed in indicator-power (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Charles Kerr (charlesk)
tags: added: rtm14
affects: ubuntu-system-settings (Ubuntu) → unity8 (Ubuntu)
Revision history for this message
Michał Sawicz (saviq) wrote :

Yeah, and the shell needs to proxy the setting to u-s-c.

Revision history for this message
Charles Kerr (charlesk) wrote :

saviq, right now there doesn't seem to be any way to 'read' the brightness from u-s-c. So on startup, in order to know what the brightness level is, indicator-power calls u-s-c's setUserBrightness() to the default level suggested by powerd.

If the brightness was stored as a readwrite property in a schema somewhere, then i-power and u-s-s could simply read it at startup.

Moreover, it would allow u-s-s to decouple itself from i-power, as both could listen for schema changes to know when the brightness level changed. u-s-c doesn't emit "userBrightnessChanged" signals, so right now u-s-s delegates its brightness work to i-power so that they don't overwrite each other's changes.

Revision history for this message
Alberto Aguirre (albaguirre) wrote :

@charlesk,

Yeah com.ubuntu.touch.system schema is the best place for it.

Unity8 shell proxying the value could come later and then we could remove the IbBrightnessUscreenControl from indicator-power but that looks a bit more involved.

Thomas Strehl (strehl-t)
tags: added: touch-2014-09-25
Revision history for this message
Michael Terry (mterry) wrote :

This isn't a deal-breaker, but consider the future case of a Touch split greeter (or the desktop case where it's a current reality). What should the starting device brightness be on boot?

It seems like you are intending to store this value per-user inside the user session's gsettings database, which may not be accessible by boot time (in the split greeter cases -- encrypted home directories and all that). Even storing in AccountsService would feel weird, since this is kind of a device-wide setting, right?

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

mterry: we have a plan cooking for post-rtm to address these issues of system-wide settings vs. user-settings and split greeter.

Revision history for this message
Charles Kerr (charlesk) wrote :

I agree that this should be a systemwide preference and that it's not in this patch.

In this patch it's grouped with the existing auto-brightness setting, which should probably *also* be a systemwide one post-RTM.

kevin gunn (kgunn72)
Changed in unity-system-compositor (Ubuntu):
assignee: nobody → Alberto Aguirre (albaguirre)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gsettings-ubuntu-touch-schemas - 0.0.3+14.10.20140912-0ubuntu1

---------------
gsettings-ubuntu-touch-schemas (0.0.3+14.10.20140912-0ubuntu1) utopic; urgency=low

  [ Charles Kerr ]
  * Add 'brightness' setting to com.ubuntu.touch.system (LP: #1364453)
 -- Ubuntu daily release <email address hidden> Fri, 12 Sep 2014 18:52:08 +0000

Changed in gsettings-ubuntu-touch-schemas (Ubuntu):
status: New → Fix Released
Charles Kerr (charlesk)
Changed in gsettings-ubuntu-touch-schemas (Ubuntu):
assignee: nobody → Charles Kerr (charlesk)
Changed in indicator-power (Ubuntu):
assignee: nobody → Charles Kerr (charlesk)
status: Confirmed → Fix Released
Changed in unity-system-compositor (Ubuntu):
status: New → Invalid
Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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