fixing suspend and enabling wol on ubuntu jaunty
ubuntu jaunty power issue
I had some issues with suspend/resume on previous versions of Ubuntu, but it seems that most of them have been fixed in Jaunty. With a brand new installation of Jaunty, the system will suspend but will immediately resume. This bug was highlighted here.
I used the fix by Geoff Goehle and created the file etc/pm/config.d/usb_suspend_workaround with the line:
1
SUSPEND_MODULES="ehci_hcd uhci_hcd ohci_hcd usbcore"
After adding this file, resume/suspend should work correctly (my system has an evga 750i FTW motherboard).
Enabling WakeOnLan takes a few more steps. First, make sure you enable it in your BIOS. To check if your network card supports it, do
1
sudo ethtool eth0
in your terminal. if WOL is supported, you will see the lines
1
Supports Wake-on: g Wake-on: g
If there is a ‘d’ by Wake-on, then you need to enable WOL. Do this by executing
1
sudo ethtool -s eth0 wol g
This will turn on WakeOnLan but only for your current session.
To automatically enable WOL when your system starts, create the file: /etc/init.d/wakeonlanconfig with the lines:
1
2
#!/bin/bash
ethtool -s eth0 wol g exit
and execute
1
chmod a+x wakeonlanconfig
to give everyone execute permissions. To make the script automatically run, execute
1
update-rc.d -f wakeonlanconfig defaults
If you want to remove these startup scripts, replace “defaults” with “remove”. These steps were referenced here. EDIT: I seem to have additional problems with a blank screen after resuming. I think it might be this bug.