Hi!
I recently upgraded my laptop to a Dell XPS 17. The XPS 17 is Core i7 based, and also designed as a gaming laptop. This means it has two graphics cards installed: The Intel integrated graphics, and a Nvidia GT555M. While drivers were preinstalled, to allow Windows to fully utilise this, Ubuntu proved to be a bit of a pain to install, so here's my guide on how to do so without tearing your hair out.
Step 1: Boot the Ubuntu LiveCD
This was the first challenge I faced. For some reason, the machine was crashing and hanging very soon after the beginning of the boot process. After a little investigation, I found that this was something to do with the nouveau driver trying to use KMS to set the video mode. In order to initially boot up, it was necessary to temporarily disable kernel modesetting. This can be done via the normal Ubuntu CD boot menu. When the accessibility icon appears at the bottom of the screen, press any key to enter the boot menu. Now press [F6] to see a drop down menu of commonly used kernel options (as shown in the image above). Select nomodeset and press [F6] again to accept. Now press Enter to boot, and you shouldn't see the nouveau driver crash again. You may see nothing but a blank screen during boot, and your resolution once booted is quite likely to be terrible, but at least it's running!
Step 2: Install Ubuntu
Install Ubuntu as you normally would. This is outside the scope of this article, and is pretty simple anyway. Reader Garf found that in order to boot Ubuntu from the HDD this first time, he needed to add nomodeset to the kernel command line. To do this, select Ubuntu's main option in Grub, press e and add it to the end of the kernel command line.
Step 3: Boot Ubuntu, and configure
Once Ubuntu is up and running, you need to install Ironhide, which is a fork of Bumblebee, a Linux development to allow Nvidia Optimus support (are you sick of the Transformers references yet?). This can be done by following these steps:
- Fix suspend by creating a new file in /etc/pm/config.d. Call it whatever you like, but something related to its function would make sense. Into this file, insert the text SUSPEND_MODULES="$SUSPEND_MODULES xhci-hcd"
- Blacklist the nouveau driver by adding blacklist nouveau to /etc/modprobe.d/blacklist.conf
- Install mesa utilities and driconf with the command sudo apt-get install mesa-utils driconf
- Add the Ironhide repository with sudo apt-add-repository ppa:mj-casalogic/ironhide
- Install Ironhide: sudo apt-get update && sudo apt-get install ironhide
- Now reboot, to confirm that all steps so far have worked - it's worth noting that reader Starchild didn't need to use the guide past this point, so if your system works fine after this, and you can use optirun without any issues, then by all means finish the guide after this point.
- Add the Xorg Edgers ppa for updated graphics drivers with the command sudo apt-add-repository ppa:xorg-edgers/ppa
- Update and upgrade with sudo apt-get update && sudo apt-get dist-upgrade
- Now reboot, and cross your fingers!
If all went well, your system will come up absolutely fine. In order to use your Nvidia card, prefix the program you want to run with "optirun ", ie "optirun glxgears" to see how glxgears runs with your Nvidia card.
If anybody has any questions, feel free to give me a shout via comments or via my contact form!
n00b
Sources:
Trial and error,
Ubuntu on Dell XPS 17 - graphics and multi monitor