May 28th, 2010

Ubuntu Hibernate on Lid Close

I had my Thinkpad T60 set up to hibernate at the log in screen when the lid is closed. After updating Ubuntu to 10.04, this didn’t work any more. I’ve gotten used to upgrades resetting this behavior, but this time the steps I’ve used in the past didn’t work.

With a little Googling, I came up with these modified instructions:

  • Log out of your X session
  • Go to a TTY session with Ctrl+Alt+F1
  • Log in
  • export DISPLAY=:0
  • sudo -u gdm gconf-editor
  • Switch to the graphical session with Ctrl+Alt+F8 (note, the graphical session used to be F7, but in Ubuntu 10, it’s now F8. If F8 doesn’t work try F7 or F9.
  • Select /apps/gnome-power-manager/buttons/lid_battery and change the value to hibernate
  • Close gconf-editor
  • Switch back to the TTY session and log out
  • Go back to the log in session with Ctrl+Alt+F8

Uncategorized

Comments (2)

Permalink

Ubuntu Grub Not Updating

Ubuntu has not been adding kernels in /boot/grub/menu.lst since about version 8. Running sudo update-grub hangs. Thinking it must not like my older menu.lst, I did this:

  • sudo -s
  • cd /boot/grub
  • mv menu.lst menu.lst-save
  • /usr/sbin/update-grub


I got this prompt:
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N)
I answered yes and it made a version update-grub could live with. All I had to do is go back and add the menu options for my dual boot partitions.

Uncategorized

Comments (0)

Permalink

Thinkpad T60 Ubuntu Upgrade

I upgraded Pinto, a Thinkpad T60 from Ubuntu 9.10 to 10.04 SLT. The upgrade went almost without a hitch.

The first issue was on the reboot. I can’t blame this on the upgrade, though. Since at least Ubuntu 8, /boot/grub/menu.lst doesn’t get updated whenever a new kernel is installed. So on reboot, I got the kernel version Ubuntu 9.10 was using. Manually editing menu.lst fixed that.

After a reboot, the first thing I noticed was middle mouse button scrolling didn’t work. Googling “ubuntu 10.04 middle button scroll” turned up a fix.

Uncategorized

Comments (0)

Permalink