ALSA: Difference between revisions

imported>Mic92
No edit summary
DoggoBit (talk | contribs)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Outdated|Needs cleanup}}
{{Cleanup}}
 
ALSA is the kernel-level sound API for Linux. On modern systems, it is usually used via a sound server like [[PulseAudio]].
ALSA is the kernel-level sound API for Linux. On modern systems, it is usually used via a sound server like [[PulseAudio]].


Line 6: Line 7:
In order to save the sound card state on shutdown sound must be enabled in <code>configuration.nix</code>
In order to save the sound card state on shutdown sound must be enabled in <code>configuration.nix</code>


<syntaxHightlight lang=nix>
<syntaxHighlight lang=nix>
sound.enable = true;
sound.enable = true;
</syntaxHightlight>
</syntaxHighlight>




Line 70: Line 71:
##: $ kill -9 14080
##: $ kill -9 14080
##: but in the case of pulseaudio you have to prevent it from respawning itself automatically
##: but in the case of pulseaudio you have to prevent it from respawning itself automatically
##: $ mkdir -P ~/.config/pulse && echo "autospawn=no" >> ~/.config/pulse/client.conf
##: $ systemctl --user mask pulseaudio.socket && systemctl --user stop pulseaudio
##: you can then stop pulseaudio with:
##: you can then stop pulseaudio with:
##: $ pulseaudio -k # or kill it by process id
##: $ pulseaudio -k # or kill it by process id
Line 83: Line 84:
# Repeat until you have exhausted all the options or have fixed your problem
# Repeat until you have exhausted all the options or have fixed your problem
# TIDY UP!
# TIDY UP!
#: Don't forget to re-enable pulse autospawning by changing "autospawn=no" to "autospawn=yes" in ~/.config/pulse/client.conf
#: Don't forget to re-enable pulse autospawning: systemctl --user unmask pulseaudio.socket


Once you have found a setting that works, you can add it to your configuration file:
Once you have found a setting that works, you can add it to your configuration file:
Line 94: Line 95:
Much of this is taken from https://help.ubuntu.com/community/HdaIntelSoundHowto which also has additional tips.
Much of this is taken from https://help.ubuntu.com/community/HdaIntelSoundHowto which also has additional tips.


[[Category:Installation]] [[Category:Audio]]
[[Category:Audio]]