Same problem - after upgrading from 12.04 to 14.04, suspend works but
resume shows completely black screen and requires a hard reboot. Initial
testing seems to show that killing pulseaudio and running  rmmod
snd_hda_intel allows a successful suspend and resume.

I've been working on a script to suspend and resume pulseaudio; it
currently looks like this:

#!/bin/bash
case "$1" in
        suspend|hibernate)
                echo module usage:
                lsmod | grep ^snd_hda_intel
                echo searching for pulseaudio sessions...
                for p in /run/user/*/pulse/ ; do
                        ud=`dirname $p`
                        uid=`basename $ud`
                        echo unloading module for user $uid
                        sudo -u \#$uid PULSE_RUNTIME_PATH="$p" -i pacmd 
list-modules | grep -A1 'name: <module-alsa-card>' | grep 'argument:' | sed 
's/^.*argument: <\(.*\)>.*$/\1/' > /var/run/pm-suspend-pa-alsa-arguments-$uid
                        sudo -u \#$uid PULSE_RUNTIME_PATH="$p" -i pacmd 
unload-module module-alsa-card
                done
                echo post-pulseaudio unload module usage:
                lsmod | grep ^snd_hda_intel
                rmmod snd_hda_intel
                echo pre-suspend module usage:
                lsmod | grep ^snd_hda_intel
                echo hopefully ready to suspend
                ;;
        resume|thaw)
                echo resume module usage:
                lsmod | grep ^snd_hda_intel
                modprobe snd_hda_intel
                echo post-modprobe module usage:
                lsmod | grep ^snd_hda_intel
                for p in /run/user/*/pulse/ ; do
                        ud=`dirname $p`
                        uid=`basename $ud`
                        
arguments="`</var/run/pm-suspend-pa-alsa-arguments-$uid`"
                        echo loading module for user $uid
                        sudo -u \#$uid PULSE_RUNTIME_PATH="$p" -i pacmd 
load-module module-alsa-card $arguments
                done
                echo post-pulseaudio load module usage:
                lsmod | grep ^snd_hda_intel
                ;;
esac

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1305371

Title:
  [Dell Inspiron 1525] suspend/resume failure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1305371/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to