[Kde-hardware-devel] Review Request 126145: Wait 5s before enforcing inhibition

Kai Uwe Broulik kde at privat.broulik.de
Mon Dec 14 21:09:21 UTC 2015



> On Dez. 14, 2015, 9:06 nachm., Martin Klapetek wrote:
> > ...why not stable branch?

I fear it might break things, it's also a behavioral change, though I've been running it for weeks without a problem.
I can merge it to 5.5 once 5.5.1 is tagged.


- Kai Uwe


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126145/#review89497
-----------------------------------------------------------


On Dez. 14, 2015, 9:04 nachm., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126145/
> -----------------------------------------------------------
> 
> (Updated Dez. 14, 2015, 9:04 nachm.)
> 
> 
> 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/20151214/990a7281/attachment-0001.html>


More information about the Kde-hardware-devel mailing list