<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/108407/">http://git.reviewboard.kde.org/r/108407/</a>
     </td>
    </tr>
   </table>
   <br />










<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
 <p style="margin-top: 0;">On January 14th, 2013, 12:40 p.m. UTC, <b>Lamarque Vieira Souza</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/108407/diff/1/?file=107187#file107187line53" style="color: black; font-weight: bold; text-decoration: underline;">powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 1)

    </span>
   </th>
  </tr>
 </thead>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">53</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">reply</span><span class="p">.</span><span class="n">waitForFinished</span><span class="p">();</span></pre></td>
  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Why not use QDBusPendingCallWatcher to track when the call above finishes and avoid this waitForFinished() call?</pre>
 </blockquote>



 <p>On January 14th, 2013, 1:26 p.m. UTC, <b>Lukáš Tinkl</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">What would be the advantage?</pre>
 </blockquote>





 <p>On January 14th, 2013, 1:53 p.m. UTC, <b>Lamarque Vieira Souza</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Do not block the backend initialization while trying to launch logind. That can take time (several seconds) meanwhile anybody trying to access the backend will be blocked as well. I have not checked but I fear that can block the battery plasmoid and plasma-desktop as consequence.</pre>
 </blockquote>







</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'm sorry I have to change my mind a second time here, I didn't take into account the fact that this happens while initializing, hence indeed this represents a potential problem even if the call is relatively fast. OTOH is true that if it was into a standard situation even a blocking solution would have been acceptable, but in this case we're potentially blocking quite a critical path.</pre>
<br />




<p>- Dario</p>


<br />
<p>On January 14th, 2013, 2:24 p.m. UTC, Lukáš Tinkl wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Solid and Dario Freddi.</div>
<div>By Lukáš Tinkl.</div>


<p style="color: grey;"><i>Updated Jan. 14, 2013, 2:24 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This patch adds support for systemd-login1 service to Powerdevil's upower backend. The main purpose is that UPower will be soon dropping support[1] for suspend/resume features so we have to rely on systemd. With this login1, we are also gaining support for HybridSleep, where implemented by the system.

One caveat: the current login1 implementation doesn't support[2] emitting the "resume from suspend" signal

[1] http://lists.freedesktop.org/archives/devkit-devel/2013-January/001339.html
[2] http://www.freedesktop.org/wiki/Software/systemd/inhibit</pre>
  </td>
 </tr>
</table>




<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="http://bugs.kde.org/show_bug.cgi?id=https://bugzilla.redhat.com/show_bug.cgi?id=859227">https://bugzilla.redhat.com/show_bug.cgi?id=859227</a>


</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>powerdevil/daemon/BackendConfig.cmake <span style="color: grey">(5dbe6f6)</span></li>

 <li>powerdevil/daemon/backends/upower/login1suspendjob.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>powerdevil/daemon/backends/upower/login1suspendjob.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>powerdevil/daemon/backends/upower/powerdevilupowerbackend.h <span style="color: grey">(ba942bd)</span></li>

 <li>powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp <span style="color: grey">(97a409b)</span></li>

 <li>powerdevil/daemon/backends/upower/upowersuspendjob.h <span style="color: grey">(bbe2f45)</span></li>

 <li>powerdevil/daemon/backends/upower/upowersuspendjob.cpp <span style="color: grey">(fa64ab0)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/108407/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>