Comment 18 for bug 89269

As a workaround for that bug I have done this:

1. open up a terminal window
2. cd /usr/lib/pm-utils/sleep.d
3. sudo gedit
4. paste this:

if [ "$?" -eq 0 ]; then
 echo "BATTERY" > /var/lib/acpi-support/powerstate
 /etc/acpi/ ac_adapter
 if [ "$?" -eq 1 ]; then
  echo "AC" > /var/lib/acpi-support/powerstate
  /etc/acpi/ battery

5. save & close
6. chmod 755

What this does is trick the file into thinking the power state has changed and forces it to recheck everything and run what's needed for this 'new' power state. It's just an ugly fix for a bigger problem and I'd rather have this fixed.