[GH-ISSUE #1172] --private=directory and pulseaudio (steam, alsa underruns) #805

Closed
opened 2026-05-05 06:52:39 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ghost on GitHub (Mar 29, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1172

Private is amazing for steam because it keeps your home directory clean.

firejail --noprofile --private=~/Steam steam-native

Audio "works" but then quickly underruns:

ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred

Games have completely garbled audio.

The only way I've been able to fix it is either dmix (load-module module-alsa-sink device=dmix) or the old shm fix (enable-shm = yes). Neither being very good solutions.

I've tried multiple sound cards, different fragment/buffer sizes for pulse, enable-memfd, higher cpu priorities, etc.

Originally created by @ghost on GitHub (Mar 29, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1172 Private is amazing for steam because it keeps your home directory clean. `firejail --noprofile --private=~/Steam steam-native` Audio "works" but then quickly underruns: ``` ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred ``` Games have completely garbled audio. The only way I've been able to fix it is either dmix (load-module module-alsa-sink device=dmix) or the old shm fix (enable-shm = yes). Neither being very good solutions. I've tried multiple sound cards, different fragment/buffer sizes for pulse, enable-memfd, higher cpu priorities, etc.
Author
Owner

@ghost commented on GitHub (Mar 29, 2017):

Huh, I guess I managed to fix it. I switched over to using jack. Seems to work fine now.

<!-- gh-comment-id:290019771 --> @ghost commented on GitHub (Mar 29, 2017): Huh, I guess I managed to fix it. I switched over to using jack. Seems to work fine now.
Author
Owner

@netblue30 commented on GitHub (Mar 29, 2017):

No problem.

<!-- gh-comment-id:290095603 --> @netblue30 commented on GitHub (Mar 29, 2017): No problem.
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#805
No description provided.