Skip to content

Instantly share code, notes, and snippets.

@ortizmj12
Created July 13, 2019 06:11
Show Gist options
  • Select an option

  • Save ortizmj12/eba59d6e19e9bf8b564963b39ef5b788 to your computer and use it in GitHub Desktop.

Select an option

Save ortizmj12/eba59d6e19e9bf8b564963b39ef5b788 to your computer and use it in GitHub Desktop.

Revisions

  1. ortizmj12 created this gist Jul 13, 2019.
    7 changes: 7 additions & 0 deletions ubuntu-dummy-output-fix.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/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