No sound with Firejail + PulseAudio 9
I'm wondering if anyone has working audio on Slackware 14.2 using Firejail and PulseAudio 9? I always get a connection refused error, for example:
Code:
could not open audio device (Connection refused) |
Hi drgibbon, I currently have working audio on Slackware 14.2 while using firejail and pulseaudio 9. I recently did a fresh install though, but I remember also running into that problem before the reinstall. I also tried the fix you mentioned and it did not work for me either. My old install was LUKs with LVM, but my current install is just a standard install. Can't imagine that would have anything to do with it though.
|
For the heck of it I did a fresh install with full disk LUKS & LVM and I still am getting sound in Firefox through firejail with Pulseaudio 9 so it's definitely not that.
|
Quote:
|
I am no expert, but some sound problems seem to be related with the firejail profile you use. If your firejail profile doesn't have access to ~/.config/pulse/client.conf then whatever you put in there, will likely have no effect. So maybe you should test with putting the options in /etc/pulse/client.conf, since all firejail profiles are supposed to have read access to /etc. If you are a bit paranoid with that and use the --private-etc option, then use it with --private-etc=pulse, but make sure that pulse is configured in /etc/pulse
From my own experience, I only get sound out of Firefox 52 with firejail 0.9.52 on Slackware 14.2 if I use it with the icecat profile: firejail --profile=/etc/firejail/icecat.profile firefox gives me sound. firejail firefox gives me no sound. That problem started with a recent upgrade of firejail (apparently for firefox, firejail expects pulse to be running, maybe related to this? [0]), so you could try downgrading firejail to a previous version, e.g. firejail LTS (0.9.38). [0] https://www.linuxquestions.org/quest...116/page2.html |
Thanks bateleur, I've tried setting the recommended fixes in /etc/pulse/ (both "enable-shm = no" in client.conf and "enable-memfd = yes" in daemon.conf). I've also tried a bunch of different firejail config permutations (going one by one and commenting out sections), but I'm never able to get audio in any programs. Had a go with the Icecat profile and Firefox too, but still no sound. It's got me stumped.
|
Strange... I hate to ask this, but you do have sound without firejail, right? Because I have more or less disabled pulse on my machine, but as a result sound is muted when I login and I tend to forget that and then I start wondering why I don't have sound with firejail. On the other hand, v3g4n has donde a clean install and has sound with firejail, so maybe you could try reinstalling pulse and retry using firejail with pulse's settings from a default Slackware install?
Anyway, I am a bit of a pulse-"hater", so I have disabled it as much as possible (as I have already mentioned), but I do get sound with firejail: client.conf: Code:
autospawn = no Code:
exit-idle-time = 0 Code:
.fail Edit: Forgot to add: empty asound.conf, custom ~/.asoundrc and rc.alsa / rc.pulseaudio non-executable (for my settings) See: https://docs.slackware.com/howtos:mu...io_non-default |
I do have working sound outside of firejail, so the problem is definitely localised there. Running alsamixer is fine from the normal command line, but I can't even open it with firejail running:
Code:
bash-4.3$ firejail bash Code:
bash-4.3$ firejail --noprofile bash |
To update this, I found out that the Firejail/Pulseaudio problem is only present when I'm running awesomewm. If I log in to Xfce or KDE then I can use audio under firejail no problem. Obviously those desktops are doing something with regards to sound, I just don't know what it is!
|
For what it's worth, the same problem exists in Fluxbox (from runlevel 3 and startx), so it doesn't appear to be caused by awesomewm itself.
|
Someone on IRC suggested that this might have something to do with D-Bus?
|
I don't have pulseaudio or firejail, but if its related to dbus adding this to your ~/.xinitrc might help.
Code:
eval `dbus-launch --sh-syntax --exit-with-session` |
Thanks, unfortunately it doesn't seem to help.
|
Old problem, but one that seems to persist in -current (with PulseAudio 12). For me the fix was just to run my window manager inside an Xfce session. I did it by editing /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
changing: Code:
<property name="Client0_Command" type="array"> Code:
<property name="Client0_Command" type="array"> |
I take it back, that setup can't even recover after screen blanking/screensaver is active. The search continues.
|
All times are GMT -5. The time now is 11:28 PM. |