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.
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.
-
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.
- LTS: 18.04.1 or latest point release
- Non-LTS: 18.10
Now that the important information is out of the way, let's begin
- Ubuntu
- Etcher
After installing and opening Etcher, select your USB device and downloaded .iso and press the button labeled Flash!
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.
From this screen, select Troubleshoot, then Advanced Options, then UEFI Firmware Settings.
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.
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.
Select the flash drive and press enter to boot. on the screen that pops up, select "Try ubuntu without installing" or the equivalent option.
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.
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.
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.
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.
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.
For multitouch touchpad gestures, you can install libinput-gestures from the below github repo.