Closed Bug 1882641 Opened 11 months ago Closed 4 months ago

Flatpak does not inhibit idle

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 123
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: yosukematsumura, Assigned: jhorak)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
KDE Plasma 5.27.10
Fedora Linux 39 Kinoite

  1. Start a YouTube video.
  2. Idle

Actual results:

Monitor sleeps after time specified in system preferences

Expected results:

Monitor should not sleep while video is playing.

I suspect that this is occurring due to the enhancement that went into effect by https://bugzilla.mozilla.org/show_bug.cgi?id=1860269

As it stands, the X-D-P Inhibit interface does not work:
https://github.com/flatpak/xdg-desktop-portal-gtk/issues/465
https://github.com/flatpak/xdg-desktop-portal/issues/1254

Also sounds similar to another bug, but this still occurs even if the video begins playing while the Firefox application window is in focus, so not quite the same:
https://bugzilla.mozilla.org/show_bug.cgi?id=1877022

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: flatpak
Priority: -- → P3

Could you please attach logs from MOZ_LOG=LinuxWakeLock:5 firefox?

Attached file WakeLock Log.txt

Log attached.

Same here. KDE on Fedora 39. I solved with the following command:

$ flatpak override --user --talk-name=org.freedesktop.ScreenSaver org.mozilla.firefox

Take a look also at this discussion.

Assignee: nobody → jhorak

also convo here: https://bugs.kde.org/show_bug.cgi?id=485376

the flatpak needs to be built with: "--talk-name=org.freedesktop.ScreenSaver" here: https://hg.mozilla.org/mozilla-central/file/tip/taskcluster/docker/firefox-flatpak/runme.sh#l150

users can also add this flag in flatseal > firefox > session bus > talks > "org.freedesktop.ScreenSaver"

Closing this as it has been fixed in KDE.
https://bugs.kde.org/show_bug.cgi?id=486506

Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: