<table><tr><td style="">romangg created this revision.<br />romangg added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />romangg requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23600">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch further refines output management.</p>

<p>We go now through AbstractWaylandOutput virtual functions to enable and<br />
disable outputs.</p>

<p>Dpms changes and enablement switches use separate code paths at start in the<br />
Drm backend code since they are similar but not the directly same. Common code<br />
is shared though, functions are renamed accordingly.</p>

<p>Asserts have been put in place to better understand and check the control<br />
flow. A seemingly unnecessary call to DrmOutput::pageFlipped on reactivation<br />
after Vt switch has been removed to allow for that.</p>

<p>In future patches we need to look additionally at the legacy mode switching<br />
code path which was and is still not working and better handling of the<br />
current monitor Dpms state. For example a monitor being switched off is not<br />
properly acted on and the workspace still expanded.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>With one and two monitors:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Dpms off/on</li>
<li class="remarkup-list-item">Vt switches</li>
<li class="remarkup-list-item">Screen disable/enable</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>enablementDpmsRework</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23600">https://phabricator.kde.org/D23600</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>abstract_wayland_output.cpp<br />
abstract_wayland_output.h<br />
platform.cpp<br />
platform.h<br />
plugins/platforms/drm/drm_backend.cpp<br />
plugins/platforms/drm/drm_backend.h<br />
plugins/platforms/drm/drm_output.cpp<br />
plugins/platforms/drm/drm_output.h</div></div></div><br /><div><strong>To: </strong>romangg, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart<br /></div>