Can not use nvidia to render the laptop screen in my asus rog zephyrus m16 Laptop.(2022)

Hi everyone,
I have a asus laptap with Ubuntu20.04 and the kernel is 5.13.0-30. And when I try to install Nvidia-driver-470 or Nvidia-driver-510 on my laptop(RTX 3060), And nvidia-smi is OK. Actually I turn off the nouveau before I install the driver, and I have tried 3 ways to install but still failed.
Installing via “Additional Drivers” at the Software & Updates app
Installing manually with apt get
Installing with the .run package downloaded from nvidia webite.
Edit: I disabled Secure Boot and Fast Boot and am running 0nly ubuntu system.
and here is nvidia-bug-report.log.gz
nvidia-bug-report.log.gz (408.2 KB)

The problem is nvidia-smi is OK, The About info shows “Graphics NVIDIA COrporation”, here is some info about my laptop.


uname -a

Linux m-pc 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

lsmod | grep nouveau shows nothing. and lsmod | grep nvidia shows

nvidia_uvm           1036288  0
nvidia_drm             61440  4
nvidia_modeset       1200128  5 nvidia_drm
nvidia              35319808  159 nvidia_uvm,nvidia_modeset
drm_kms_helper        253952  2 nvidia_drm,i915
drm                   557056  9 drm_kms_helper,nvidia,nvidia_drm,i915

nvidia-smi shows:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01   Driver Version: 470.103.01   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   41C    P3    16W /  N/A |     10MiB /  5946MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1011      G   /usr/lib/xorg/Xorg                  4MiB |
|    0   N/A  N/A      1638      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

inix -G --display

Graphics:
  Device-1: Intel driver: N/A 
  Device-2: NVIDIA driver: nvidia v: 470.103.01 
  Display: server: X.org 1.20.13 driver: fbdev,nvidia 
  unloaded: modesetting,nouveau,vesa tty: 80x24 
  Message: No advanced graphics data found on this system.

dmesg | grep -E ‘nvidia|i915’

[    4.476704] nvidia: loading out-of-tree module taints kernel.
[    4.476712] nvidia: module license 'NVIDIA' taints kernel.
[    4.487711] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    4.495749] nvidia-nvlink: Nvlink Core is being initialized, major device number 507
[    4.502670] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    4.502851] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    4.577013] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  470.103.01  Thu Jan  6 12:12:52 UTC 2022
[    4.587510] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    4.587517] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[    4.602846] audit: type=1400 audit(1650971937.880:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=724 comm="apparmor_parser"
[    4.602857] audit: type=1400 audit(1650971937.880:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=724 comm="apparmor_parser"
[    4.684758] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[    4.686081] nvidia-uvm: Loaded the UVM driver, major device number 505.

sudo lshw -C display

 *-display                 
       description: VGA compatible controller
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:620-61f irq:191 memory:83000000-83ffffff memory:6000000000-61ffffffff memory:6200000000-6201ffffff ioport:4000(size=128) memory:84000000-8407ffff
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: iomemory:620-61f iomemory:400-3ff memory:622c000000-622cffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff

lspci -k

00:00.0 Host bridge: Intel Corporation Device 4641 (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
00:01.0 PCI bridge: Intel Corporation Device 460d (rev 02)
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation Device 46a6 (rev 0c)
	DeviceName: Second VGA
	Subsystem: ASUSTeK Computer Inc. Device 1a7c
00:04.0 Signal processing controller: Intel Corporation Device 461d (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:06.0 PCI bridge: Intel Corporation Device 464d (rev 02)
	Kernel driver in use: pcieport
00:06.2 PCI bridge: Intel Corporation Device 463d (rev 02)
	Kernel driver in use: pcieport
00:07.0 PCI bridge: Intel Corporation Device 466e (rev 02)
	Kernel driver in use: pcieport
00:08.0 System peripheral: Intel Corporation Device 464f (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
00:0a.0 Signal processing controller: Intel Corporation Device 467d (rev 01)
	Kernel driver in use: intel-pmt
	Kernel modules: intel_pmt
00:0d.0 USB controller: Intel Corporation Device 461e (rev 02)
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:0d.2 USB controller: Intel Corporation Device 463e (rev 02)
	Subsystem: Device 2222:1111
	Kernel driver in use: thunderbolt
	Kernel modules: thunderbolt
00:14.0 USB controller: Intel Corporation Device 51ed (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Device 51ef (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
00:14.3 Network controller: Intel Corporation Device 51f0 (rev 01)
	DeviceName: WLAN
	Subsystem: Intel Corporation Device 0094
	Kernel modules: iwlwifi
00:15.0 Serial bus controller [0c80]: Intel Corporation Device 51e8 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:15.1 Serial bus controller [0c80]: Intel Corporation Device 51e9 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Device 51e0 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1c.0 PCI bridge: Intel Corporation Device 51bc (rev 01)
	Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation Device 51be (rev 01)
	Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Device 5182 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
00:1f.3 Audio device: Intel Corporation Device 51c8 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl
00:1f.4 SMBus: Intel Corporation Device 51a3 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 51a4 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 1c62
01:00.0 VGA compatible controller: NVIDIA Corporation Device 2520 (rev a1)
	DeviceName: VGA
	Subsystem: ASUSTeK Computer Inc. Device 1a7c
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 1a7c
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
	Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
	Kernel driver in use: nvme
	Kernel modules: nvme
03:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5407
	Subsystem: Micron Technology Inc Device 0100
	Kernel driver in use: nvme
	Kernel modules: nvme
2e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
	DeviceName: GLAN
	Subsystem: ASUSTeK Computer Inc. RTL8125 2.5GbE Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
2f:00.0 SD Host controller: Genesys Logic, Inc Device 9755 (rev 01)
	Subsystem: ASUSTeK Computer Inc. Device 202f
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci

lspci

00:00.0 Host bridge: Intel Corporation Device 4641 (rev 02)
00:01.0 PCI bridge: Intel Corporation Device 460d (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 46a6 (rev 0c)
00:04.0 Signal processing controller: Intel Corporation Device 461d (rev 02)
00:06.0 PCI bridge: Intel Corporation Device 464d (rev 02)
00:06.2 PCI bridge: Intel Corporation Device 463d (rev 02)
00:07.0 PCI bridge: Intel Corporation Device 466e (rev 02)
00:08.0 System peripheral: Intel Corporation Device 464f (rev 02)
00:0a.0 Signal processing controller: Intel Corporation Device 467d (rev 01)
00:0d.0 USB controller: Intel Corporation Device 461e (rev 02)
00:0d.2 USB controller: Intel Corporation Device 463e (rev 02)
00:14.0 USB controller: Intel Corporation Device 51ed (rev 01)
00:14.2 RAM memory: Intel Corporation Device 51ef (rev 01)
00:14.3 Network controller: Intel Corporation Device 51f0 (rev 01)
00:15.0 Serial bus controller [0c80]: Intel Corporation Device 51e8 (rev 01)
00:15.1 Serial bus controller [0c80]: Intel Corporation Device 51e9 (rev 01)
00:16.0 Communication controller: Intel Corporation Device 51e0 (rev 01)
00:1c.0 PCI bridge: Intel Corporation Device 51bc (rev 01)
00:1c.6 PCI bridge: Intel Corporation Device 51be (rev 01)
00:1f.0 ISA bridge: Intel Corporation Device 5182 (rev 01)
00:1f.3 Audio device: Intel Corporation Device 51c8 (rev 01)
00:1f.4 SMBus: Intel Corporation Device 51a3 (rev 01)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Device 51a4 (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 2520 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5407
2e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
2f:00.0 SD Host controller: Genesys Logic, Inc Device 9755 (rev 01)

Selection_003

apt list --installed | grep -P ‘nvidia|cuda’

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libnvidia-cfg1-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-common-470/focal-updates,focal-updates,focal-security,focal-security,now 470.103.01-0ubuntu0.20.04.1 all [installed,automatic]
libnvidia-compute-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-compute-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-decode-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-decode-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-encode-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-encode-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-extra-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-fbc1-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-fbc1-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-gl-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-gl-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 i386 [installed,automatic]
libnvidia-ifr1-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
libnvidia-ifr1-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 i386 [installed,automatic]
nvidia-compute-utils-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-dkms-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-driver-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed]
nvidia-kernel-common-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-kernel-source-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
nvidia-prime/focal-updates,focal-updates,now 0.8.16~0.20.04.2 all [installed,automatic]
nvidia-settings/focal-updates,now 470.57.01-0ubuntu0.20.04.3 amd64 [installed,automatic]
nvidia-utils-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]
xserver-xorg-video-nvidia-470/focal-updates,focal-security,now 470.103.01-0ubuntu0.20.04.1 amd64 [installed,automatic]

I also tried ***.run files to install the nvidia driver and generate the xorg.conf inf /etc/X11/ and when I reboot the laptop, the laptop is black screen, but if I connect a monitor via HDMI, the monitor works fine.

This has been bothering me all day. Can someone help me? Thanks a lot!

https://forums.developer.nvidia.com/t/cant-run-drivers-for-rtx-3060-laptop-ubuntu-20-04/212573/3?u=generix

1 Like

Thanks, so I need to update the kernel follow this post and then install a new linux firmware. should I uninstall the nvidia driver first? I will try tomorrow

No need to uninstall the nvidia driver.

Hi, I follow you suggestion but I think my laptop still using intel GPU but not NVIDIA. and I want to use nvidia as the render. Here is my info:

I did not uninstall nvidia driver and install the liquorix and install the linux firmware via dpkg -i *.deb.

Hi, Finally I solved it by

sudo prime-select nvidia

and here is the info. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.