[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    [Differential] [Request, 178 lines] D884: Async variant to check whether power management is inhibit
From:       graesslin_(Martin_Gräßlin) <noreply () phabricator ! kde ! or
Date:       2016-01-29 14:18:33
Message-ID: differential-rev-PHID-DREV-i35hbkcqedpe3vxu7fkx-req () phabricator ! kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


graesslin created this revision.
graesslin added reviewers: bshah, broulik.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.

REVISION SUMMARY
  KScreenLocker checks whether power management is inhibited on idle
  time out. So far this used a sync and blocking dbus call.
  
  This change makes the check async. KScreenLocker connects to the
  InhibitionsChanged signal provided by powerdevil and queries the
  current state in an async way each time the signal gets emitted.
  
  When KScreenLocker hits an idle connection it has the knowledge wheter
  power management is inhibited and does not need to perform the blocking
  call any more.
  
  It's important for KScreenLocker to not have blocking calls as it's
  used inside the Wayland compositor and can by that easily create
  dead-lock situations (e.g. PowerDevil waiting for the Wayland compositor
  and the compositor waiting for the reply).

REPOSITORY
  rKSCREENLOCKER KScreenLocker

BRANCH
  async-check-fdo-inhibition

REVISION DETAIL
  https://phabricator.kde.org/D884

AFFECTED FILES
  CMakeLists.txt
  ksldapp.cpp
  ksldapp.h
  powermanagement_inhibition.cpp
  powermanagement_inhibition.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: graesslin, bshah, broulik
Cc: plasma-devel

[Attachment #5 (text/html)]

<div>graesslin created this revision.<br />
graesslin added reviewers: bshah, broulik.<br />
Herald added a project: Plasma.<br />
Herald added a subscriber: plasma-devel.</div><br /><div><strong>REVISION \
SUMMARY</strong><div><p>KScreenLocker checks whether power management is inhibited on \
idle<br /> time out. So far this used a sync and blocking dbus call.</p>

<p>This change makes the check async. KScreenLocker connects to the<br />
InhibitionsChanged signal provided by powerdevil and queries the<br />
current state in an async way each time the signal gets emitted.</p>

<p>When KScreenLocker hits an idle connection it has the knowledge wheter<br />
power management is inhibited and does not need to perform the blocking<br />
call any more.</p>

<p>It&#039;s important for KScreenLocker to not have blocking calls as it&#039;s<br \
/> used inside the Wayland compositor and can by that easily create<br />
dead-lock situations (e.g. PowerDevil waiting for the Wayland compositor<br />
and the compositor waiting for the reply).</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>rKSCREENLOCKER \
KScreenLocker</div></div></div><br \
/><div><strong>BRANCH</strong><div><div>async-check-fdo-inhibition</div></div></div><br \
/><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D884" \
rel="noreferrer">https://phabricator.kde.org/D884</a></div></div><br \
/><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br /> ksldapp.cpp<br \
/> ksldapp.h<br />
powermanagement_inhibition.cpp<br />
powermanagement_inhibition.h</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>graesslin, bshah, broulik<br /><strong>Cc: \
</strong>plasma-devel<br /></div>


[Attachment #6 (text/plain)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic