Enable Hibernate
A number of ubermix users have expressed an interest in enabling hibernate on ubermix devices. There are a number of reasons why you might want to do this, including:
- Hibernate lasts far longer than Suspend mode, as no battery power is required to maintain the device's state.
- In order to enable hibernate, a swap partition must be created, which can increase capacity for running applications on smaller systems.
- If a system is having issues waking from suspend, hibernate will often work as a work-around
While setting up hibernate can be a very complex, ubermix v1.02+ has an a simple script that automates the process of enabling hibernate on an ubermix device. Please note that this should only be performed on a device with a hard disk, NOT a device with flash storage as its primary disk.
Enable Hibernate
- Reboot the device and press ESC immediately after your computer manufacturer's splash screen disappears (you should see a flashing cursor in the top left corner for a few seconds - press the escape key within 3 seconds to view the menu.)
- Select "Normal Boot" from the menu (but don't press enter) and press the "e" key on your keyboard
- Select the line in the box that begins with the word "initrd" and move the cursor to the end of the line.
- Backspace over the four letters "aufs" and replace them with "generic". Do not add any spaces. Then press "ctrl+x" on your keyboard to boot
- Open a terminal (ctrl-alt-t) and type /usr/local/lib/hibernate/setup.sh
- Reboot
Your device should now have a "Hibernate" option in the power/settings menu, and in the dialog that appears when you press the power button. You can also change the default behavior when you close the lid, etc. under power/settings (the gear in the top-right corner)->System Settings->Power.
Disable Suspend
If you are experiencing problems with suspend and wish to disable it altogether, do the following:
- Open a terminal (ctrl-alt-t)
- Type sudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
- Locate "<allow_active>yes</allow_active>" under suspend and change it to no
- Save and suspend will be gone from the menu on a reboot
Make sure to do this in "generic" mode by following steps 1-4 in the top section, so that the setting will be retained on a reset.