Wake system specification
Mobile platforms (phones, tablets, laptops, ...) are very restricted on power consumption and therefore implement aggressive sleep schedules. On the other hand, we are used to (almost) instant notifications based on (external) events like incoming messages via the internet, alarms on times far in the future or periodic sensor data readouts.
Therefore, I suggest a service which will manage wake up requests, allowing/declining them based on complex policies (e.g. power-saving mode, user settings, available battery, time-in-day, ...), app-specific permissions etc. A common specification for such requests between apps and system service is required and should be the scope of this issue.
Things to work out:
- Permissions
- Where to implement such API? DBusAPI, Desktop file, AppStream manifest, ...