Lenovo Y520 15IKBN

Introduction
Lenovo Y520 is a thin-and-light 15.6" workstation/multimedia laptop from Lenovo's 2017 Lenovo Legion lineup.

There are three laptop models in Y520 series:


 * Y520-15IKBA
 * Y520-15IKBN
 * Y520-15IKBM

The Y520-15IKBM model has a DisplayPort mini connector, while the Y520-15IKBA and Y520-15IKBN models have a Memory card slot 4-in-1 Card Reader (SD, SDHC, SDXC, MMC).

Lenovo Y520 is a good laptop for installing Gentoo Linux. The laptop has a solid build, a good keyboard, and a nice 15" 1920x1080 Full HD LED Backlit Anti-glare IPS Display. It is possible to have both NMVe and an SSD or spinning hard disk.

.

After proper configuration, every part of the Lenovo Y520 is Linux friendly.

Installation
The installation is per the Gentoo AMD64 handbook.

Some specific configuration options are:
 * USB support, configuring xHCI, EHCI
 * Audio according to ALSA and optionally PulseAudio. Make sure to enable build Realtek HD-audio codec support.

Microcode
Intel released microcode updates that fixes fault on processors. Install the officially published microcode package. For more info see Intel microcode.

Storage Devices
NVM Express block device ( CONFIG_BLK_DEV_NVME ) must be activated to gain NVMe device support. The NVMe driver has support for temperature sensors ( CONFIG_NVME_HWMON ) as of Linux 5.5:

Devices will show up under.

.

Compiler settings
More info is available at:
 * GCC optimization
 * MAKEOPTS
 * EMERGE_DEFAULT_OPTS

Packages settings
For more info: CPU_FLAGS_X86

USE flags
With Intel Modesetting DDX as video driver add libinput as input driver.