The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 6,926     Votes:  4 
Tags: sound   suspend   pulseaudio   wakeup  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1191684
Title: No sound on wake, Dummy Output always takes over. 'pulseaudio -k' the fix
ID: /2019/11/25/No-sound-on-wake_-Dummy-Output-always-takes-over.-_pulseaudio-k_-the-fix
Created: November 25, 2019
Upload: May 5, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


It be caused by a new kernel introduced in 19.10 like this case:

If not then you can use this script /etc/systemd/system-sleep/reloadpulse:

#!/bin/sh

# NAME: reloadpulse
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically

# DESC: PulseAudo 8 sets sound to dummy ouput when going to sleep.
#       This script kills and reloads pulse audio.

# DATE: November 25, 2019.

# NOTE: Written for ask ubuntu question:
#       https://askubuntu.com/questions/1191649/why-no-sound-on-wake-dummy-output-takes-over-pulseaudio-k-the-fix

case $1/$2 in
  pre/*)
    echo "$0: Going to $2..."
    ;;
  post/*)
    echo "$0: Waking up from $2..."
    pulseaudio -k
    ;;
esac

Mark the script executable with chmod a+x /etc/systemd/system-sleep/reloadpulse

After updates deactivate it with chmod a-x /etc/systemd/system-sleep/reloadpulse

Then if the update didn’t fix the problem make it executable again.

You need to reboot for changes to take effect.

⇧ SMART data self test is greyed out in Disks? how can i get Conky to display weather?  ⇩