On Thursday 16 February 2012 19:08:35 Calvin Morrison wrote:
[...]
kpowersave does have a interface already though look
at it's public
interface:
QCStringList interfaces()
QCStringList functions()
bool lockScreen()
bool do_setScheme(TQString)
bool do_setCPUFreqPolicy(TQString)
bool do_suspendToDisk()
bool do_suspendToRAM()
bool do_standBy()
bool do_brightnessDown(int percentageStep)
bool do_brightnessUp(int percentageStep)
void disableAutosuspend(bool)
void showDetailedDialog()
bool openConfigureDialog()
bool currentSchemeManagesDPMS()
int brightnessGet()
TQString currentScheme()
TQString currentCPUFreqPolicy()
TQStringList allowed_sleepingStates()
TQStringList listSchemes()
TQStringList listCPUFreqPolicies()
basically we need all of that, in a daemon.
A trinity service, yes. There is only one problem, because we haven't
something like ucpufreq, accesibile via dbus, this service (or a part of it)
will need to run as root.
Right?
Calvin
--
Serghei.