Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AnnoyingTechnology/45cbced6dd9e11fa714d3e0151be6717 to your computer and use it in GitHub Desktop.
Save AnnoyingTechnology/45cbced6dd9e11fa714d3e0151be6717 to your computer and use it in GitHub Desktop.
Lenovo Legion Y530 Linux issues and solutions for wifi and touchpad mostly (Debian & Ubuntu)

Intel i7-8750H nVidia GTX 1050 Ti

Summary of my findings (Please comment if you can get further than me) :

edit: 06/2019 guys in the comments have found workarounds and new solutions !

Most importantly : Lenovo refuses to provide any kind of support for their product on Linux, even though the computer is sold without an OS

Ubuntu 18.04

  • switch the BIOS to UEFI (and don't forget to create the EFI partition, ~256Mb)
  • the computer will randomly freezes, during the setup phase, or afterwards. Current theory is that switching from iGPU to dedicated GPU causes the computer to freeze/hang (cursor still moves, but nothing else).
  • the keyboard and trackppad are not usable during the setup, though afterwards they both work.
  • the graphics performance are good (until the computer feezes of course)

Debian 9.5 (stable)

  • Switch the bios to UEFI (don't use legacy, don't forget to create the EFI partition, ~256Mb)
  • It installs properly in command-line using the expert mode.
  • GNOME will start and work as expected
  • The graphics drivers used by defaults appears to be "nouveau", graphics performances are poor
  • Installing nvidia-driver thru apt will cause GDM to fail starting.
  • The keyboard works during the setup and afterwards too
  • The touchpad doesn't work at all
  • The wifi works after typing sudo modprobe -r ideapad_laptop or adding blacklist ideapad_laptop to /etc/modprobe.d/blacklist.conf otherwise
  • The function keys are enabled by default, so altering the volume requires using the Fn key, for example.

Debian buster

  • no issues ! Install Debian 9.5 stable, changes your /etc/apt/sources.list to buster then apt update && apt upgrade && apt dist-upgade).
  • [edit] actually two things : no keyboard backlight, you have to use the Fn key to change the volume/brightness
@AnnoyingTechnology
Copy link
Author

AnnoyingTechnology commented Sep 5, 2018

Ethernet

description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:08:00.0
                logical name: enp8s0
                version: 15
                serial: 8c:16:45:c7:2a:d3
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.18 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
                resources: irq:17 ioport:3000(size=256) memory:a4504000-a4504fff memory:a4500000-a4503fff

Wifi

 description: Wireless interface
                product: QCA9377 802.11ac Wireless Network Adapter
                vendor: Qualcomm Atheros
                physical id: 0
                bus info: pci@0000:07:00.0
                logical name: wlp7s0
                version: 31
                serial: 30:d1:6b:e9:9f:15
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=ath10k_pci driverversion=4.17.0-3-amd64 firmware=WLAN.TF.1.0-00002-QCATFSWPZ-5 latency=0 link=no multicast=yes wireless=IEEE 802.11
                resources: irq:139 memory:a4200000-a43fffff

BT

description: Bluetooth wireless interface
                   vendor: Atheros Communications, Inc.
                   physical id: e
                   bus info: usb@1:e
                   version: 0.01
                   capabilities: bluetooth usb-2.01
                   configuration: driver=btusb maxpower=100mA speed=12Mbit/s

@neo414
Copy link

neo414 commented Dec 24, 2018

I have also seen if the screen freezes on purple after proper installation then follow below setps:-
1 while in grub during reboot press e
2. Under linux image location i.e 2nd last option add "nouveau.modeset=0" at last and then F10
3. once booted modify /etc/default/grub and add the same in the file.

Touchpad still has problem for me !
or try this :--https://forums.lenovo.com/t5/Gaming-Laptops-Knowledge-Base/Installing-Ubuntu-18-xx-on-the-Legion-Y530/tac-p/4206608#M62

@mchuc
Copy link

mchuc commented Jan 13, 2019

on debian buster You have to install Intel Drivers to unlock wifi:

apt-get install firmware-iwlwifi

and it is good to install too (because Chrome browser started ages):

apt-get install libgl1-mesa-dev

and small warning:
once time i did:

apt-get autoremove

after upgrade to buster... and my system went dead ...

@tumihu
Copy link

tumihu commented Feb 21, 2019

Touchpad still has problem for me !

On Ubuntu 18.04 with Compiz & Unity those packages solved touchpad issues for me:
xserver-xorg-input-libinput
xserver-xorg-input-multitouch
xserver-xorg-input-synaptics

@royalsaphir
Copy link

I have some trouble with that machine under Debian Buster with cinnamon as window manager.
I have installed the nvidia driver from the official website successfully, but I'm unable to use the Laptop screen and an external screen side by side. I can only choose to use either external screens via the mini-DisplayPort and HDMI port or use only the laptop screen, depending on the xorg.conf, that is used when loading the X server.
I'm pretty sure, that this is only a configuration issue, but I did not figured out how to merge these two configuration files.

Here is one with minimal configuration, where the laptop screen is working

Section "Device"
    Identifier     "My intel card"
    Driver         "intel"
EndSection

and here the on, that allows me to use the external monitor ports, but not the native screen.

Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
	Inactive "intel"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier "intel"
	Driver "modesetting"
EndSection

Section "Screen"
	Identifier "intel"
	Device "intel"
EndSection

I'm pretty confident, that there is a way to merge these configuration and use the external ports, as they are meant to.

Here for further information is the output of nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1050    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   36C    P0    N/A /  N/A |      0MiB /  4040MiB |      1%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Also nvidia-settings is returning the error: ERROR: unable to load info from any available system

@Phillip4o
Copy link

In KDE i had to install the latest Nvidia driver 390.
Then generate the xorg.conf file from inside the driver
it has this option in "X Server Display Configuration" section.
Chances are you're going to see only the external monitor there,
which is connected either to HDMI/Mini-DP or USB-Type C.
On this panel choose some options for the monitor.
Then save the options with "Save to X Configuration File".
A dialog box will open with info for the file but don't change it yet.
It generates all of the necessary configs to run the setup,
just save it and then the fun begins.
After that you have to change the config file as to your needs.
The problem is that X is sending signal to the monitor which,
is detected from the activated GPU in our case NVIDIA 1050.
But all display ports are hardwired directly to the Dedicated GPU
and the laptop display is hardwired to the Integrated GPU that's Intel,
therefore NVIDIA driver can't register laptop screen.
Try it out with xrandr result value returns only the external monitor.
So the only thing you have to do, is whitelist your integrated driver,
probe for some device ID's and finally set up the xorg.config file.
Just a friendly advice, NO syntax errors in the xorg.config file.
Example:
` # nvidia-settings: X configuration file generated by nvidia-settings

nvidia-settings: version 390.77 (buildd@lcy01-amd64-022) Thu Sep 6 07:51:39 UTC 2018

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 1920 0
Screen 1 "Screen1" 1920 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Acer SA220Q"
HorizSync 31.0 - 75.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "eDP-1-1"
HorizSync 31.0 - 75.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1050"
Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x1;PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
EndSection

Section "Device"
Identifier "Device1"
Driver "noveau"
VendorName "noveau"
BoardName "Intel Corporation Device 3e9b"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-4"
Option "metamodes" "DFP-4: 1920x1080_60 +1920+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"

Option         "SLI" "Off"
Option         "MultiGPU" "On"
Option         "BaseMosaic" "off"
SubSection     "Display"
    Depth       24
EndSubSection

EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-4"
Option "metamodes" "DFP-4: 1920x1080_59.98 +0+0"

Option         "SLI" "Off"
Option         "MultiGPU" "On"
Option         "BaseMosaic" "off"
SubSection     "Display"
    Depth       24
EndSubSection

EndSection
`

@Naahuel
Copy link

Naahuel commented Jun 22, 2019

I'd like to share my experience if it's ok.

It seems like there's a patch on the kernel that fixes the wifi issues.

Pop_OS! 19.04 (tested, works ok) & Ubuntu 19.04 (not tested, should work)

Booting from the Pop_OS! live USB gives a fully functional experience. With the LTS version I had all the problems everyone has with the wireless card. Blacklisting the ideapad_laptop module did nothing and enabling the wireless on the BIOS caused the OS to not shutdown.

I'd like to give a few recommendations:

  • Download Pop_OS! 19.04 NVIDIA (I found that the graphics card works perfectly right out of the box)
  • Install Windows (if it's not already installed) and update the BIOS. Install the Lenovo Utilities to setup the hardware (like Lenovo Vantage).
  • Reset the BIOS to default. Disable secure boot, set the boot mode to UEFI, keep the rest as it is.
  • Keep the windows install. This will help you do some maintenance and tests on your hardware specially on the battery and BIOS with the Lenovo utilities.
  • Shrink the windows partition and Install Pop_OS! on the remaining space.
  • Enjoy!

Troubleshooting

In my case, every now and then when I boot up the wifi just stops working. For no apparent reason. I haven't found any reason why this happens or how to fix it in a clean way. To "fix" this:

  • Boot up windows (another reason to keep it there in a corner of the disk)
  • Check that the wifi works
  • Restart again into Pop_OS
  • Wifi should work again... sigh

@Zenderable
Copy link

Zenderable commented Aug 21, 2019

Pop_OS! 19.04

I installed today newest Pop_OS! 19.04 (Nvidia) and everything is working like out from the box (wi-fi too). I have dual boot with Windows 10. I didn't have to do anything.

@Naahuel
Copy link

Naahuel commented Aug 21, 2019

Yes, that's what I said:

Booting from the Pop_OS! live USB gives a fully functional experience.

My recommendations had more to do with keeping your system updated because there's no way to update the BIOS from Linux and (at least in my case) sometimes I turn the computer on and the wifi just won't work, no matter how many times I reboot. All I have to do then is boot into windows, do nothing, reboot back into Linux and the wifi is working again ¯_(ツ)_/¯ (it hasn't happened in a while, so maybe they fixed it?)

@Martina-Neumayer
Copy link

Well.. I have it.. to be exact the model with the 1060 gpu and no problems at all.

I just disabled secure boot in bios, then installed EndeavourOS (Arch based distro) and at the end Prime from this tutorial..
https://forum.manjaro.org/t/howto-set-up-prime-with-nvidia-proprietary-driver/40225
Machine works like a charm :)

The only one thing I changed vs. the original tutorial was switching from the normal nvidia drivers to the dkms ones, because of my desktop, which is compiz stand-alone-mode based. I just don't want do recompile entire compiz every time new nvidia drivers are released..
Yeap.. I am a bit lazy ;)

@graciano
Copy link

When I updated to Pop_OS 19.10, the wifi issue came back and most of the soolutions given here did not work. Downgraded it back to 19.04.

@Naahuel
Copy link

Naahuel commented Jan 13, 2020

Hey @graciano! That's weird! I upgraded with no issues whatsoever. It actually seems to work even better.

However, every now and then (specially if I'm messing around with bluetooth or turning wifi on and off) it happens that I can't turn wifi or bluetooth back on. No matter what I do. The easy fix is what I mentioned before: Just boot up windows... that's it. Reboot on PopOS and it works again. Did that not work for you?

2020-01-13_11-53

@graciano
Copy link

@Naahuel Updated it again and now it works just fine :)

@p043prg
Copy link

p043prg commented Apr 4, 2020

Hello, I use pop os live usb but whenever I install it on my computer (ssd or hdd) it becomes very slow. It doesn't work smooth. why? I have y530.

@mohitpalsingh
Copy link

mohitpalsingh commented Apr 7, 2020

Guys, If anyone can tell me what all battery backups you guys are having on your respective distros,
i have tried a few like pop os 19.10, manjaro, arch, ubuntu 19.10 and recently ubuntu 20.04 lts beta build.
Apparently the battery sucks even after installs tools like tlp and powertop, It doesn't seem to last long.
I need help!

and for notes, everything works superfine in all those distros. The wifi, bluetooth and trackpad, everything smoothly except the battery for some reason

@nickkostov
Copy link

I have troubles only with the touchpad in my 81FV Lenovo Legion Y530-15ICH using Ubuntu 20.04.1 I think its a weird one. It happens only after being locked and suspended. I think it could be due to absence of swap but I did set up.

@Rahul-fix
Copy link

I have an issue with the battery. It sometimes shows two batteries. I have put up the issue on another page.
kfechter/LegionY530Ubuntu#105 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment