Code Monkey home page Code Monkey logo

nemo-keepalive's Introduction

DisplayBlanking
===============

While DisplayBlanking.preventBlanking == true, keeps the system from
automatically blanking the display.

The application must set DisplayBlanking.preventBlanking = false when blanking
is again to be allowed.

Example use case: Video player

* the display is on due to user activity
* video playback is started
* video player sets DisplayBlanking.preventBlanking = true
* video playback is paused/stopped
* video player sets DisplayBlanking.preventBlanking = false

The current visibility of the display is given by DisplayBlanking.status
and can be one of:
 - DisplayBlanking.On
 - DisplayBlanking.Dimmed
 - DisplayBlanking.Off
 - DisplayBlanking.Unknown

This can be used to disable updates while the display is off, for example.


PeriodicBackgroundProcessing
============================

When <enabled> == true, wakes the process every <interval> seconds - even if
the system has entered late suspend.

The application can specify the wakeup <interval>, but do note that it is
subject to rounding done at the iphb daemon (currently part of dsme).

Application is notified of the wakeup via <activeChanged> signal.

NOTE: The <activeChanged> signal handler must not block.

The application must check that <active> == true before starting processing,
and must set it back to false after finishing to allow normal suspend policy
to take effect.

Example use case: RSS reader

* sets the <interval> = 600 [10 minutes]
* sets <enabled> = true
* at the next 10 global wakeup slot time the <activeChanged> is signaled
  and the system is blocked from going in to late suspend
* after finishing the RSS feed updating the app sets <active> = false
* the system can suspend (unless some other policy is blocking it)
* at the next 10 global wakeup slot time the cycle repeats

nemo-keepalive's People

Contributors

spiiroin avatar thp avatar martinjones avatar pvuorela avatar faenil avatar vdvsx avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.