Commit 93ff3c3c authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

platforms/drm: inhibit the renderloop when screen is turned off

Otherwise we will continue using gpu resources even when we can not show
any content on screen.

(cherry picked from commit debea631)
parent 28411f22
......@@ -582,6 +582,7 @@ void DrmOutput::dpmsFinishOn()
if (!m_gpu->atomicModeSetting()) {
m_crtc->blank();
}
m_renderLoop->uninhibit();
if (Compositor *compositor = Compositor::self()) {
compositor->addRepaintFull();
}
......@@ -597,6 +598,7 @@ void DrmOutput::dpmsFinishOff()
} else {
waylandOutput()->setDpmsMode(toWaylandDpmsMode(DpmsMode::Off));
}
m_renderLoop->inhibit();
}
bool DrmOutput::dpmsLegacyApply()
......
Supports Markdown
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