Mar 30, 2014

Ubuntu upgrade to 12.04: grub timeout does not work anymore

After doing the upgrade and solving some issues with my screen-resolution, another grub problem hit me:
The timeout for booting the standard kernel did not work anymore.
Inside /etc/default/grub
GRUB_TIMEOUT=10
and update-grub, grub worked like
 GRUB_TIMEOUT=-1
If you need a  good manual  just look here, but this does not help me, too.

After some tries, i did the following:

In /boot/grub/grub.cfg i changed from
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  fi
fi
to
terminal_output gfxterm
recordfail=0
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  fi
fi
This works, but i have to redo the change everytime update-grub is used...

Ubuntu upgrade to 12.04: screen only works with 1024x768

After upgrading a laptop-system to 12.04 (precise pangolin) X only starts with a resolution of 1024x768 and not with 1366x768.
I followed many postings and tried many things:
  • add new resolution with xrandr (here)
  • create a xorg.conf file (here)
  • add new drivers (here)
  • ...
But there was only one thing wrong: /etc/default/grub

After changing the following line everything worked:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=0
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
(i added i915.modeset=0  because with the older ubuntu version hibernate does not work and this configuration fixed it. [link])