ALSA: Difference between revisions

imported>HLandau
Created page with "{{Outdated|Needs cleanup}} ALSA is the kernel-level sound API for Linux. On modern systems, it is usually used via a sound server like PulseAudio. ==Troubleshooting ALSA=..."
 
Klinger (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Outdated|Needs cleanup}}
{{Outdated|Needs 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]].
== Save volume state on shutdown ==
In order to save the sound card state on shutdown sound must be enabled in <code>configuration.nix</code>
<syntaxHighlight lang=nix>
sound.enable = true;
</syntaxHighlight>


==Troubleshooting ALSA==
==Troubleshooting ALSA==
Line 61: Line 70:
##: $ 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 74: Line 83:
# 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 85: Line 94:
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]]