Do you find the any line likes `WakeLockTopic::DBusUninhibitFailed()` or `WakeLockTopic::DBusInhibitFailed(...)` in the log? I suspect PowerManager over DBus may fail several times for uninhibiting (>= 5). And, Firefox disables wake lock from this point at all. We should retry here instead of just disabling it. Please check the log.
Here we have two cases, failures for inhibit and failures for uninhibit. For inhibit, it will try next wakelock type unitl all wakelock types has been tried, then it will disable wakelock from this point. One of issue is when we had one of types available at beginning and fails at one point later, it will try next type. That means once one and only one available wakelock type on a machine fail even just one time, wakelock will be disabled totally. We should stick at the same type forever once it success for once. And, keep retrying it. For the uninhibit case, it tolerates 5 failures and disables wakelock after that. We should not have this threshold. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/2047262 Title: Firefox stopped inhibiting screensaver on video playback Status in Mozilla Firefox: Confirmed Status in firefox package in Ubuntu: Confirmed Bug description: Update (02/2024): With Firefox 122 on Ubuntu-Mate 23.10, screensaver/powermanager inhibition is completely broken even with Mozilla's .deb package. After a fresh start of firefox, screen saver is blocked properly when playing video but after opening/un-suspending a few tabs with video, inhibition stops working. I was unable to come up with reproducible scenario but after a few hours of browsing it usually stops working. Restarting firefox fixes the problem. The bug first appeared around August and affects both .deb and snap packages. Tested on Ubuntu-Mate 22.04.3, Xorg, both Pulseaudio and Pipewire (if that's relevant). I don't see any relevant msgs in xsession-errors or system logs. To manage notifications about this bug go to: https://bugs.launchpad.net/firefox/+bug/2047262/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

