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

Add support for constant velocity brightness changes #238

Merged
merged 3 commits into from Jan 28, 2015
Merged

Add support for constant velocity brightness changes #238

merged 3 commits into from Jan 28, 2015

Conversation

spiiroin
Copy link
Contributor

No description provided.

MCE_GCONF_DISPLAY_PATH was defined in two places. Possibly due to
moving option names away from display.h after separate als brightness
filtering plugin was created - long time ago.

Define all constants derived from MCE_GCONF_DISPLAY_PATH in display.h
and adjust naming of the values to match style used in display.h.
Previously MCE did all brightness adjustments via constant velocity
engine. This was replaced with constant duration engine which is more
suitable for quick fade in/out animations associated with display
state changes, but some users prefer constant velocity brightness
tuning when ALS adjustments are made.

If fade length settings have negative values, they are interpreted to
be constant velocity change of %/s type. Which means that for example
  mcetool --set-brightness-fade-als=-50
causes ALS adjustment happen in constant velocity that animates from
zero to maximum brightness in two seconds.

To keep the negative numbers from causing serious usability issues if
used for something else in addition to ALS tuning, the transition lengths
are capped so that they take maximum of 5 seconds.

Also, to keep the reaction to changes via settings ui responsive, the
brightness tuning happening immediately after config changes is made
to happen relatively fast contrary to possible fader length settings.

[mce] Add support for constant velocity brightness changes. Fixes JB#25458
spiiroin added a commit that referenced this pull request Jan 28, 2015
…tness

Add support for constant velocity brightness changes
@spiiroin spiiroin merged commit 113c9f2 into nemomobile:master Jan 28, 2015
@spiiroin spiiroin deleted the jb25458_constant_velocity_brightness branch January 28, 2015 16:39
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