[GH-ISSUE #4086] firejail prevents Firefox from deactivating screen dimming during video watch #2527

Closed
opened 2026-05-05 09:12:21 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @e-pirate on GitHub (Mar 12, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4086

While watching videos on Youtube I have to periodically press some buttons to keep LCD backlit on if Firefox is firejailed. If Firefox isn't firejailed, the backlit stays on.
firejail: 0.9.64.4
Firefox: all versions past last couple of years
Distro: Gentoo linux current stable

~/.config/firejail/firefox.profile:

include globals.local
noblacklist ${HOME}/.cache/mozilla
noblacklist ${HOME}/.mozilla
mkdir ${HOME}/.cache/mozilla/firefox
mkdir ${HOME}/.mozilla
whitelist ${HOME}/.cache/mozilla/firefox
whitelist ${HOME}/.mozilla
whitelist ${HOME}/.local/share/data/qBittorrent
whitelist ${HOME}/downloads
whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer
whitelist ${RUNUSER}/kpxc_server
whitelist /tmp/krb5cc_1000
include firefox-common.profile

Did a search through the internet, but found nothing corresponding to this problem.

Originally created by @e-pirate on GitHub (Mar 12, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4086 While watching videos on Youtube I have to periodically press some buttons to keep LCD backlit on if Firefox is firejailed. If Firefox isn't firejailed, the backlit stays on. firejail: 0.9.64.4 Firefox: all versions past last couple of years Distro: Gentoo linux current stable ~/.config/firejail/firefox.profile: ```include firefox.local include globals.local noblacklist ${HOME}/.cache/mozilla noblacklist ${HOME}/.mozilla mkdir ${HOME}/.cache/mozilla/firefox mkdir ${HOME}/.mozilla whitelist ${HOME}/.cache/mozilla/firefox whitelist ${HOME}/.mozilla whitelist ${HOME}/.local/share/data/qBittorrent whitelist ${HOME}/downloads whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer whitelist ${RUNUSER}/kpxc_server whitelist /tmp/krb5cc_1000 include firefox-common.profile ``` Did a search through the internet, but found nothing corresponding to this problem.
gitea-mirror 2026-05-05 09:12:21 -06:00
Author
Owner

@rusty-snake commented on GitHub (Mar 12, 2021):

c6a40747ef/etc/profile-a-l/firefox.profile (L38-L39)

<!-- gh-comment-id:797293046 --> @rusty-snake commented on GitHub (Mar 12, 2021): https://github.com/netblue30/firejail/blob/c6a40747ef2d1b6971ff303a318254ef2f4a7402/etc/profile-a-l/firefox.profile#L38-L39
Author
Owner

@e-pirate commented on GitHub (Mar 12, 2021):

I had to add the whole section, to make this work:

dbus-user filter
dbus-user.own org.mozilla.Firefox.*
dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*
# Enable native notifications.
dbus-user.talk org.freedesktop.Notifications
# Allow to inhibit screensavers
dbus-user.talk org.freedesktop.ScreenSaver
# Plasma browser integration
dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration
dbus-user.talk org.kde.JobViewServer
dbus-user.talk org.kde.kuiserver
ignore dbus-user none

Thank you, rusty-snake for pointing this out.

<!-- gh-comment-id:797517812 --> @e-pirate commented on GitHub (Mar 12, 2021): I had to add the whole section, to make this work: ``` dbus-user filter dbus-user.own org.mozilla.Firefox.* dbus-user.own org.mozilla.firefox.* dbus-user.own org.mpris.MediaPlayer2.firefox.* # Enable native notifications. dbus-user.talk org.freedesktop.Notifications # Allow to inhibit screensavers dbus-user.talk org.freedesktop.ScreenSaver # Plasma browser integration dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration dbus-user.talk org.kde.JobViewServer dbus-user.talk org.kde.kuiserver ignore dbus-user none ``` Thank you, rusty-snake for pointing this out.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2527
No description provided.