Skip to content

Instantly share code, notes, and snippets.

@nosrednawall
Last active September 7, 2022 00:27
Show Gist options
  • Save nosrednawall/d10572b5bbaab86d8c943860db89f9b1 to your computer and use it in GitHub Desktop.
Save nosrednawall/d10572b5bbaab86d8c943860db89f9b1 to your computer and use it in GitHub Desktop.
noise p2 archlinux

$ sudo pacman -S sox

$ mkdir -p ~/.config/systemd/user/

$ vim ~/.config/systemd/user/usb-audio-keep-alive.service

[Unit]
Description=Keep USB Audio Alive Using sox

[Service]
ExecStart=/usr/bin/play -n -c2 synth sin gain -100

[Install]
WantedBy=default.target

$ systemctl --user start usb-audio-keep-alive.service

$ systemctl --user enable usb-audio-keep-alive.service

Credits https://destinmoulton.com/blog/2021/linux-usb-audio-keep-alive-service/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment