Monday, 18 February 2013

Upgrading to 12.10 to fix some issues

After discovering some issues (no right click & window move/resize with the clickpad, failed detecting external hdmi monitor and VERY slow wifi), I decided to give it a shot and upgraded to 12.10.

Got an error during setup regarding libdrm2 library that I easily fixed following instructions in this post : http://www.kubuntuforums.net/showthread.php?60545-Upgrade-install-issue-libdrm2

After upgrade to 12.10 :

- Right click / Window resize-move : fixed
- Wifi performance : seems to be fixed since kernel 3.6 (source : https://help.ubuntu.com/community/AsusZenbookPrime)
- External HDMI Monitor detection : still not working (I have to mention that I also installed Bumblebee (https://wiki.ubuntu.com/Bumblebee))

Regarding The HDMI issue, it seems it's a known issue for optimus cards.
In fact, it seems that the HDMI port is actually attached to the nvidia card but HDMI is not currently supported with Bumblebee.

A list of a few interesting threads around optimus support in Linux and issues :

http://en.wikipedia.org/wiki/Nvidia_Optimus
http://eternalvoid.net/tutorials/linux-optimus-gt650m
http://www.webupd8.org/2012/08/get-hdmi-working-with-nvidia-optimus-on.html
https://wiki.ubuntu.com/HardwareSupport/Machines/Laptops/Dell/XPS/15z
http://doc.ubuntu-fr.org/nvidia_optimus (in French)
http://askubuntu.com/questions/252993/run-unity-on-external-monitor-with-bumblebee
http://airlied.livejournal.com/

Seems to me that for now the quickest way to get multi monitor working properly and easily for now is to buy a Mini Display port to HDMI adapter ... :-D

Update 07/03/2013 : Just figured out that this is NOT a Mini Display port but a MiNi VGA port, crap ! :-(

To be continued...

Tuesday, 5 February 2013

Installing Ubuntu 12.04

As an Asus Laptop fan from the early days, I rewarded myself recently with the new Asus UX51VZ-XH71 as soon as it was out here in Canada.

This laptop comes with Windows 8 Pro out of the box and I want to setup dual boot since my spouse is more comfortable overall with Windows. (She can use Ubuntu but not convinced yet, have to work harder on that...)

To make a short story, the laptop comes pre-configured with a "fake" RAID 0 array and Windows 8 EFI boot, so the idea here is to find a way to install Ubuntu on the same raid array without blowing Windows 8 installation and recovery partition...
Go !

1) Boot into Windows 8, go to Manage/Disk Manager and remove partition associated with D: which takes half of the total space and is empty... and which is therefore a good candidate for installing Ubuntu on it !

2) Download Ubuntu 12.04.1 LTS Alternate iso here : http://releases.ubuntu.com/precise/ubuntu-12.04.1-alternate-amd64.iso (required to detect the "fake" RAID 0 array)

3) Follow instructions here : https://help.ubuntu.com/community/Installation/FromUSBStick to build a bootable USB stick

Note : First I used Universal USB installer in Windows to create it but then I ran into this bug : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1041911
My advice here to to build the stick from another Ubuntu machine using dd in command line or "Startup Disk Creator" in Applications/System

4) Boot on the USB stick (to change boot priorities or to select an UEFI device to boot from, hit F2 at boot). At some point the installation will ask if you want to load RAID drivers, say YES and the installer will be able to read partitions on the array. I personally used the option "use the largest contiguous space" when the installer asked me on which partition to install. Next. Next. Ubuntu is installed.

5) When you will reboot, you should now have a GRUB menu that pops up with both Ubuntu & Windows 8 entries.  At this point Ubuntu entries work, Windows 8 don't !
And the only way to boot Windows 8 for now is to hit F2 at startup and select "Windows Boot Manager" in the list of UEFI devices.

6) Don't panic, we are going to fix this. os-prober actually generates bad entries in the Grub menu and we need to tweak this for UEFI support as well.

7) Boot up Ubuntu. Open a terminal and run :

sudo apt-get install grub2

sudo vi /etc/default/grub and add GRUB_DISABLE_OS_PROBER=true at the end

8) Search for the magic String !
This command :

sudo grub-probe --target=fs_uuid /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi

will output a String like XXXX-XXXX, copy it and then create a custom menu entry for Windows 8 with sudo vi /etc/grub.d/40_custom like this :

menuentry "Microsoft Windows_8" {
    search --fs-uuid --no-floppy --set=root XXXX-XXXX
    chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

9) Run sudo update-grub2 so that the menu entries gets regenerated

10) Reboot and enjoy !

P.S. : Thanks to smaug____ from the notebookreview.com forums for figuring most of this out (for Fedora) based on this thread : http://forums.fedoraforum.org/showthread.php?t=287725