Lenovo 15.6 Inch ThinkPad P15 Gen 2 Mobile Workstation User Guide

June 9, 2024
Lenovo

Lenovo 15.6 Inch ThinkPad P15 Gen 2 Mobile Workstation

Section 1 – BIOS Setup

The first step prior to installing Linux is to make sure the system BIOS is setup accordingly. Note, there are a couple of things to know prior to installing Linux on the system.

  • BIOS RAID mode is not supported using Linux on these systems.
  • It is recommended to disable ‘Secure Boot’ prior to installing Linux.

Follow these steps to ensure BIOS is being configured properly to install Linux.

  • Boot into BIOS by pressing the function F1 key at the ‘Lenovo’ splash screen.

  • Select the ‘Config’ menu tab, followed by the ‘Storage’ menu option.

  • Make sure the “VMD Controller” is turned ‘Off’.

  • Select the ‘Security’ tab, followed by the ‘Secure Boot’ menu option.

  • Turn off the ‘Secure Boot’ option by selecting the slider option.

  • Press function key F10 to save and exit BIOS setup and select ‘Yes’ to save configuration changes.

Section 2 – Discrete vs Hybrid Graphics

The Lenovo Thinkpad P15 Gen 2 and P17 Gen 2 systems offer both Nvidia and Intel graphics. There are a couple of different options within BIOS setup for graphics mode: ‘Hybrid’ versus ‘Discrete’. The default graphics mode for these systems is ‘Hybrid’ graphics.

  • Hybrid Graphics mode – utilizes the integrated Intel graphics as the primary graphics to achieve longer battery life and enables discrete graphics on demand.
  • Discrete Graphics mode – utilizes only the discrete GPU to achieve higher graphics performance.

Note, the graphics mode can be changed from within BIOS setup, selecting the ‘Config’ option, selecting the ‘Display’ menu option under the ‘Config’ menu, and changing the ‘Graphics Device’ dropdown menu from either “Hybrid Graphics” or “Discrete Graphics”.

Section 3 – Installing Ubuntu 20.04 LTS

Please refer to the following instructions and screenshots on how to install Ubuntu 20.04 LTS on the Lenovo Thinkpad P15 Gen 2 and P17 Gen 2.

  • Insert the Ubuntu 20.04 LTS installation media (either through USB or CD/DVD).
  • Power on the system and press the function F12 key whenever the following Lenovo splash screen appears.
  • Select the Linux bootable installation media from the F12 boot menu list.
  • Highlight ‘Ubuntu’ from the GRUB boot menu and press ‘enter’.
  • The system may check the Ubuntu installation media for disk errors. Pressing ‘CTRL + C’ will skip disk checking.
  • The Ubuntu installation will begin to load.
  • The Ubuntu Linux Welcome Screen should appear. Click “Install Ubuntu” to proceed.
  • Select the appropriate keyboard layout and language and ‘Continue’.
  • Select ‘Normal Installation’ and ‘Continue’.
  • Select the installation type. For simplicity, this guide was done using ‘Erase disk and install Ubuntu’.
  • With multiple drives installed in the system, the Ubuntu installer will likely prompt the user to select which drive to install the operating system. Select one of the drives from the dropdown menu and ‘Install Now’.
  • Select ‘Continue’ to confirm changes will be made to the disk.
  • Select the appropriate geographical location and ‘Continue’.
  • Fill out the appropriate information and select ‘Continue’.
  • Ubuntu installation progress bar will be shown.Lenovo-15-6-Inch-ThinkPad-P15-Gen-2-Mobile-Workstation-FIG-21
  • nce the installation completes, select ‘Restart Now’.
  • Remove the installation media and press ‘Enter’.
  • Ubuntu Desktop Screen.

Section 4 – Installing the Wifi Driver

In order to get the wireless networking adapter to adequately function properly, Lenovo recommends updating to the Linux OEM kernel. To do so, simply run the following Linux commands with superuser (root) privileges.

sudo apt-get install linux-image-oem-20.04 # sudo apt-get install linux-

headers-oem-20.04 # reboot

Also, it’s important to make sure the Linux drivers are installed for the appropriate wireless adapter used in the system. Follow these steps below to add the appropriate Linux wireless drivers to the system.

  1. Download the latest Linux driver from Intel’s website: https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-ty-59.601f3a66.0.tgz

  2. Extract the *.tgz file by executing the following command:

    tar zxf iwlwifi-ty-59.601f3a66.0.tgz

  3. Copy over the *.ucode file from the extracted directory to the /lib/firmware directory on the system. # cp iwlwifi-ty-a0-gf-a0-59.ucode /lib/firmware

  4. Unload and reload the iwlwifi driver.

    modprobe -r iwlwifi && modprobe iwlwifi

To check to see both Ethernet and Wireless Networks, run the following command: # ifconfig -a

➔ enp11s0 indicates the ethernet device ➔ wlp9s0 indicates the wireless network

Section 5 – Installing the Nvidia Graphics Driver

In order to get optimal performance out of the Nvidia GPU, it’s a good idea to ensure the latest Nvidia graphics driver is installed. Follow these steps below to install an Nvidia Graphics driver on the system.

  1. Blacklist the Linux Nouveau driver, by adding ‘blacklist nouveau’ to the end of the following /etc/modprobe.d/blacklist.conf file. # nano /etc/modprobe.d/blacklist.conf
    ➔ Add ‘blacklist nouveau’ to the end of this file. # update-initramfs -u # reboot

  2. Download the latest Nvidia driver from Nvidia’s website for the graphics device used in the system.

  3. Install the Nvidia driver downloaded by running the following command: # bash NVIDIA*

  4. Follow the onscreen driver installation prompts to completion.

  • ➔ Select ‘Continue Installation
  • ➔ Select ‘Yes’ to install 32-bit compatibility libraries.
  • ➔ Select ‘OK’ at the ‘WARNING’ prompt
  • ➔ Select ‘Yes’ to update the x-configuration file.
  • ➔ Select ‘OK’ indicating that the x-configuration file was successfully updated and that the driver was successfully installed.
  • Check to see if the driver installed and loaded properly. # nvidia-smi

Revision History

Lenovo-15-6-Inch-ThinkPad-P15-Gen-2-Mobile-Workstation-
FIG-33

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Lenovo User Manuals

Related Manuals