Hi Rainer,
Rainer Dorsch <m…@bokomoko.de> writes:
> Am Donnerstag, 12. November 2026, 22:44:02 Mitteleuropäische Normalzeit
> schrieb Nicholas D Steeves:
>
>> > since a while I see from time to time firefox wakelocks which inhibit the
>> > plasma session to suspend, even if I kill the firefox process completely:
>> >
>> > r…@h370:~/git/emanager$ busctl --user call org.freedesktop.PowerManagement
>> > / org/kde/Solid/PowerManagement/PolicyAgent
>> > org.kde.Solid.PowerManagement.PolicyAgent ListInhibitions
>> > a(ss) 1 "firefox-esr" "Playing video"
>> > r…@h370:~/git/emanager$ ps uaxwww|grep firefox
>> > rd 583476 0.0 0.0 6620 2420 pts/6 S+ 07:28 0:00 grep
>> > firefox r…@h370:~/git/emanager$
…
>>
>> I very briefly looked into this and found an upstream bug that looks
>> similar: https://bugzilla.mozilla.org/show_bug.cgi?id=2034009
>
> Thanks for sharing the link. For me this bug report looks different: The user
> complains about the system not going to suspend, when the video is playing.
>
> I see the system not going to suspend if the tab with the video is closed or
> even the entire firefox is closed. Unfortunately, I can not reliably repro it
> so far, it happens every now and then.
From what I read at that bug, it's undefined whether the
PowerManagement.*Inhibition deactivation signal is sent when the tab,
window, or Firefox is closed. This bug documents how videos_with_audio_unmuted, videos_with_audio_muted, and
videos_without_audio are handled differently, and how this can make the issue
difficult to reproduce <- that info could help you reproduce your bug.
Also, that bug looks like it provides a workaround for you: disable the
mechanism in Firefox that inhibits power management, and you disable the
thing that triggers the bug.
Cheers,
Nicholas