Firefox and inhibiting DPMS
Paul Ezvan
paul at ezvan.fr
Tue Dec 21 20:37:36 CET 2021
Hello Andre,
I've created a pull request with the patch:
https://gitlab.xfce.org/xfce/xfce4-power-manager/-/merge_requests/22
Thanks!
Paul
Le 21/12/2021 à 20:02, andre at andreldm.com a écrit :
> Hi Paul,
> Thanks for the investigation and fixing this on Firefox side.
> Yes, this patch seems to make sense, can you please create a Merge
> Request for power-manager? (You now have permission to create forks).
> Thanks.
>
> Cheers,
> Andre Miranda
>
> Dec 20, 2021, 08:00 by xfce-request at xfce.org:
>
> Message: 1
> Date: Sun, 19 Dec 2021 17:51:45 +0100
> From: Paul Ezvan <paul at ezvan.fr>
> To: xfce at xfce.org
> Subject: Firefox and inhibiting DPMS
>
> Hello,
>
> I've always had the issue with Xfce and Firefox that the screen would
> suspend while watching a video.
>
> Note that when using Chromium the screen doesn't suspend as expected.
>
> My first assumption was that it is because Firefox is not calling the
> correct DBus API in Xfce as described in
> https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/42
>
> I made a code change in Firefox to fix this which landed in
> Firefox 95:
> https://hg.mozilla.org/integration/autoland/rev/1a71a4f15928
>
> Now I correctly get from the Power manager applet "Firefox is
> inhibiting
> power management" (or something like that as my desktop uses the
> French
> locale), BUT the screen still suspends!
>
> After some investigation, I believe that this is because
> xfce4-power-manager doesn't inhibit DPMS when getting the inhibit
> request, whereas it does it when entering presentation mode. I made a
> small change to inhibit DPMS in this case (patch attached), and this
> fixes the issue for me, the screen doesn't suspend any more while
> watching a video with Firefox.
>
> Does it look like a good approach to fix this issue?
>
> Thanks!
> Paul
>
>
>
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce
> http://www.xfce.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20211221/f217384e/attachment.html>
More information about the Xfce
mailing list