mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #246] No audio when using firejail firefox. #173
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jan 20, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/246
Hi.
I get no sound when playing webms, html5 videos, mp4, ogg, mp3 inside firefox.
Speaker-test gives a static sound and the output is the following:
Now when I try aplay, I get no sound at all and the output is the following:
The system is running Debian sid with kernel 4.3 and alsa.
@netblue30 commented on GitHub (Jan 20, 2016):
Do you have sound without Firejail? Also, ALSA comes by default with the volume muted. If you also have PulseAudio installed, PulseAudio takes precedence. There is a known problem with PulseAudio 7.0, a workaround is required (look at "Known Problems" section on this page: https://firejail.wordpress.com/support/)
@ghost commented on GitHub (Jan 20, 2016):
Hi and thank you for the response.
If I start firefox without firejail everything works, including html5 video, ogg, mp3, mp4.
The only pulseaudio package in my system is a xfce4-plugin:
I have checked again and there was no muted audio in
alsamixer.I have read and gone through the pulse audio workaround, but It doesn't apply in this case.
@netblue30 commented on GitHub (Jan 21, 2016):
Ok, let's try some commands to see where is breaking:
Also, look in your home directory for a .asoundrc or for /etc/asound.conf. They say neither of them is required (http://alsa.opensrc.org/Asoundrc), maybe they changed their mind. I am on Jessie, and I don't have them. This could be something in the newer ALSA version picked up by sid. I would try:
@ghost commented on GitHub (Jan 21, 2016):
Hi, netblue30.
Indeed the problem was the blacklisted
.asoundrc.$ speaker-testWorks normally.
$ firejail --noprofile speaker-testWorks normally.
$ firejail --private speaker-testNo sound at all.
$ firejail --whitelist=~/.mozilla speaker-testNo sound at all.
$ firejail --whitelist=~/.asoundrc speaker-testWorks normally.
In hindsight this looks obvious. My
.asoundrcis the one I swap values when I want the sound output to HDMI or usb sound card.After whitelisting this file I have sound again in firefox.
Thank you and you can close this bug!
@netblue30 commented on GitHub (Jan 21, 2016):
It is definitely a problem:
They did something in the new ALSA version, I'll have to preserve this file in every type of sandboxes. I'll put a fix in and close the bug. For now, just whitelist ~/.asuondrc in /etc/firejail/firefox.profile.
Thanks!
@netblue30 commented on GitHub (Jan 23, 2016):
Fixed in the latest version in git. Thanks for the bug!