Nvidia on asus laptop

Hi, I’m new here and trying to get the nvidia drivers to work but I only get a black screen.
Here is some info and log.
SecureBoot is disabled.
ROG Zephyrus Duo 16


lspci | grep -i --color 'vga\|3d\|2d'
01:00.0 VGA compatible controller: NVIDIA Corporation GA103M [GeForce RTX 3080 Ti Mobile] (rev a1)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] 

01:00.0 VGA compatible controller: NVIDIA Corporation GA103M [GeForce RTX 3080 Ti Mobile] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 1cc2
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0, IRQ 45, IOMMU group 15
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 7800000000 (64-bit, prefetchable) [size=16G]
	Memory at 7c00000000 (64-bit, prefetchable) [size=32M]
	I/O ports at f000 [size=128]
	Expansion ROM at fc000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Legacy Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel
	Capabilities: [250] Latency Tolerance Reporting
	Capabilities: [258] L1 PM Substates
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [420] Advanced Error Reporting
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Capabilities: [900] Secondary PCI Express
	Capabilities: [bb0] Physical Resizable BAR
	Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
	Capabilities: [d00] Lane Margining at the Receiver <?>
	Capabilities: [e00] Data Link Feature <?>
	Kernel driver in use: nvidia
	Kernel modules: nvidia_drm, nvidia

  

vi /var/log/Xorg.0.log






vi /var/log/Xorg.0.log

[    10.545] (**) ELAN9009:00 04F3:2F32: Applying InputClass "evdev touchscreen catchall"
[    10.545] (**) ELAN9009:00 04F3:2F32: Applying InputClass "libinput touchscreen catchall"
[    10.545] (II) Using input driver 'libinput' for 'ELAN9009:00 04F3:2F32'
[    10.545] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 53 paused 0
[    10.545] (**) ELAN9009:00 04F3:2F32: always reports core events
[    10.545] (**) Option "Device" "/dev/input/event9"
[    10.545] (**) Option "_source" "server/udev"
[    10.546] (II) event9  - ELAN9009:00 04F3:2F32: is tagged by udev as: Touchscreen
[    10.546] (II) event9  - ELAN9009:00 04F3:2F32: device is a touch device
[    10.546] (II) event9  - ELAN9009:00 04F3:2F32: device removed
[    10.546] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:01/i2c-1/i2c-ELAN9009:00/0018:04F3:2F32.0005/input/input28/event9"
[    10.546] (II) XINPUT: Adding extended input device "ELAN9009:00 04F3:2F32" (type: TOUCHSCREEN, id 15)
[    10.546] (**) Option "AccelerationScheme" "none"
[    10.546] (**) ELAN9009:00 04F3:2F32: (accel) selected scheme none/0
[    10.546] (**) ELAN9009:00 04F3:2F32: (accel) acceleration factor: 2.000
[    10.546] (**) ELAN9009:00 04F3:2F32: (accel) acceleration threshold: 4
[    10.547] (II) event9  - ELAN9009:00 04F3:2F32: is tagged by udev as: Touchscreen
[    10.547] (II) event9  - ELAN9009:00 04F3:2F32: device is a touch device
[    10.547] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 (/dev/input/mouse1)
[    10.547] (II) No input driver specified, ignoring this device.
[    10.547] (II) This device may have been added with another device file.
[    10.547] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 UNKNOWN (/dev/input/event11)
[    10.547] (II) No input driver specified, ignoring this device.
[    10.547] (II) This device may have been added with another device file.
[    10.547] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 UNKNOWN (/dev/input/event13)
[    10.548] (II) No input driver specified, ignoring this device.
[    10.548] (II) This device may have been added with another device file.
[    10.548] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 Stylus (/dev/input/event14)
[    10.548] (**) ELAN9009:00 04F3:2F32 Stylus: Applying InputClass "evdev tablet catchall"
[    10.548] (**) ELAN9009:00 04F3:2F32 Stylus: Applying InputClass "libinput tablet catchall"
[    10.548] (II) Using input driver 'libinput' for 'ELAN9009:00 04F3:2F32 Stylus'
[    10.548] (II) systemd-logind: got fd for /dev/input/event14 13:78 fd 54 paused 0
[    10.548] (**) ELAN9009:00 04F3:2F32 Stylus: always reports core events
[    10.548] (**) Option "Device" "/dev/input/event14"
[    10.548] (**) Option "_source" "server/udev"
[    10.549] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: is tagged by udev as: Tablet
[    10.573] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: tablet 'ELAN9009:00 04F3:2F32 Stylus' unknown to libwacom
[    10.573] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: device is a tablet
[    10.573] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: device removed
[    10.573] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:01/i2c-1/i2c-ELAN9009:00/0018:04F3:2F32.0005/input/input31/event14"
[    10.573] (II) XINPUT: Adding extended input device "ELAN9009:00 04F3:2F32 Stylus" (type: TABLET, id 16)
[    10.574] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: is tagged by udev as: Tablet
[    10.574] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: tablet 'ELAN9009:00 04F3:2F32 Stylus' unknown to libwacom
[    10.574] (II) event14 - ELAN9009:00 04F3:2F32 Stylus: device is a tablet
[    10.574] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 Stylus (/dev/input/mouse3)
[    10.574] (II) No input driver specified, ignoring this device.
[    10.574] (II) This device may have been added with another device file.
[    10.574] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 Touchpad (/dev/input/event15)
[    10.574] (**) ELAN9009:00 04F3:2F32 Touchpad: Applying InputClass "evdev touchpad catchall"
[    10.574] (**) ELAN9009:00 04F3:2F32 Touchpad: Applying InputClass "libinput touchpad catchall"
[    10.574] (II) Using input driver 'libinput' for 'ELAN9009:00 04F3:2F32 Touchpad'
[    10.575] (II) systemd-logind: got fd for /dev/input/event15 13:79 fd 56 paused 0
[    10.575] (**) ELAN9009:00 04F3:2F32 Touchpad: always reports core events
[    10.575] (**) Option "Device" "/dev/input/event15"
[    10.575] (**) Option "_source" "server/udev"
[    10.575] (II) event15 - ELAN9009:00 04F3:2F32 Touchpad: is tagged by udev as: Touchpad
[    10.576] (II) event15 - ELAN9009:00 04F3:2F32 Touchpad: device is a touchpad
[    10.576] (II) event15 - ELAN9009:00 04F3:2F32 Touchpad: device removed
[    10.576] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:01/i2c-1/i2c-ELAN9009:00/0018:04F3:2F32.0005/input/input34/event15"
[    10.576] (II) XINPUT: Adding extended input device "ELAN9009:00 04F3:2F32 Touchpad" (type: TOUCHPAD, id 17)
[    10.576] (**) Option "AccelerationScheme" "none"
[    10.576] (**) ELAN9009:00 04F3:2F32 Touchpad: (accel) selected scheme none/0
[    10.576] (**) ELAN9009:00 04F3:2F32 Touchpad: (accel) acceleration factor: 2.000
[    10.576] (**) ELAN9009:00 04F3:2F32 Touchpad: (accel) acceleration threshold: 4

[    10.577] (II) event15 - ELAN9009:00 04F3:2F32 Touchpad: is tagged by udev as: Touchpad
[    10.577] (II) event15 - ELAN9009:00 04F3:2F32 Touchpad: device is a touchpad
[    10.577] (II) config/udev: Adding input device ELAN9009:00 04F3:2F32 Touchpad (/dev/input/mouse4)
[    10.577] (II) No input driver specified, ignoring this device.
[    10.577] (II) This device may have been added with another device file.
[    10.578] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
[    10.578] (II) No input driver specified, ignoring this device.
[    10.578] (II) This device may have been added with another device file.
[    10.580] (**) Asus Keyboard: Applying InputClass "evdev keyboard catchall"
[    10.580] (**) Asus Keyboard: Applying InputClass "libinput keyboard catchall"
[    10.580] (**) Asus Keyboard: Applying InputClass "system-keyboard"
[    10.580] (**) Asus Keyboard: Applying InputClass "Keyboard0"
[    10.580] (II) Using input driver 'libinput' for 'Asus Keyboard'
[    10.580] (II) systemd-logind: returning pre-existing fd for /dev/input/event3 13:67
[    10.580] (**) Asus Keyboard: always reports core events
[    10.580] (**) Option "Device" "/dev/input/event3"
[    10.580] (**) Option "_source" "_driver/libinput"
[    10.580] (II) libinput: Asus Keyboard: is a virtual subdevice
[    10.580] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:07:00.3/usb1/1-3/1-3:1.0/0003:0B05:19B6.0001/input/input9/event3"
[    10.580] (II) XINPUT: Adding extended input device "Asus Keyboard" (type: KEYBOARD, id 18)
[    10.580] (**) Option "xkb_model" "pc105"
[    10.580] (**) Option "xkb_layout" "us"
[    10.580] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    10.908] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.908] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    10.908] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[    10.908] (--) NVIDIA(GPU-0):
[    10.908] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    10.908] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    10.908] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    10.908] (--) NVIDIA(GPU-0):
[    10.908] (--) NVIDIA(GPU-0): DFP-2: disconnected
[    10.908] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[    10.908] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[    10.908] (--) NVIDIA(GPU-0):
[    10.908] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    10.908] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[    10.908] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[    10.908] (--) NVIDIA(GPU-0):
[    10.908] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    10.909] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[    10.909] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[    10.909] (--) NVIDIA(GPU-0):
[    10.958] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.958] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    10.958] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[    10.958] (--) NVIDIA(GPU-0):
[    10.958] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    10.958] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    10.958] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    10.958] (--) NVIDIA(GPU-0):
[    10.958] (--) NVIDIA(GPU-0): DFP-2: disconnected
[    10.958] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[    10.958] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[    10.958] (--) NVIDIA(GPU-0):
[    10.958] (--) NVIDIA(GPU-0): DFP-3: disconnected
[    10.958] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[    10.958] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[    10.958] (--) NVIDIA(GPU-0):
[    10.958] (--) NVIDIA(GPU-0): DFP-4: disconnected
[    10.958] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[    10.958] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[    10.958] (--) NVIDIA(GPU-0):

xorg conf

type or paste code here# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 545.23.08

#
#
# 
#
#    
#


Section "ServerLayout"
    Identifier     "XFree86 Configured"
    Screen      0  "Screen Default 0" 0 0
    Screen      1  "Screen Dummy Dual GPU Screen" Relative "Screen Default 0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    FontPath        "unix/:7100"
EndSection

Section "Module"
    Load           "glx"        # OpenGL X protocol interface
    Load           "extmod"     # Misc. required extensions
EndSection

Section "ServerFlags"
    Option         "VTSysReq" "on"
    Option         "DontVTSwitch" "on"
    Option         "DontZoom" "on"
    Option         "AutoAddDevices" "True"
    Option         "AutoAddGPU" "false"
EndSection

Section "InputDevice"

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

Section "InputDevice"

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

Section "InputClass"
    Identifier         "Keyboard0"
    MatchIsKeyboard    "on"
    Option         "XkbModel" "pc105"
    Option         "XkbCompat" "basic+misc"
    Option         "XkbLayout" "us"
    Option         "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Section "InputClass"

#    Option      "ScreenNo" "0"
#    Option      "TwinView" "horizontal"
    Identifier         "ERASER"
    MatchDriver        "wacom"
    Option         "Mode" "Absolute"
#    Option      "Rotate" "HALF"
EndSection

Section "InputClass"

#    Option        "Mode" "Absolute"
#    Option      "Rotate" "HALF"
#    Option      "ScreenNo" "0"
#    Option      "TwinView" "horizontal"
    Identifier         "cursor"
    MatchDriver        "wacom"
EndSection

Section "InputClass"

#    Option      "ScreenNo" "0"
#    Option      "TwinView" "horizontal"
    Identifier         "pad"
    MatchDriver        "wacom"
    Option         "Mode" "Absolute"
#    Option      "Rotate" "HALF"
EndSection

Section "InputClass"

#    Option      "Rotate" "HALF"
#    Option      "ScreenNo" "0"
#    Option      "TwinView" "horizontal"
    Identifier         "touch"
    MatchDriver        "wacom"
    Option         "Touch" "off"
EndSection

Section "Monitor"
    Identifier     "Generic EDID"
    VendorName     "---"
    ModelName      "NVIDIA Generic EDID"
EndSection

Section "Monitor"
    Identifier     "Generic 1920x1200 EDID"
    VendorName     "---"
    ModelName      "NVIDIA Generic 1920x1200 EDID"
       HorizSync       30.0 - 95.0
    VertRefresh     50.0 - 180.0
EndSection

Section "Monitor"
    Identifier     "Generic Monitor"
EndSection

Section "Device"
    Identifier     "Dual GPU"
    Driver         "nvidia"
    BoardName      "Unknown"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"

#    Option      "ExactModeTimingsDVI" "True"
#    Option      "TwinView" "true"
#    Option      "UseDisplayDevice" "DFP-X"
#    Option      "IncludeImplicitMetaModes" "False"
#    Option      "nvidiaXineramaInfoOrder" "DFP-X"
#    Option      "MetaModes" "DFP-X: X1RESxY1RES +X1OFFSET+0,  DFP-Y: X2RESxY2RES +X2OFFSET+0"
    Identifier     "NVIDIA Generic"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Screen Dummy Dual GPU Screen"
    Device         "Dual GPU"
    Monitor        "Generic 1920x1200 EDID"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    Option         "Interactive" "False"
    Option         "HardDPMS" "False"
    SubSection     "Display"
        Virtual     1920 1200
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen Default 0"
    Device         "NVIDIA Generic"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    Option         "Overlay" "on"
    Option         "HardDPMS" "False"
    Option         "Interactive" "False"
#    Option      "ModeValidation" "NoEdidMaxPClkCheck, NoHorizSyncCheck, NoVertRefreshCheck"
    Option         "BusID" "PCI:::"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection




And here is the grub

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="selinux=0 crashkernel=auto resume=/dev/mapper/rl_vxfhost-swap rd.lvm.lv=rl_vxfhost/root rd.lvm.lv=rl_vxfhost/swap nouveau.modeset=0 rd.driver.blacklist=nouveau plymouth.ignore-udev nvidia-drm.modeset=1"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

Tried different install guides and the latest was.
https://forums.rockylinux.org/t/tutorial-for-nvidia-gpu/4234

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