Hey everyone I’m having a lot of trouble getting proprietary Nvidia drivers installed on my Lenovo Legion Y540. I read multiple posts by users with similar issues on this forum but none of them solved my issue.
Below I’ve listed some outputs of commands that might help make my problem clearer:
Output of uname -r
-
5.10.42-1-MANJARO
Output of lspci -nnk | grep -iA2 vga
-
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b]
Subsystem: Lenovo Device [17aa:3ffc]
Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] [10de:2191] (rev ff)
Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation TU116 High Definition Audio Controller [10de:1aeb] (rev ff)
Output of mhwd -li
-
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-modesetting 2020.01.13 true PCI
video-linux 2018.05.04 true PCI
Warning: No installed USB configs!
output of inxi -Fxza
-
System: Kernel: 5.10.42-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=c091db96-1567-4227-92d2-923bb84c23e7 rw
nouveau.modeset=0 quiet apparmor=1 security=apparmor udev.log_priority=3
Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux
base: Arch Linux
Machine: Type: Laptop System: LENOVO product: 81SX v: Lenovo Legion Y540-15IRH serial: <filter> Chassis: type: 10
v: Lenovo Legion Y540-15IRH serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: SDK0Q55722 WIN serial: <filter> UEFI: LENOVO v: BHCN29WW date: 06/19/2019
Battery: ID-1: BAT0 charge: 31.3 Wh (56.9%) condition: 55.0/57.0 Wh (96.4%) volts: 11.8 min: 11.5 model: SMP L17M3PG2
type: Li-poly serial: <filter> status: Unknown cycles: 135
CPU: Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake note: check family: 6
model-id: 9E (158) stepping: A (10) microcode: DE cache: L2: 12 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62431
Speed: 1034 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 1034 2: 1176 3: 1012 4: 1054 5: 1027 6: 1235 7: 1175
8: 2084 9: 1129 10: 981 11: 1040 12: 1166
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b
class-ID: 0300
Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] driver: N/A alternate: nouveau, nvidia_drm, nvidia
bus-ID: 01:00.0 chip-ID: 10de:2191 class-ID: 0300
Device-3: Lite-On Integrated Camera type: USB driver: uvcvideo bus-ID: 1-6:3 chip-ID: 04ca:7070 class-ID: 0e02
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: intel display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
Monitor-1: eDP1 res: 1920x1080 hz: 144 dpi: 143 size: 340x190mm (13.4x7.5") diag: 389mm (15.3")
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.1.2 direct render: Yes
Audio: Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel v: kernel
alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
Device-2: NVIDIA TU116 High Definition Audio driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:1aeb
class-ID: 0403
Sound Server-1: ALSA v: k5.10.42-1-MANJARO running: yes
Sound Server-2: JACK v: 0.125.0 running: no
Sound Server-3: PulseAudio v: 14.2 running: yes
Sound Server-4: PipeWire v: 0.3.30 running: no
Network: Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 bus-ID: 00:14.3
chip-ID: 8086:a370 class-ID: 0280
IF: wlp0s20f3 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 3000
bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp7s0 state: up speed: 100 Mbps duplex: full mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb v: 0.8 bus-ID: 1-14:5
chip-ID: 8087:0aaa class-ID: e001
Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Drives: Local Storage: total: 1.14 TiB used: 176.24 GiB (15.1%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFS256GD9TNG-L3A0B size: 238.47 GiB block-size:
physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> rev: 80040C10 temp: 42.9 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPZX-24Z10 size: 931.51 GiB block-size:
physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 1A05 scheme: GPT
Partition: ID-1: / raw-size: 48.83 GiB size: 47.81 GiB (97.92%) used: 41.98 GiB (87.8%) fs: ext4 dev: /dev/nvme0n1p5
maj-min: 259:5
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 29.6 MiB (11.6%) fs: vfat dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 488.76 GiB size: 480.08 GiB (98.23%) used: 134.24 GiB (28.0%) fs: ext4 dev: /dev/sda5
maj-min: 8:5
Swap: Alert: No swap data was found.
Sensors: System Temperatures: cpu: 56.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 321 Uptime: 2h 40m wakeups: 2 Memory: 15.52 GiB used: 3.63 GiB (23.4%) Init: systemd v: 248
tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.0 Packages: 1515 pacman: 1501 lib: 440 flatpak: 5 snap: 9
Shell: Zsh v: 5.8 running-in: alacritty inxi: 3.3.04
Output of sudo mhwd -a pci nonfree 0300
-
> Using config 'video-hybrid-intel-nvidia-prime' for device: 0000:01:00.0 (0300:10de:2191) Display controller nVidia Corporation TU116M [GeForce GTX 1660 Ti Mobile]
> Using config 'video-hybrid-intel-nvidia-prime' for device: 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
> Installing video-hybrid-intel-nvidia-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronizing package databases...
warning: nvidia-utils-465.31-1 is up to date -- skipping
warning: linux510-nvidia-465.31-6 is up to date -- skipping
error: target not found: linux59-nvidia
core is up to date
extra is up to date
community is up to date
multilib is up to date
Error: pacman failed!
Error: script failed!
I get a similar error when I try to install through the GUI available in hardware settings. I have even tried going back to the 5.4 kernel but the same error keeps popping up.
I even tried manually installing from an article called “How to install the NVIDIA drivers on Manjaro 21 Linux” but I had problems with DKMS. I can post that output too if necessary. I would be really grateful for any help, since on Lenovo apparently the hdmi slot is connected to the nvidia card and I can’t connect to my monitor without the driver.