<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hello,<br>
<br>
I've always had the issue with Xfce and Firefox that the screen
would suspend while watching a video.<br>
<br>
Note that when using Chromium the screen doesn't suspend as
expected.<br>
<br>
My first assumption was that it is because Firefox is not calling
the correct DBus API in Xfce as described in
<a class="moz-txt-link-freetext" href="https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/42">https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/42</a><br>
<br>
I made a code change in Firefox to fix this which landed in Firefox
95: <a class="moz-txt-link-freetext" href="https://hg.mozilla.org/integration/autoland/rev/1a71a4f15928">https://hg.mozilla.org/integration/autoland/rev/1a71a4f15928</a><br>
<br>
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!<br>
<br>
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.<br>
<br>
Does it look like a good approach to fix this issue?<br>
<br>
Thanks!<br>
Paul<br>
<div id="grammalecte_menu_main_button_shadow_host" style="width:
0px; height: 0px;"></div>
</body>
</html>