Upgrading ubuntu 10.04 to grub 2

Yes – it has been a while between posts! My kogan netbook has been serving the purpose it was intended for, meaning I haven’t come across anything I have felt I need to share in this blog. Upgrading ubuntu along the way has been happy and cheery with no issues, so no need to blog…

But there have been three or four comments over the months regarding the touchpad not working with newer versions of ubuntu. Whilst ubuntu 9.10 came with grub 2 by default, upgrading from 9.04 (grub 1.5) to 9.10 and then up to 10.04 meant grub stayed at 1.5, so even though I am running 10.04, I am still on grub 1.5, and the “i8042_nomux” fix seems to still work.

When 9.10 was released, Tom provided this blog with a solution for making the kogan netbook’s touchpad work in 9.10. I had figured this would work for 10.04 too, so to be sure, I think its time to upgrade my kogan netbook to 10.04, just to make sure the touchpad still works.

Upgrading to grub 2 is straight forward using apt-get:

sudo apt-get install grub2

During the upgrade I was asked if i wanted to chainload grub 2 from my existing grub legacy setup. It was highly recommended, so I went with it. It also asked me if I wanted to keep the “i8042_nomux” parameter, which I also agreed to do – I want my touchpad!

Grub 2 was installed, and after a reboot all was still well with the touchpad. However, because I agreed to chainload grub 2, grub 1.5 is still installed on my Master Boot Record (MBR) – not grub 2. This can be easily rectified with the following command:

sudo upgrade-from-grub-legacy

During this grub upgrade, I was asked if I wanted to keep my locally modified version of /etc/default/grub, and figuring this was modified for the “i8042_nomux” parameter, I agreed. I then had to choose where to install grub too, and I chose /dev/sda.

After a quick reboot, using grub 2 to boot, my touchpad still worked. success!! I now know that under ubuntu 10.04 with grub2, the touchpad on the kogan netbook works.

Now to help the people who can’t get the touchpad working. Short of doing a fresh install with 10.04 on my machine to try and replicate the issue (I don’t have the time, sorry), I thought I would try and work out what makes the touchpad work under grub 2.

Based on Tom’s info, i checked out my grub config:

sudo gedit /etc/default/grub

And it looks like:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="i8042.nomux"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

I believe the important part is this line:

GRUB_CMDLINE_LINUX="i8042.nomux"

So I decided to comment the line out by adding a “#” to the front, run “sudo update-grub” to update my grub config and rebooted. When ubuntu came back, my touchpad was fixed in the center of the screen – stuck and broken. Reversing what I had just done (remove the “#”, run “sudo update-grub”, reboot) and the touchpad was back in motion.

If your kogan agora’s touchpad is not working, I have the following advice to offer. Edit your grub config:

sudo gedit /etc/default/grub

and type the following line – I say type because if you copy and paste, the wrong quotes may be used:

GRUB_CMDLINE_LINUX="i8042.nomux"

If there any other occurences of i8042.nomux remove them (just i8042.nomux) and then update your grub config:

sudo update-grub

Now reboot, and fingers crossed your touchpad will dance with your finger. If this fails, please comment below with your specifics (i.e fresh ubuntu 10.04 install, upgraded from grub 1.5, upgraded from 9.10, etc) and I will try and help.

 

8 thoughts on “Upgrading ubuntu 10.04 to grub 2

  1. Firstly I’d like to say a massive thankyou for coming back, your support for the Agora Netbook saves masses of time on the phone to Kogan who would be unlikely to help with the problems we are encountering.

    Secondly, after complaining in a previous post about having to use an external mouse, I followed the new rules in your most recent post and realized there wasn’t even a “i8042.nomux” in my grub config! I typed it in, updated and lo and behold, I have a working touchpad again.

    Thanks one more time!

  2. No worries nickamc – glad to hear your kogan’s touchpad is working again! It makes for a better experience when you don’t need an external mouse :)

  3. Hey thanks for the post. Removed gOS from my Kogan Agora today, installed Ubuntu 10.10 and came across the touchpad problem.

    I found your other post first (http://agoranetbook.kayno.net/2009/04/25/oh-my-touchpad-doesnt-work/) but /boot/grub/menu.lst didn’t exist. Then I found this post which worked a treat :D

    To be specific:
    sudo apt-get install grub2
    sudo gedit /etc/default/grub
    Replace GRUB_CMDLINE_LINUX=”" with GRUB_CMDLINE_LINUX=”i8042.nomux”
    sudo update-grub
    reboot

  4. Hi Kayno -

    I recently upgraded to 11.04 and while my touchpad works, it tends to freeze quite often. I don’t know why this is the case.

    I don’t seem to have a /etc/default/grub file in order to check the “GRUB_CMDLINE_LINUX=”i8042.nomux” line.

    Are you running 11.04?

    Any advice would be appreciated.

  5. Hey Travis

    The same thing happens on my netbook (11.04), but only on my user account. Other user accounts are fine. Try adding another user and logging in with that, see how it goes.

    I am thinking a fresh install is needed with 11.04 to see how it goes from fresh.

    Cheers
    Kayne

  6. Pingback: Ubuntu 12.10 Upgrade to GRUB2 « harian k_de (kdenotes)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>