I have no audio on lubuntu 12.04 after resuming from suspend. I tried to no avail. Sound works after reboot. Please help.sudo alsa force-reload
Asked
Active
Viewed 1.7k times
7
Eric Carvalho
- 55,453
akonsu
- 601
5 Answers
5
For some systems it is necessary to kill the pulseaudio process and prevent it from re-loading before restarting ALSA. If the following procedure works, it can be automated.
Set up Pulseaudio so it does not respawn automatically:
mkdir ~/.pulse echo "autospawn = no" >> ~/.pulse/client.confSuspend your computer and wake him up
Restart ALSA:
sudo alsa force-reloadStart pulseaudio:
pulseaudio --start
To revert the changes, delete the file ~/.pulse/client.conf
3
After consulting some posts, what I've done to get mine to work again:
Set pulseaudio not to respawn by creating config file at home directory:
mkdir ~/.pulse echo "autospawn = no" >> ~/.pulse/client.confCreate a file (50alsa) to automate after system suspend.
sudo gedit /etc/pm/sleep.d/50alsaAdd the following to the file. Notice 'pulseaudio --kill' added.
case "$1" in hibernate|suspend) # Stopping is not required ;; thaw|resume) pulseaudio --kill /sbin/alsa force-reload pulseaudio --start ;; *) exit $NA ;; esac
Boyi
- 39