[Kde-hardware-devel] Review Request 126145: Wait 5s before enforcing inhibition
Kai Uwe Broulik
kde at privat.broulik.de
Mon Nov 23 15:04:19 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126145/
-----------------------------------------------------------
Review request for Solid.
Bugs: 352235
https://bugs.kde.org/show_bug.cgi?id=352235
Repository: powerdevil
Description
-------
Whenever Chrome plays sound it posts an inhibition. This is great, except that it does that also when playing a short sound, such as when receiving a message. This patch makes PowerDevil wait 5 seconds before actually enforcing the inhibition. In any case I don't want to have the system wake up for any such sort inhibitions.
Also cleanup, the add inhibition and add inhibition with explicit dbus service methods were virtually identical.
Diffs
-----
daemon/powerdevilpolicyagent.h 256bf4c
daemon/powerdevilpolicyagent.cpp ec85189
Diff: https://git.reviewboard.kde.org/r/126145/diff/
Testing
-------
Started a video, stopped it right away. -> No inhibition shown in battery monitor
Started a video, waited longer -> Inhibition appeared
stopped video again -> inhibition disappeared right away
Started playback in VLC while Chrome was playing -> got two inhibitions shortly thereafter
Closed VLC -> Only Chrome's inhibition left
Asked for someone to send me a message, received it -> No inhibition was enforced because the sound was too short
Thanks,
Kai Uwe Broulik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20151123/65ba4a41/attachment.html>
More information about the Kde-hardware-devel
mailing list