PowerDevil/new: Difference between revisions
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
Power Management is a tricky matter, we need it to be extensible so all use cases can be fit. | Power Management is a tricky matter, we need it to be extensible so all use cases can be fit. | ||
for example, executing a script when AC is disconnected. | for example, executing a script when AC is disconnected. | ||
== Backends == | |||
We need multiple backends, a clear example of it is KDE Connect. Question is, how do we want them to look like? | |||
First idea is Binary plugins, just good old QLibrary but that might be dangerous given that an in correct written plugin might break all app's linking to libsolidpower. | |||
Another idea would be create some kind of DBus api that people can use to add batteries, it could even have the same API UPower have... just in different service/path. This will be safe and will allow third parties to create batteries in a safe way. |
Revision as of 14:23, 8 October 2013
Brightness
Displays
Technical stuff, XRandR, Udev, helper... Smooth brightness change Try to avoid double brightness changing (some hardware is wired in a way that it does not require us to actually change the brightness, but we still have to show the osd)
Keyboards
Technical stuff, upower? udev as well?
Inhibition
Types of inhibition, api, fd.o spects Note to myself: fd.o spec should inhibit dimming as well ?
Devices
dpms
Technical info, most probably port to xcb
dimdisplay
Technical info
Suspend
Technical info (suspend vs hibernation vs hybrid)
Special buttons
Lid
What should happen by default? and when you plug a monitor?
Power
Showing menu by default?
Restore settings
Should we agresively restore settings like we are doing right now? or should we trust the user knows what it wants every time? Should we restore everything but brightness?
Extensibility
Power Management is a tricky matter, we need it to be extensible so all use cases can be fit. for example, executing a script when AC is disconnected.
Backends
We need multiple backends, a clear example of it is KDE Connect. Question is, how do we want them to look like? First idea is Binary plugins, just good old QLibrary but that might be dangerous given that an in correct written plugin might break all app's linking to libsolidpower.
Another idea would be create some kind of DBus api that people can use to add batteries, it could even have the same API UPower have... just in different service/path. This will be safe and will allow third parties to create batteries in a safe way.