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

Use hbtimer for led pattern auto-deactivation #294

Merged
merged 1 commit into from Jun 18, 2015
Merged

Use hbtimer for led pattern auto-deactivation #294

merged 1 commit into from Jun 18, 2015

Conversation

spiiroin
Copy link
Contributor

It is possible to configure mce led patterns to automatically deactivate
after specified amount of seconds. However the logic uses normal user
space timers which makes the feature pretty much useless in devices
that use suspend type power management. Also a common timer is used
for controlling the timeout, which means the period gets restarted
if some higher priority pattern gets temporarily activated.

Use hbtimer for pattern deactivation so that the device will wake up from
suspend to deactivate the led.

Use separate timer for each pattern that is configured to use pattern
timeout. This makes it possible to handle overlapping pattern activations
with timeouts correctly - whether things actually work as expected depends
on the pattern activation side logic too.

Also the timers are not stopped if led feature is disabled. This makes
the auto deactivation work also if the feature is re-enabled later on.

@spiiroin
Copy link
Contributor Author

Fixed some tabs vs spaces issues and updated header deps

It is possible to configure mce led patterns to automatically deactivate
after specified amount of seconds. However the logic uses normal user
space timers which makes the feature pretty much useless in devices
that use suspend type power management. Also a common timer is used
for controlling the timeout, which means the period gets restarted
if some higher priority pattern gets temporarily activated.

Use hbtimer for pattern deactivation so that the device will wake up from
suspend to deactivate the led.

Use separate timer for each pattern that is configured to use pattern
timeout. This makes it possible to handle overlapping pattern activations
with timeouts correctly - whether things actually work as expected depends
on the pattern activation side logic too.

Also the timers are not stopped if led feature is disabled. This makes
the auto deactivation work also if the feature is re-enabled later on.

[mce] Use hbtimer for led pattern auto-deactivation. Fixes JB#29180
@spiiroin
Copy link
Contributor Author

Rebased

spiiroin added a commit that referenced this pull request Jun 18, 2015
Use hbtimer for led pattern auto-deactivation
@spiiroin spiiroin merged commit 85ee1e8 into nemomobile:master Jun 18, 2015
@spiiroin spiiroin deleted the jb29180_led_timeout branch June 18, 2015 05:00
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