Audio after suspend/resume
For some reason the sound doesn't always come back after resuming on EeePc 90x hardware. Alsa needs to be instructed to specifically suspend and resume its own modules before the OS does.
(Note: this doesn't appear to be a problem under EeePc 70x hardware, or for Gutsy, however I cannot confirm
Warning: After applying this hack you may see a warning message after resuming that says the gnome-mixer has quit unexpectedly. Just click the reload button each time, or hit cancel to remove the applet. Currently there is no work-around to this problem.
Note: This may not be a 100% solution. After the resuming, the sound device tests work (System –> Preferences –> Sound), audio on applications like Skype work, but the Gnome 'System Sounds' still do not work after resuming even after reloading the mixer (e.g. the 'logout' sound no longer plays). If you log out and log back in again (no reboot needed), the 'System Sounds' do come back, so perhaps some other Gnome item also needs to be restarted.
Step 1: Modify /etc/default/alsa and change “force_unload_modules_before_suspend” to
force_unload_modules_before_suspend="snd_hda_intel"
Step 2 : Create /usr/lib/pm-utils/sleep.d/45sound
#!/bin/bash if [ ! -x /sbin/alsa ]; then exit 0; fi case "$1" in hibernate|suspend) /sbin/alsa suspend ;; thaw|resume) /sbin/alsa resume ;; *) ;; esac exit $?
Step 3 : Make /usr/lib/pm-utils/sleep.d/45sound executable
$ sudo chmod +x /usr/lib/pm-utils/sleep.d/45sound
カテゴリー:技術