Showing posts with label hibernate. Show all posts
Showing posts with label hibernate. Show all posts

8/27/2011

Runtime on notebooks

Got an Apple MacBook Pro towards the start of the year. Issue was that closing the lid only puts the machine in stand by mode which still consumes power, so I wasn't getting as long a runtime as I would on my old HP nx6120 with a travel battery.

A Google search led me to Todd Huss's[2] page below. This identified the pmset[1] command as being quite useful. I followed the instructions and now have the MacBook hibernating when I close the lid. Since then I have been asked by a number of colleagues about this, so thought I better document it here.

I rebuilt the old HP nx6120 to run Ubuntu 10.04 LTS. Again noticed that I wasn't getting reasonable runtime, instead of the usual 8-10 hrs, I only got around 3-4hrs. A discussion with a colleague led me to Linux Laptop Tools. Again some "Googling" led to the Ubuntu power management[3] which seemed to increase the runtime.

References

  1. http://en.wikipedia.org/wiki/Pmset
  2. http://gabrito.com/post/hibernate-with-the-macbook-pro
  3. https://wiki.ubuntu.com/PowerManagement

3/01/2010

Ubuntu 9.10 does not boot up after hibernate!!!

I've been running Ubuntu 9.10 desktp on my HP nx6120 notebook with some success for a little while now. It performs well for my TeX work, occasional web-browsing, VPN, RDP and e-mails. The GUI is enhanced using Mac4Lin. I loved the hibernate feature until late this afternoon when it refused to bootup after hibernating. I would get the splash screen and then nothing... curses!!!.

I managed to find a work-around but am still not sure what the problem was:
  1. Boot up the machine with a rescue CDROM
  2. Confirm the root partition for the Ubuntu install (in my case it was /dev/sda8, although I only have IDE drives)
  3. Boot up the machine and wait for the GRUB prompt
  4. Press "e" to edit the entry
  5. Replace the "root=UUID..." with "root=/dev/..." on the "linux" line entry
  6. Add the entry "no_console_suspend" on the same line
  7. Press the "Tab" key to complete the Emacs edit
  8. Press "Ctrl+x" to continue booting
Once the machine has bootup as normal, edit the GRUB configuration
  1. sudo vi /etc/default/grub 
    1. Edit the file to uncomment GRUB_DISABLE_LINUX_UUID
    2. Edit the file to add no_console_suspend in the GRUB_CMDLINE_LINUX
    3. Save the file and exit
  2. sudo /usr/sbin/update-grub

References