mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3282] Sound not working with firejail #2061
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#2061
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 @Leebre on GitHub (Mar 18, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3282
Hi, I am trying to run steam in firejail on Parabola GNU/Linux (derivative of Arch). If I run it outside of firejail, it seems to work fine and XCom: Enemy Unknown starts and runs fine. However, in firejail, even if I use
--noprofile, the sound in the Steam application doesn't work (for example, in the store videos) and the game won't launch.@rusty-snake commented on GitHub (Mar 19, 2020):
Do you use pulseaudio?
@Leebre commented on GitHub (Mar 19, 2020):
@rusty-snake yes, I am.
@rusty-snake commented on GitHub (Mar 21, 2020):
Related: #3165
https://github.com/netblue30/firejail/issues/3165#issuecomment-584815612
@Leebre commented on GitHub (Mar 21, 2020):
@rusty-snake thanks for the link. I read the info there and tried
firejail --noprofile --noblacklist=/sys/module steam, but the sound still doesn't work. I am seeing the following error in the console though:so there is clearly some error relating to ALSA. My system is a fairly generic Dell Insipron desktop PC, x86, using a built-in sound card.
@Leebre commented on GitHub (Mar 22, 2020):
I tried it with
--noblacklist=/sys/fsas well and no joy. Something to do with ALSA must be being blocked by one of the built-in blockers?@Leebre commented on GitHub (Mar 22, 2020):
I just commented out all of the built-in blacklisted locations in
fs.cand re-compiled. I ranfirejail --noprofile --debug-blacklists steam, to verify that no locations were still being blacklisted - the sound still doesn't work and I get the same pcm errors.@rusty-snake commented on GitHub (Mar 22, 2020):
You can use
firejail --noprofile --trace=outputfile steamto trace open, openat, fopen, access, opendir, ... or strace to trace everything.firejail --build steammaybe contain some hints orfirejail --noprofile --debug steam.@Leebre commented on GitHub (Mar 22, 2020):
@rusty-snake ok, I'll give those a try and let you know what happens. Another thing I tried was running Rhythmbox in firejail (
firejail --noprofile rhythmbox) and I got no sound with that either. So, it seems I have a general sound issue w. firejail, not just with Steam. One thing I noticed was the window title bar of Rhythmbox said it was operating as the superuser. So, I tried running it as root outside firejail and also got no sound. This might be the underlying problem - why is firejail running Rhythmbox as the superuser?@rusty-snake commented on GitHub (Mar 22, 2020):
https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#ive-noticed-the-title-bar-in-firefox-shows-as-superuser-is-this-normal
@Leebre commented on GitHub (Mar 22, 2020):
@rusty-snake thanks for the link. However, it seems strange the I get the same audio issues in firejail as I do if I try to run the application as root. I will look into how to enable sound for the root user and see if that helps with firejail.
@Leebre commented on GitHub (Mar 24, 2020):
I couldn't find a good way to enable the root user to use sound with pulseaudio, so I removed pulse completely and now the sound works fine with steam in firejail (both the client and the XCom game I was trying). Again, I suspect its to do with pulse not allowing access for the root user (I'm suddenly not so much a fan of pulse any more ...)
@rusty-snake commented on GitHub (Mar 24, 2020):
just remembered, have you tried
firecfg --fix-sound?@Leebre commented on GitHub (Mar 24, 2020):
@rusty-snake yes, I ran that command after installing, per the installation instructions on firejail.wordpress.com. However, I still experienced no audio through pulseaudio with firejailed applications.
@rusty-snake commented on GitHub (Apr 5, 2020):
No idea if that could change anything but you can give it a try:
firejail --noprofile --noblacklist=/sys/module --noautopulse steamUnfortunately I have no more ideas what the issue could be, or how to investigate it further.
@matu3ba commented on GitHub (Apr 10, 2020):
@rusty-snake Suggestion to change title to "Firejailed steam has no pulseaudio sound".
@matu3ba commented on GitHub (Apr 11, 2020):
@glitsj16 Suggestion to change title to "Firejailed steam has no pulseaudio sound", because other sound apparently works.
@rusty-snake commented on GitHub (Apr 11, 2020):
@matu3ba read that comment: https://github.com/netblue30/firejail/issues/3282#issuecomment-603382929
@ghost commented on GitHub (Apr 11, 2020):
@matu3ba Why should we do that? The OP started noticing audio issues in Steam, while digging into it detected that all firejailed apps suffer from it and changed the title accordingly. Until there's a very good argument to do so I'm regarding the issue title the OP's prerogative.
@Leebre commented on GitHub (Apr 12, 2020):
@matu3ba no, that isn't correct. I have tried with other applications that use audio and I'm not able to get sound from any of them within firejail with pulseaudio running.
@rusty-snake ok, I will give that a try when I get a chance. Although, for me, removing pulseaudio and falling back to ALSA solves the problem.
@rusty-snake commented on GitHub (May 12, 2021):
You can try noprofile.profie. If this does not work ... 😿 .
@odiferousmint commented on GitHub (May 4, 2022):
Sorry for somewhat necrobumping, but I have audio issues with Discord on Void Linux. It works with
--noprofileand it works with the postednoprofile.profile.I actually had audio issues with Discord (as in, the website) inside the browser Vivaldi as well, but the following lines solved it:
It does not work for the Discord app though. It works if I remove all
whitelistlines.For example, this one WORKS:
But this one does NOT WORK:
Any ideas as to why that might be the case? Keep in mind it does not work either if I comment out the
noblacklistlines OR if thekeep-config-pulseis missing. I suppose I have towhitelistornoblacklistsomething else, but not exactly sure what.I did try the default
Discord.profileas well, that was actually the first thing I did and that one does not work either.Unfortunately in this case I do not get any errors related to
DBus,alsa, orpulseaudioeither.Apparently it even works with:
The issue only occurs if I uncomment the last 3 lines.
OK, I do get error with
private-dev, complains about:Any ideas?SOLVED: Never mind, the issue was a missing
whitelist ${HOME}/.config/pulse. I assumedkeep-config-pulsewould have done it.An example of a supposedly working profile:
It was a great monologue regardless. sighs
I do have some issues still at times but it might not be
firejailrelated, or not exclusively.