ALSA: Difference between revisions
imported>Mic92 No edit summary |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
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> | ||
< | <syntaxHighlight lang=nix> | ||
sound.enable = true; | sound.enable = true; | ||
</ | </syntaxHighlight> | ||
Line 70: | 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 | ||
##: $ | ##: $ 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 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 | #: 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 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:Audio]] |