Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all blanking timeouts separately configurable #251

Merged
merged 4 commits into from Feb 20, 2015
Merged

Make all blanking timeouts separately configurable #251

merged 4 commits into from Feb 20, 2015

Conversation

spiiroin
Copy link
Contributor

No description provided.

Using helper functions for getting initial setting value and installing
change notifier callback allows bit more compact code and makes it a bit
more difficult to make obvious errors.

Switch to using helper functions and add FIXMEs for problems spotted
while doing it.

No functional changes.

[mce] Use mce_gconf_track_xxx() helpers in display plugin. Contributes to JB#26550
The default and fallback values for settings should match. Having
both of them hard coded makes it too easy to get them out of sync.

Initialize fallback values from named constants. When possible use
the same constants to initialize also the built-in config defaults.

No functional changes.

[mce] Do not use hardcoded defaults for display plugin settings. Contributes to JB#26550
No change notification for dim timeouts setting was installed, which
meant change did not get effective without mce restart. Also no
fallback values were provided in case the config item is not available.

Use common defaults for built-in config and fallback values.

If dim timeouts setting changes, adjust related state variables
and reprogram blanking timers.

[mce] Provide fallback values dim timeouts setting and track changes. Contributes to JB#26550
We'd like to have different delays when blanking from application/home
view (ON->DIM->OFF, relatively short delay) vs blanking from lockscreen
(ON->OFF, give user some time to interact with the gui). Also it might
be desirable to have better control over ON->LPM_ON->LPM_OFF->OFF
transitions. Now LPM_OFF delay is hard coded and the rest use the same
configuration setting.

Provide separate blanking delay settings to use from:
* application/home screen after dimming (default 3 seconds)
* lockscreen (default 10 seconds)
* visual low power mode (default 5 seconds)
* blanked low power mode (default 5 seconds)

The defaults can changed by installing config files to /etc/mce.

And tweaked during runtime via D-Bus or mcetool options:
  --set-blank-timeout=<secs>
  --set-blank-from-lockscreen-timeout=<secs>
  --set-blank-from-lpm-on-timeout=<secs>
  --set-blank-from-lpm-off-timeout=<secs>

The changes made during runtime persist over mce/device restarts.

Also make sure the inactivity timeout is re-evaluated when parameters
it depends on are changed.

[mce] Make all blanking timeouts separately configurable. Fixes JB#26550
spiiroin added a commit that referenced this pull request Feb 20, 2015
Make all blanking timeouts separately configurable
@spiiroin spiiroin merged commit 1f33bae into nemomobile:master Feb 20, 2015
@spiiroin spiiroin deleted the jb26550_blank_timers branch February 20, 2015 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant