Hove Too – Fixing Suspend anomalies on the Wind

I tried the various suggestions in Ubuntu Hardy Heron 8.04 Installation and Post Installation Guide and Tweak which are otherwise very useful documents but I initially ended up with an almost unusable system which had no sound, froze on videos and would not mount USB drives at startup. I had to reloaded from scratch, 3 hours lost as it was an almost complete configuration. At the time I blamed this on the changes I had made to get sound back after a suspend but have since found it was probably a different cause related to pulse audio as I was using the exaple files for tests which also used video. This must be sorted out before proceeding to do a lot of audio and video tests.

Fixing freezes due to Pulse Audio

Disable pulse audio by Preferences -> Sessions and untick Pulse Audio Session Management

Fixing Suspend problems caused by power saving modes.

Next one should carry out the modifications to reduce the agression of the hard drive power management as are required to reduce drive clicking. That has already been covered and you may have done it. If you have not done so go back and do it – it seems to be essential to carry it out before any experimenting with Suspend. After the power management has been done suspend will probably work reliably but there will be no sound and possibly USB will be unreliable. Note I have turned off the advanced drive level power management completely (setting 255 rather than the recommended setting of 192 – I do not know if that is significant to Suspend)

Fixing Sound after a Suspend.

This is because the sound driver is set up to a default automatic mode which should pick up settings from the BIOS which does not work after a suspend. One therefore needs to add a parameter to the sound configuration file /etc/modprobe.d/alsa-base for snd-hda-intel to tell it what to use. The choice is not simple as there is no setting for the Wind and there are about 20 choices – two are given as Targa/MSI however and I tried both – the setting which worked was targa-2ch-dig

sudo gedit /etc/modprobe.d/alsa-base

At the end of the file, paste the following:

options snd-hda-intel model=targa-2ch-dig

This fixed sound but all the settings have to be set up again by double clicking the volume control. You may need to play to get all the levels right.

Fixing USB problems after a suspend

This change makes sure that all USB devices come up properly after a suspend. It is documented in the thread USB devices dead after sleep/hibernate and other places. This change makes sure that the ehci-hcd USB driver is handled correctly by adding to the list of modules covered during a suspend. The proceedure is to do the following in a termina for Hardy Heron isl:

echo SUSPEND_MODULES=”ehci-hcd” > /tmp/unload_modules
chmod +x /tmp/unload_modules
sudo mv /tmp/unload_modules

This only works if there is no /etc/pm/config.d/unload_modules file already – if it exists then it should be edited and

added to the file. Check using the file browser

End result

I now suspend all the time and have had no problems with sound or connected USB devices coming back up.

1 Comment

  1. Nephi

    A perfect reply! Thanks for taking the treloub.


Leave a Comment

Your email address will not be published. Required fields are marked *