ikonnikov / LegionY530Ubuntu

Guide for installing Ubuntu on the Legion Y530

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing Ubuntu on the Legion Y530

This repository provides scripts and a step by step on how to get Ubuntu running on the Lenovo Legion Y530.

These steps were tested on a Legion with the following Specs:

  • i7-8750H
  • 16GB DDR4
  • 1920x1080 Resolution (60Hz)
  • 256GB NVMe SSD + 1TB Platter

However this should work on all configurations.

If at any point the machine becomes unresponsive, you can use Magic SysRq to reboot safely

Remember: Reboot Even If System Utterly Broken

To use Magic SysRq, hold down the right Alt key and PrtSc, and then type (In Order) R, E, I, S, U, B. The machine should then reboot. If for some reason this doesn't work, then hold the power button down to power off the machine.

Some things to note before Beginning:

  • This guide assumes decent knowledge of the Linux command line

  • Following this guide will result in Windows being replaced with Ubuntu

    • You can however, choose to install alongside your current OS
  • Several features of the Legion will be unavailable on Linux

    • Screen Record Button - unknown to the keyboard driver?
    • Airplane Mode Button - generates event in linux live?
    • Camera Privacy Button - generates event in linux live?
    • Microphone Mute Button - Works in linux live? It appears these buttons are mapped by the ideapad_laptop module, which is fixed in linux kernel master branch, but not available to ubuntu yet.
  • 18.10 seems to have issues with USB 3.0 flash drives. 2.0 drives work fine.

    The current reccomended versions of Ubuntu are as follows
    • LTS: 18.04.1 or latest point release
    • Non-LTS: 18.10
Back up your data using Windows Backup or similar before continuing

Now that the important information is out of the way, let's begin

1. Download the Ubuntu disk image and imaging software

2. Using Etcher, write the image to a USB Drive

After installing and opening Etcher, select your USB device and downloaded .iso and press the button labeled Flash!

Etcher Screenshot

3. Disable SecureBoot

Once Etcher has completed (It will show a screen with the message "Flash Complete"), you can close it. While Ubuntu can be installed with SecureBoot enabled, some drivers and features will not work. To disable, the machine needs to be booted into the UEFI settings. To get into UEFI settings, open the start menu in Windows and select restart while holding down shift. Hold down shift until you see the advanced option screen.

Advanced Startup

From this screen, select Troubleshoot, then Advanced Options, then UEFI Firmware Settings.

Troubleshoot

Advanced Options

After selecting UEFI Firmware settings, click the button labelled "Restart" on the screen that appears.

Once in the UEFI settings, navigate to the Security tab using the arrow keys, then navigate down to Secure Boot. Press enter, select "Disabled" using the arrow keys, then press enter again. Once Secure Boot has been set to disabled, press F10 and select "Yes" to save the changes.

UEFI Firmware Setting

Security Settings

4. Boot from the flash drive.

After selecting yes to save the settings, the machine will reboot. as soon as the reboot happens, start pressing the F12 button until you see the boot device selection screen.

Boot Device Selection

Select the flash drive and press enter to boot. on the screen that pops up, select "Try ubuntu without installing" or the equivalent option.

5. Install Ubuntu

Once the live desktop loads, open a terminal and run the following command sudo rmmod ideapad_laptop. This command will enable wifi. If you are using a wired connection, this step isn't necessary, and a later step will permanently disable this module so wifi always works.

Select the "Install Ubuntu" icon on the desktop and follow the wizard to install Ubuntu on your desired drive. Once completed, select the option to restart the computer.

6. Install any available updates

once you are at the desktop, open the terminal and run sudo rmmod ideapad_laptop if you are using wifi. without closing the terminal, run the following command sudo apt-update && sudo apt dist-upgrade. Follow any terminal prompts and when updates are complete, leave the terminal open.

7. Permanently blacklist ideapad_laptop

To allow Wi-Fi to work every boot without having to use rmmod, the ideapad_laptop module must be added to the modprobe blacklist.

run the command sudo gedit /etc/modprobe.d/blacklist.conf and add blacklist ideapad_laptop to the end of the file. Save changes and close the editor.

Edit Blacklist

8. Install Nvidia drivers and Nvidia-prime packages.

In the terminal, run the following command sudo apt install nvidia-driver-390 nvidia-prime. Follow all the prompts to install the drivers and required packages.

9. Verify that the Nvidia drivers and Prime packages are installed and configured correctly.

run the following series of commands and verify the output

prime-select query 

Should output 'nvidia'

sudo prime-select intel 

Should output text similar to 'Selecting profile intel'

prime-select query 

Should now output 'intel'

If the above commands complete successfully, then you have successfully configured your Legion Y530 with Ubuntu.

Advanced Features

For multitouch touchpad gestures, you can install libinput-gestures from the below github repo.

https://github.com/bulletmark/libinput-gestures

About

Guide for installing Ubuntu on the Legion Y530

License:GNU General Public License v3.0