Skip to content

Instantly share code, notes, and snippets.

@ortizmj12
Created July 13, 2019 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ortizmj12/eba59d6e19e9bf8b564963b39ef5b788 to your computer and use it in GitHub Desktop.
Save ortizmj12/eba59d6e19e9bf8b564963b39ef5b788 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Sound won't work after plugging in headphones. Output source is "dummy
# output". Run this script to fix it without having to restart the machine.
# Source: https://askubuntu.com/a/1104906
pulseaudio --kill; sleep 2s; sudo alsa force-reload; pulseaudio --start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment