Installing Ubuntu on the Lenovo X1 Extreme Gen 2
A step-by-step guide to installing Ubuntu 18.04LTS on the Lenovo X1 Extreme Gen 2.
This article is going to document the steps I took to get Ubuntu up and running alongside Windows on the Lenovo X1 Extreme Gen 2 (X1 Extreme from now on) so that you don’t make the same mistakes that I did.
Step 1: Create an Ubuntu installation USB drive
The first thing we need to do is to create an Ubuntu installation USB drive. There are various ways to do this and the Ubuntu website has some great tutorials that walk you through the process.
The steps are slightly different from OS to OS:
The disk image for Ubuntu 18.04.4LTs can be found here.
Step 2: Disable Windows Fast Startup
Although not necessary, it is recommended to disable Windows fast startup when you want to dual boot your system. To disable it:
- Open Control Panel
- Select “Hardware and Sound”
- Under “Power Options” select “Change what the power buttons do”
- Select “Change settings that are currently unavailable” (you may be required to enter your administrator password)
- Under “Shutdown settings” deselect “Turn on fast startup”
- Save changes
If you want to re-enable fast startup, you can go through the same set of steps and reselect “Turn on fast startup”.
Step 3: Select “Discrete Graphics” in the BIOS
The X1 Extreme has both Intel integrated graphics and a dedicated Nvidia Geforce GTX 1650 graphics card. Windows can switch between the two, using integrated graphics to conserve energy and the Nvidia card when more graphical horsepower is required.
By toggling “Graphics Device” from “Hybrid Graphics” to “Discrete Graphics” in the BIOS, we’re telling the computer to only use the Nvidia card because switching between the two is not well supported on Linux. Here are the steps to do that (I’m using BIOS version 1.29 so what you see may differ):
- Restart your computer
- When you see the Lenovo logo flash on the screen, press the
F1key to enter the BIOS settings
- Select the “Config” menu
- Select the “Display” sub-menu
- Change “Graphics Device” from “Hybrid Graphics” to “Discrete Graphics”
F10to save your changes and reboot the computer.
Step 4: Create a Partition for Ubuntu
The next step is to create a partition so that we can have both Ubuntu and Windows installed on the same disk. To do this follow these steps on Windows:
- Right-click the Windows icon on the task bar
- Select ‘Disk Management’
- Right-click the “Windows (C:)” partition and select “Shrink volume”
- In the pop-up, enter the size of the partition you want to create in MB
- Select “Shrink”
Your drive should now have a new partition. Note that you can always merge your new partition back into your Windows partition whenever you want (though this may delete any data in the new partition).
Step 5: Install Ubuntu
Now we can install Ubuntu. Take the USB drive from step 1 and plug it into the X1 Extreme (if it wasn’t already).
- Restart your computer
- When the Lenovo logo appears press
F12to launch the boot menu
- Select your USB device from the list (this will launch the Ubuntu installer)
- Select “Install Ubuntu”
If your screen turns blank with streaks of color (like mine did) then close your laptop until it goes to sleep, then wake it up. That fixed the problem for me.
Go through the installation instructions for Ubuntu, ensuring you select the “Download updates while installing Ubuntu” and “Install third-party software for graphics and Wi-Fi hardware and additional media formats” options.
You will also be asked to enter a password for Secure Boot. Remember this password as we will be using it later on.
Ensure you use the partition that was created in the previous step (using the “side-by-side installation” option worked for me).
Once installation has finished, Ubuntu will prompt you to restart your system. After it reboots you will be greeted by the MOK Management screen. Perform the following steps:
- Select “Enroll MOK”
- Select “Continue”
- Select “Yes”
- Enter the password for Secure Boot you created during the Ubuntu installation process
- Select “Reboot”
Step 6: Install Nvidia Drivers
Once your laptop reboots, you should be greeted by the GRUB boot menu.
ewhilst selecting Ubuntu (should be the first item in the list)
nomodesetto the end of the line that begins with
- Exit and login to your Ubuntu account
Open up a terminal and enter:
sudo ubuntu-drivers devices
You should see a list of drivers appear (I got 3) with one of the non-free (i.e. properietary) drivers being “recommended”. Install the “recommended” driver by entering the following command into your terminal:
sudo ubuntu-drivers autoinstall
Once that’s finished, reboot your computer by typing:
sudo shutdown -r now
Log in to Ubuntu again, and when you type
sudo lshw -c display
into your terminal, you should see
driver=nvidia (among other things).
These were the steps that I took to get Ubuntu 18.04LTS and Windows 10 to dual boot on the Lenovo X1 Extreme Gen 2. I hope they worked for you as well.
These were the resources I used to install Ubuntu and write this article: