Commit d1bf7bfc authored by Bhushan Shah's avatar Bhushan Shah 📱 Committed by Bhushan Shah

core: when we get request to wakeup turn dpms on

After user has turned off screen and we get request to wake system up,
also turn DPMS on, this can happen when something wants to show
notification, or for example call notification is shown.


(cherry picked from commit 05deab28)
parent 404ee90d
......@@ -1027,6 +1027,14 @@ uint Core::scheduleWakeup(const QString &service, const QDBusObjectPath &path, q
void Core::wakeup()
{
onResumingFromIdle();
PowerDevil::Action *helperAction = ActionPool::instance()->loadAction(QStringLiteral("DPMSControl"), KConfigGroup(), this);
if (helperAction) {
QVariantMap args;
// we pass empty string as type because when empty type is passed,
// it turns screen on.
args[QStringLiteral("Type")] = "";
helperAction->trigger(args);
}
}
void Core::clearWakeup(int cookie)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment