<table><tr><td style="">sebas created this revision.<br />sebas added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.</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/D2465" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When shutting down the machine (or kded5, really) with the lid closed<br />
will leave a config with the laptop panel disabled, and also a config<br />
with the same id, but _lidOpened appended. The latter is the config that<br />
is restored when the lid is opened again. When the lid is opened while<br />
kded wasn't running (shut down), the config with the panel disabled is<br />
restored.</p>
<p>We do want to restore the _lidOpened config, so check if it exists, and<br />
if it does, move it to the configId to have it restored.</p>
<p>This effectively avoids a disabled laptop panel after the laptop has<br />
been shut down with an external monitor connected and the lid closed.</p>
<p>BUG:353029</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">added autotest for this case</li>
<li class="remarkup-list-item">reproduced bug by killing kded with an external output connected and the laptop lid closed, after opening the lid, kded would correctly enable the laptop display on startup</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKSCREEN KScreen</div></div></div><br /><div><strong>BRANCH</strong><div><div>sebas/lidopeninit</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2465" rel="noreferrer">https://phabricator.kde.org/D2465</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kded/daemon.cpp<br />
kded/serializer.cpp<br />
kded/serializer.h<br />
tests/kded/serializertest.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>sebas, Plasma<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>