Driver Nvidia 390 can't be installed with Geforce 820m

Guys i am trying to install my grafic card but without sucess. someone can help me?
I download from the nvidia site and use the command sudo LANG=C ./NVIDIA-Linux-x86_64-390.157.run and get this message:
Error: yYou appear to be runing a X server

yay -Q | grep nvidia                       
lib32-nvidia-utils 530.41.03-1
linux515-nvidia 530.41.03-6
linux61-nvidia 530.41.03-6
mhwd-nvidia 530.41.03-4
mhwd-nvidia-390xx 390.157-6
mhwd-nvidia-470xx 470.182.03-2
nvidia-prime 1.0-4
nvidia-utils 530.41.03-4
mhwd -li 
> Installed PCI configs:
  
 NAME               VERSION          FREEDRIVER           TYPE
 video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI
Warning: No installed USB configs!
nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Sorry this is my first post. my fault.

System:
  Kernel: 5.15.109-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=fb5d854c-4996-4f1e-8c32-36ecc63d5acf rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: GNOME v: 43.5 tk: GTK v: 3.24.37 wm: gnome-shell dm: GDM v: 43.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Portable System: Dell product: Inspiron 3442 v: N/A
    serial: <superuser required> Chassis: type: 8 serial: <superuser required>
  Mobo: Dell model: 0C1F3F v: A06 serial: <superuser required> UEFI: Dell
    v: A06 date: 01/12/2015
Memory:
  System RAM: available: 7.67 GiB used: 2.72 GiB (35.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell
    gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
    family: 6 model-id: 0x45 (69) stepping: 1 microcode: 0x26
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 798 min/max: 800/2700 scaling: driver: intel_cpufreq
    governor: schedutil cores: 1: 798 2: 798 3: 798 4: 798 bogomips: 13573
  Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2
    bts clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht ibpb ibrs ida invpcid invpcid_single lahf_lm lm mca mce
    md_clear mmx monitor movbe msr mtrr nonstop_tsc nopl nx pae pat pbe pcid
    pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand
    rdtscp rep_good sdbg sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid xsave xsaveopt xtopology xtpr
  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: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: i915
    v: kernel arch: Gen-7.5 process: Intel 22nm built: 2013 ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:0a16 class-ID: 0300
  Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT
    620M/625M/630M/720M] vendor: Dell driver: N/A alternate: nouveau,
    nvidia_drm, nvidia non-free: series: 390.xx+ status: legacy-active
    (EOL~late 2022) arch: Fermi code: GF1xx process: 40/28nm built: 2010-16
    pcie: gen: 1 speed: 2.5 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 08:00.0
    chip-ID: 10de:1140 class-ID: 0302
  Device-3: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.5:4 chip-ID: 0bda:5756
    class-ID: 0e02 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell driver: gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: LG Display 0x0458 built: 2014 res: 1366x768
    dpi: 112 gamma: 1.2 size: 310x174mm (12.2x6.85") diag: 355mm (14")
    ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel HD Graphics 4400 (HSW
    GT2) direct-render: Yes
Audio:
  Device-1: Intel Haswell-ULT HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:03.0 chip-ID: 8086:0a0c class-ID: 0403
  Device-2: Intel 8 Series HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403
  API: ALSA v: k5.15.109-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
    vendor: Dell driver: ath9k v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    bus-ID: 06:00.0 chip-ID: 168c:0036 class-ID: 0280
  IF: wlp6s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000
    bus-ID: 07:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: enp7s0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros AR9462 Bluetooth driver: btusb v: 0.8 type: USB
    rev: 1.1 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-1.6:7 chip-ID: 0cf3:0036
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.02 TiB used: 13.52 GiB (1.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37120G
    size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 0102 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: ST1000LM024 HN-M101MBB
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: 0003 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 111.49 GiB size: 109.18 GiB (97.93%)
    used: 13.52 GiB (12.4%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: fb5d854c-4996-4f1e-8c32-36ecc63d5acf
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: E2E1-8C2A
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: ext4 label: Arquivos
    uuid: af8ff418-639c-498d-8bb7-caf48f9b2913
USB:
  Hub-1: 1-0:1 info: full speed or root hub ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 8087:8000
    class-ID: 0900
  Device-1: 1-1.3:3 info: 2.4G RF Keyboard & Mouse type: keyboard,mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 276d:2068 class-ID: 0301
  Device-2: 1-1.5:4 info: Realtek Integrated_Webcam_HD type: video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
    mode: 2.0 power: 500mA chip-ID: 0bda:5756 class-ID: 0e02 serial: <filter>
  Device-3: 1-1.6:7 info: Qualcomm Atheros AR9462 Bluetooth type: bluetooth
    driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 100mA chip-ID: 0cf3:0036 class-ID: e001
  Device-4: 1-1.8:6 info: Realtek RTS5129 Card Reader Controller
    type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc
    interfaces: 1 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 0bda:0129 class-ID: ff00 serial: <filter>
  Hub-3: 2-0:1 info: hi-speed hub with single TT ports: 9 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 3-0:1 info: super-speed hub ports: 4 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 54.0 C mobo: 53.0 C
  Fan Speeds (RPM): cpu: 2610
Info:
  Processes: 227 Uptime: 41m wakeups: 1 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1221 libs: 307 tools: gnome-software,pamac,yay pm: flatpak pkgs: 0
  Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.27

Welcome to the forum! :wave:

There’s your first problem. Uninstall it and install the drivers the right way. See Configure NVIDIA (non-free) settings and load them on Startup - Manjaro

Please post your full system info as outlined here:

Please also see:

Once you are back to a reasonable state, as yochanon suggests above … this driver profile seems to have been installed and what you want.

On top of that … it has me interepereting its presence as verifying your card can use the latest drivers … I dont know why you would want 390 instead (nvidia is up to the 500s now).

Its possible that selection was in error … but still there are multiple driver series available and you likely want whatever latest version works for your hardware.

You may wish to install or reinstall your desired profile via mhwd after removing the website software.
(see the link above)

To finish up … let me illustrate how to use PRIME.
The following is a test, with the first command expecting Intel and the second nvidia;

glxinfo | grep 'renderer string'
prime-run glxinfo | grep 'renderer string'

i want the 390, because my graffic card is the notebook geforce 820m and i try to search a solution, and everybody told me that the latest driver for this gc is 390 and needs a kernel 515

I see nvidia offering the 430 on its site.
I dont know what other articles or things you refer to.
Whatever the case … mhwd also offers the 390.
Though it would have to use the older/deprecated/crappier bumblebee for gfx switching…

video-hybrid-intel-nvidia-390xx-bumblebee

i will try the

video-hybrid-intel-nvidia-390xx-bumblebee

i make a instalation with sudo mhwd -a pci nonfree 0300 and after its finished, i run the:

prime-run glxinfo | grep 'renderer string'
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

dont know what to do

In that case you are not using PRIME.
The mentioned command with bumblebee becomes:

primusrun glxinfo | grep 'renderer string'

(note: you can also use optirun … if memory serves though primusrun was newer/preferred)

https://wiki.archlinux.org/title/Bumblebee

I install the pci nonfree 0300 and after it i use the command:

prime-run glxinfo | grep 'renderer string'

my problem is, the instalation is ok, no error, but i cant see the nvidia drivers or configure it, and the notebook doesnt looks like using the graffic card

So now you are using PRIME profile ?
And normally glxinfo returns “Intel”, and using prime-run it returns “Nvidia”, right?

Thats how PRIME is supposed to work … you are using the integrated gpu (weaker intel) by default … and call the dedicated gpu (more powerful nvidia) when you want it.

For example, in the case of steam - edit game launch options to be

prime-run %command%

And now your steam games will run on the nvidia.

If you dont like this and want to use nvidia all the time … then maybe check your BIOS for options to disable the iGPU.

More info is at the wiki.

Not Working,
Now i have this scenario:

mhwd -li                                                     1|1 ✘ 
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2023.03.23               false            PCI


Warning: No installed USB configs!

glxinfo show correct,

glxinfo | grep 'renderer string'
OpenGL renderer string: Mesa Intel(R) HD Graphics 4400 (HSW GT2)

Prime dont show

prime-run glxinfo | grep 'renderer string'  
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

inxi -G                                                                                                                                
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel
  Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT
    620M/625M/630M/720M] driver: N/A
  Device-3: Realtek Integrated_Webcam_HD driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell v: 43.5 driver: gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel HD Graphics 4400 (HSW
    GT2)

try to install the 430 driver and have this message

Just like above … You are still using the bumblebee proile … it does not have prime-run.

And it looks like you were right in the first case to think it should be 390.

but witch one 390 i use? i cant install from nvidia site

Good. You shouldnt.

The one you already have.

According to your mhwd output

mhwd -li

You have

Thats it. Youre done.
Test it if you want. NOT WITH PRIME, but with BUMBLEBEE primusrun or optirun
Ex:

glxinfo | grep 'renderer string'
primusrun glxinfo | grep 'renderer string'

guy, hi !
I had the same problem as you. Are you solving this problem now?
Or maybe they’ve abandoned Manjaro for another OS ?

If it is ‘the same problem’ then the answer is simple;
You do not have prime-run. You have primusrun. Use that.
(Or if you mean the earlier ‘problem’ then - dont try to install some random nvidia stuff. use mhwd. you may already have the correct driver profile installed.)

I guess what the writer meant was how to switch to an nvidia graphics card for screen rendering, and that’s what I meant also.


This is my machine information:

~#  lspci|grep -E '(VGA|NVIDIA)'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
04:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)

~#  uname -a
Linux manjaro 6.9.0-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon May 13 07:01:28 UTC 2024 x86_64 GNU/Linux

=================================================================
Option 1: Install video-hybrid-intel-nvidia-390xx-bumblebee driver

~# sudo mhwd -li --pci
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-390xx-bumblebee            2023.03.23               false            PCI
   network-broadcom-wl            2018.10.07               false            PCI
     video-modesetting            2020.01.13                true            PCI

~# primusrun glxinfo | grep 'renderer string' 
OpenGL renderer string: GF117/PCIe/SSE2

~# optirun glxinfo | grep 'renderer string'
OpenGL renderer string: GF117/PCIe/SSE2     
                                                                                          
~# glxinfo | grep 'renderer string' 
OpenGL renderer string: Mesa Intel(R) HD Graphics 4400 (HSW GT2)

Now I don’t want to use integrated intel graphics card driver, I want to use nvidia graphics card driver, how should I configure?

Is this the only way to use nvidia card driver?

optirun  my-applicaion
#or
primusrun  my-applicaion

I just want to solidify into a system’s configuration file, automatically use nvidia graphics cards when the system boots, or have some way to freely switch between integrated intel card or separate nvidia graphics card drivers.

=======================================================================

Option 2: Install video-nvidia-390xx driver

 ~# sudo mhwd -li --pci
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-390xx            2023.03.23               false            PCI
   network-broadcom-wl            2018.10.07               false            PCI
     video-modesetting            2020.01.13                true            PCI

I tried to install this driver, but I had to remove the automatically generated Xorg configuration file /etc/X11/xorg.conf.d/90-mhwd.conf. You can light up the screen and enter the desktop environment only after you restart the system. The nvidia-settings program can then open normally and perform custom configurations.

From the information on the forum, you can configure the graphics card using nvidia-settings, indicating that the driver has been installed correctly.

So there’s something wrong with the profile I deleted?

I deleted the contents of the file /etc/X11/xorg.conf.d/90-mhwd.conf are as follows:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.157  (dvs-builder@U64-E08-27-1)  Wed Oct 12 09:14:08 UTC 2022

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
        Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 
Section "ServerFlags"
  Option "IgnoreABI" "1"
EndSection

Then reboot the system, execute the following command:

~# lspci -vnn
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device [1043:16cd]
        Flags: bus master, fast devsel, latency 0, IRQ 46
        Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915
04:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
        Subsystem: ASUSTeK Computer Inc. GeForce 820M [1043:16cd]
        Flags: bus master, fast devsel, latency 0, IRQ 51
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at d000 [size=128]
        Expansion ROM at f7000000 [virtual] [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

~# lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Haswell-ULT Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 0b
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1366,768
       resources: irq:46 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff
  *-display
       description: 3D controller
       product: GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:51 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:d000(size=128) memory:f7000000-f707ffff


~# lsmod|grep -i nvidia
nvidia_drm             65536  2
nvidia_modeset       1339392  16 nvidia_drm
nvidia_uvm           2048000  0
nvidia              19795968  971 nvidia_uvm,nvidia_modeset
ipmi_msghandler        94208  2 ipmi_devintf,nvidia
video                  77824  4 nvidia,asus_wmi,asus_nb_wmi,i915

~# sudo dmesg | grep -i nvidia
[    6.258113] nvidia: loading out-of-tree module taints kernel.
[    6.258125] nvidia: module license 'NVIDIA' taints kernel.
[    6.258132] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    6.258134] nvidia: module license taints kernel.
[    6.735709] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[    6.736365] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.157  Wed Oct 12 09:19:07 UTC 2022 (using threaded interrupts)
[    6.948243] Modules linked in: wl(POE+) snd_intel_sdw_acpi processor_thermal_device cryptd snd_hda_codec iTCO_wdt processor_thermal_wt_hint asus_nb_wmi(+) joydev intel_pmc_bxt asus_wmi spi_intel_platform snd_hda_core processor_thermal_rfim rapl mei_pxp intel_rapl_msr mousedev mei_hdcp at24 iTCO_vendor_support spi_intel snd_hwdep processor_thermal_rapl cfg80211 ledtrig_netdev intel_cstate platform_profile nvidia(POE) r8169 intel_rapl_common sparse_keymap snd_pcm realtek intel_uncore pcspkr processor_thermal_wt_req snd_timer mdio_devres i2c_i801 processor_thermal_power_floor psmouse intel_pch_thermal mei_me processor_thermal_mbox i2c_smbus libphy snd mei rfkill lpc_ich soundcore vfat intel_soc_dts_iosf fat int3402_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel asus_wireless mac_hid ipmi_devintf ipmi_msghandler i2c_dev crypto_user dm_mod loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 usbhid i915 i2c_algo_bit serio_raw drm_buddy atkbd libps2 ttm vivaldi_fmap intel_gtt mxm_wmi
[    7.495034] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 236
[    7.511079] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.157  Wed Oct 12 09:15:25 UTC 2022
[    7.562508] [drm] [nvidia-drm] [GPU ID 0x00000400] Loading driver
[    7.562512] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:04:00.0 on minor 0

The X11 log file /var/log/Xorg.0.log:

[   305.555] (--) Log file renamed from "/var/log/Xorg.pid-1115.log" to "/var/log/Xorg.0.log"
[   305.555] 
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[   305.555] Current Operating System: Linux manjaro 6.9.0-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon May 13 07:01:28 UTC 2024 x86_64
[   305.555] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.9-x86_64 root=UUID=492787a7-5271-467e-a04e-ba25b758880d rw quiet splash resume=UUID=6d4a2193-4475-430e-942b-f802a9506ea0 udev.log_priority=3
[   305.555]  
[   305.555] Current version of pixman: 0.43.4
[   305.555]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   305.555] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   305.555] (==) Log file: "/var/log/Xorg.0.log", Time: Mon May 20 17:26:07 2024
[   305.555] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   305.555] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   305.555] (==) No Layout section.  Using the first Screen section.
[   305.555] (==) No screen section available. Using defaults.
[   305.555] (**) |-->Screen "Default Screen Section" (0)
[   305.555] (**) |   |-->Monitor "<default monitor>"
[   305.556] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   305.556] (**) Allowing byte-swapped clients
[   305.556] (==) Automatically adding devices
[   305.556] (==) Automatically enabling devices
[   305.556] (==) Automatically adding GPU devices
[   305.556] (==) Automatically binding GPU devices
[   305.556] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   305.556] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   305.556]    Entry deleted from font path.
[   305.556] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   305.556]    Entry deleted from font path.
[   305.556] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   305.556]    Entry deleted from font path.
[   305.556] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   305.556]    Entry deleted from font path.
[   305.556] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF
[   305.556] (==) ModulePath set to "/usr/lib/xorg/modules"
[   305.556] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   305.556] (II) Module ABI versions:
[   305.556]    X.Org ANSI C Emulation: 0.4
[   305.556]    X.Org Video Driver: 25.2
[   305.556]    X.Org XInput driver : 24.4
[   305.556]    X.Org Server Extension : 10.0
[   305.556] (++) using VT number 2

[   305.556] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   305.557] (II) xfree86: Adding drm device (/dev/dri/card1)
[   305.557] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card1
[   305.566] (II) xfree86: Adding drm device (/dev/dri/card0)
[   305.566] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/drm/card0
[   305.567] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[   305.567] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[   305.568] (--) PCI: (0@0:2:0) 8086:0a16:1043:16cd rev 11, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[   305.568] (--) PCI:*(4@0:0:0) 10de:1140:1043:16cd rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
[   305.568] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   305.568] (II) LoadModule: "glx"
[   305.568] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[   305.572] (II) Module glx: vendor="NVIDIA Corporation"
[   305.572]    compiled for 4.0.2, module version = 1.0.0
[   305.572]    Module class: X.Org Server Extension
[   305.572] (II) NVIDIA GLX Module  390.157  Wed Oct 12 09:19:15 UTC 2022
[   305.572] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[   305.572]    loading driver: nvidia
[   306.078] (II) Applying OutputClass "intel" to /dev/dri/card1
[   306.078]    loading driver: modesetting
[   306.578] (==) Matched nvidia as autoconfigured driver 0
[   306.578] (==) Matched nouveau as autoconfigured driver 1
[   306.578] (==) Matched nv as autoconfigured driver 2
[   306.578] (==) Matched modesetting as autoconfigured driver 3
[   306.578] (==) Matched fbdev as autoconfigured driver 4
[   306.578] (==) Matched vesa as autoconfigured driver 5
[   306.578] (==) Assigned the driver to the xf86ConfigLayout
[   306.578] (II) LoadModule: "nvidia"
[   306.578] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   306.579] (II) Module nvidia: vendor="NVIDIA Corporation"
[   306.579]    compiled for 4.0.2, module version = 1.0.0
[   306.579]    Module class: X.Org Video Driver
[   306.579] (II) LoadModule: "nouveau"
[   306.579] (WW) Warning, couldn't open module nouveau
[   306.579] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   306.579] (II) LoadModule: "nv"
[   306.580] (WW) Warning, couldn't open module nv
[   306.580] (EE) Failed to load module "nv" (module does not exist, 0)
[   306.580] (II) LoadModule: "modesetting"
[   306.580] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   306.582] (II) Module modesetting: vendor="X.Org Foundation"
[   306.582]    compiled for 1.21.1.13, module version = 1.21.1
[   306.582]    Module class: X.Org Video Driver
[   306.582]    ABI class: X.Org Video Driver, version 25.2
[   306.582] (II) LoadModule: "fbdev"
[   306.582] (WW) Warning, couldn't open module fbdev
[   306.582] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   306.582] (II) LoadModule: "vesa"
[   306.583] (WW) Warning, couldn't open module vesa
[   306.583] (EE) Failed to load module "vesa" (module does not exist, 0)
[   306.583] (II) NVIDIA dlloader X Driver  390.157  Wed Oct 12 09:21:41 UTC 2022
[   306.583] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   306.583] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   306.583] (II) Loading sub module "fb"
[   306.583] (II) LoadModule: "fb"
[   306.583] (II) Module "fb" already built-in
[   306.583] (II) Loading sub module "wfb"
[   306.583] (II) LoadModule: "wfb"
[   306.583] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   306.584] (II) Module wfb: vendor="X.Org Foundation"
[   306.584]    compiled for 1.21.1.13, module version = 1.0.0
[   306.584]    ABI class: X.Org ANSI C Emulation, version 0.4
[   306.584] (II) Loading sub module "ramdac"
[   306.584] (II) LoadModule: "ramdac"
[   306.584] (II) Module "ramdac" already built-in
[   306.584] (WW) Falling back to old probe method for modesetting
[   306.599] (II) modeset(G0): using drv /dev/dri/card1
[   306.599] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   306.599] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   306.599] (==) NVIDIA(0): RGB weight 888
[   306.599] (==) NVIDIA(0): Default visual is TrueColor
[   306.599] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   306.599] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[   306.599] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   306.599] (**) NVIDIA(0): Enabling 2D acceleration
[   306.734] (II) NVIDIA(0): NVIDIA GPU GeForce 820M (GF117) at PCI:4:0:0 (GPU-0)
[   306.734] (--) NVIDIA(0): Memory: 2097152 kBytes
[   306.734] (--) NVIDIA(0): VideoBIOS: 75.17.81.00.17
[   306.734] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[   306.734] (II) NVIDIA(0): Validated MetaModes:
[   306.734] (II) NVIDIA(0):     "NULL"
[   306.734] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   306.734] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[   306.734] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[   306.734] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[   306.734] (==) modeset(G0): RGB weight 888
[   306.734] (==) modeset(G0): Default visual is TrueColor
[   306.734] (II) Loading sub module "glamoregl"
[   306.734] (II) LoadModule: "glamoregl"
[   306.734] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   306.741] (II) Module glamoregl: vendor="X.Org Foundation"
[   306.741]    compiled for 1.21.1.13, module version = 1.0.1
[   306.741]    ABI class: X.Org ANSI C Emulation, version 0.4
[   306.782] (II) modeset(G0): glamor X acceleration enabled on Mesa Intel(R) HD Graphics 4400 (HSW GT2)
[   306.782] (II) modeset(G0): glamor initialized
[   306.783] (II) modeset(G0): Output eDP-1-1 has no monitor section
[   306.793] (II) modeset(G0): Output DP-1-1 has no monitor section
[   306.794] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[   306.796] (II) modeset(G0): EDID for output eDP-1-1
[   306.796] (II) modeset(G0): Manufacturer: CMN  Model: 15ab  Serial#: 0
[   306.796] (II) modeset(G0): Year: 2013  Week: 48
[   306.796] (II) modeset(G0): EDID Version: 1.3
[   306.796] (II) modeset(G0): Digital Display Input
[   306.796] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[   306.796] (II) modeset(G0): Gamma: 2.20
[   306.796] (II) modeset(G0): No DPMS capabilities specified
[   306.796] (II) modeset(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   306.796] (II) modeset(G0): First detailed timing is preferred mode
[   306.796] (II) modeset(G0): redX: 0.573 redY: 0.346   greenX: 0.341 greenY: 0.595
[   306.796] (II) modeset(G0): blueX: 0.161 blueY: 0.115   whiteX: 0.313 whiteY: 0.329
[   306.796] (II) modeset(G0): Manufacturer's mask: 0
[   306.796] (II) modeset(G0): Supported detailed timing:
[   306.796] (II) modeset(G0): clock: 75.5 MHz   Image Size:  344 x 193 mm
[   306.796] (II) modeset(G0): h_active: 1366  h_sync: 1397  h_sync_end 1462 h_blank_end 1560 h_border: 0
[   306.796] (II) modeset(G0): v_active: 768  v_sync: 772  v_sync_end 784 v_blanking: 806 v_border: 0
[   306.796] (II) modeset(G0):  N156BGE-L41
[   306.796] (II) modeset(G0):  CMN
[   306.796] (II) modeset(G0):  N156BGE-L41
[   306.796] (II) modeset(G0): EDID (in hex):
[   306.796] (II) modeset(G0):  00ffffffffffff000daeab1500000000
[   306.796] (II) modeset(G0):  30170103802213780ae5659258579829
[   306.796] (II) modeset(G0):  1d505400000001010101010101010101
[   306.796] (II) modeset(G0):  010101010101791d56c2500026301f41
[   306.796] (II) modeset(G0):  4c0058c110000018000000fe004e3135
[   306.796] (II) modeset(G0):  364247452d4c34310a20000000fe0043
[   306.796] (II) modeset(G0):  4d4e0a202020202020202020000000fe
[   306.796] (II) modeset(G0):  004e3135364247452d4c34310a200029
[   306.796] (II) modeset(G0): Printing probed modes for output eDP-1-1
[   306.796] (II) modeset(G0): Modeline "1366x768"x60.0   75.45  1366 1397 1462 1560  768 772 784 806 -hsync -vsync (48.4 kHz eP)
[   306.796] (II) modeset(G0): Modeline "1280x720"x120.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "1280x720"x120.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[   306.796] (II) modeset(G0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[   306.796] (II) modeset(G0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[   306.796] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[   306.796] (II) modeset(G0): Modeline "1024x576"x119.9   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[   306.796] (II) modeset(G0): Modeline "1024x576"x119.9   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[   306.796] (II) modeset(G0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x600"x119.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x600"x120.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x540"x119.9   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x540"x120.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[   306.796] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   306.796] (II) modeset(G0): Modeline "840x525"x120.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "840x525"x119.8   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[   306.796] (II) modeset(G0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[   306.796] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[   306.796] (II) modeset(G0): Modeline "800x450"x119.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "800x450"x119.6   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "700x450"x119.9   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "700x450"x119.8   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[   306.796] (II) modeset(G0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[   306.796] (II) modeset(G0): Modeline "684x384"x119.8   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[   306.796] (II) modeset(G0): Modeline "684x384"x119.7   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x400"x119.8   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x400"x120.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x360"x119.7   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x360"x119.7   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[   306.796] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[   306.796] (II) modeset(G0): Modeline "512x288"x120.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[   306.796] (II) modeset(G0): Modeline "512x288"x119.8   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "480x270"x119.3   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "480x270"x119.6   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[   306.796] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[   306.796] (II) modeset(G0): Modeline "432x243"x119.8   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[   306.796] (II) modeset(G0): Modeline "432x243"x119.1   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[   306.796] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "360x202"x119.0   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[   306.796] (II) modeset(G0): Modeline "360x202"x118.3   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[   306.796] (II) modeset(G0): Modeline "320x180"x119.7    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[   306.796] (II) modeset(G0): Modeline "320x180"x118.6    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[   306.806] (II) modeset(G0): EDID for output DP-1-1
[   306.807] (II) modeset(G0): EDID for output HDMI-1-1
[   306.807] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[   306.807] (==) modeset(G0): DPI set to (96, 96)
[   306.807] (II) Loading sub module "fb"
[   306.807] (II) LoadModule: "fb"
[   306.807] (II) Module "fb" already built-in
[   306.808] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory
[   306.808] (II) NVIDIA:     access.
[   306.811] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[   306.811] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[   306.811] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[   306.811] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[   306.811] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[   306.811] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[   306.811] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[   306.811] (II) NVIDIA(0):     Config Options in the README.
[   306.846] (II) NVIDIA(0): Setting mode "NULL"
[   306.850] (==) NVIDIA(0): Disabling shared memory pixmaps
[   306.850] (==) NVIDIA(0): Backing store enabled
[   306.850] (==) NVIDIA(0): Silken mouse enabled
[   306.850] (==) NVIDIA(0): DPMS enabled
[   306.850] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[   306.850] (II) Loading sub module "dri2"
[   306.850] (II) LoadModule: "dri2"
[   306.850] (II) Module "dri2" already built-in
[   306.850] (II) NVIDIA(0): [DRI2] Setup complete
[   306.850] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   306.888] (==) modeset(G0): Backing store enabled
[   306.888] (==) modeset(G0): Silken mouse enabled
[   306.966] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
[   306.966] (==) modeset(G0): DPMS enabled
[   306.966] (II) modeset(G0): [DRI2] Setup complete
[   306.966] (II) modeset(G0): [DRI2]   DRI driver: crocus
[   306.966] (II) modeset(G0): [DRI2]   VDPAU driver: va_gl
[   306.966] (II) modeset(G0): Disable reverse prime offload mode for i915.
[   306.966] (II) Initializing extension Generic Event Extension
[   306.966] (II) Initializing extension SHAPE
[   306.966] (II) Initializing extension MIT-SHM
[   306.966] (II) Initializing extension XInputExtension
[   306.967] (II) Initializing extension XTEST
[   306.967] (II) Initializing extension BIG-REQUESTS
[   306.967] (II) Initializing extension SYNC
[   306.967] (II) Initializing extension XKEYBOARD
[   306.967] (II) Initializing extension XC-MISC
[   306.967] (II) Initializing extension SECURITY
[   306.967] (II) Initializing extension XFIXES
[   306.967] (II) Initializing extension RENDER
[   306.968] (II) Initializing extension RANDR
[   306.968] (II) Initializing extension COMPOSITE
[   306.968] (II) Initializing extension DAMAGE
[   306.968] (II) Initializing extension MIT-SCREEN-SAVER
[   306.968] (II) Initializing extension DOUBLE-BUFFER
[   306.968] (II) Initializing extension RECORD
[   306.968] (II) Initializing extension DPMS
[   306.968] (II) Initializing extension Present
[   306.969] (II) Initializing extension DRI3
[   306.969] (II) Initializing extension X-Resource
[   306.969] (II) Initializing extension XVideo
[   306.969] (II) Initializing extension XVideo-MotionCompensation
[   306.969] (II) Initializing extension XFree86-VidModeExtension
[   306.969] (II) Initializing extension XFree86-DGA
[   306.969] (II) Initializing extension XFree86-DRI
[   306.969] (II) Initializing extension DRI2
[   306.969] (II) Initializing extension GLX
[   306.969] (II) Initializing extension GLX
[   306.969] (II) Indirect GLX disabled.
[   306.969] (II) Initializing extension NV-GLX
[   306.969] (II) Initializing extension NV-CONTROL
[   307.252] (II) modeset(G0): Damage tracking initialized
[   307.307] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   307.307] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   307.307] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   307.307] (**) Power Button: Applying InputClass "system-keyboard"
[   307.307] (II) LoadModule: "libinput"
[   307.308] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[   307.309] (II) Module libinput: vendor="X.Org Foundation"
[   307.309]    compiled for 1.21.1.8, module version = 1.4.0
[   307.309]    Module class: X.Org XInput Driver
[   307.309]    ABI class: X.Org XInput driver, version 24.4
[   307.309] (II) Using input driver 'libinput' for 'Power Button'
[   307.309] (**) Power Button: always reports core events
[   307.309] (**) Option "Device" "/dev/input/event2"
[   307.311] (II) event2  - Power Button: is tagged by udev as: Keyboard
[   307.311] (II) event2  - Power Button: device is a keyboard
[   307.312] (II) event2  - Power Button: device removed
[   307.353] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[   307.353] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   307.353] (**) Option "xkb_layout" "cn"
[   307.375] (II) event2  - Power Button: is tagged by udev as: Keyboard
[   307.375] (II) event2  - Power Button: device is a keyboard
[   307.376] (II) config/udev: Adding input device Asus Wireless Radio Control (/dev/input/event6)
[   307.376] (**) Asus Wireless Radio Control: Applying InputClass "evdev keyboard catchall"
[   307.376] (**) Asus Wireless Radio Control: Applying InputClass "libinput keyboard catchall"
[   307.376] (**) Asus Wireless Radio Control: Applying InputClass "system-keyboard"
[   307.376] (II) Using input driver 'libinput' for 'Asus Wireless Radio Control'
[   307.376] (**) Asus Wireless Radio Control: always reports core events
[   307.376] (**) Option "Device" "/dev/input/event6"
[   307.377] (II) event6  - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[   307.377] (II) event6  - Asus Wireless Radio Control: device is a keyboard
[   307.377] (II) event6  - Asus Wireless Radio Control: device removed
[   307.413] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/input/input10/event6"
[   307.413] (II) XINPUT: Adding extended input device "Asus Wireless Radio Control" (type: KEYBOARD, id 7)
[   307.413] (**) Option "xkb_layout" "cn"
[   307.414] (II) event6  - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[   307.415] (II) event6  - Asus Wireless Radio Control: device is a keyboard
[   307.415] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[   307.415] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   307.415] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   307.415] (**) Video Bus: Applying InputClass "system-keyboard"
[   307.415] (II) Using input driver 'libinput' for 'Video Bus'
[   307.415] (**) Video Bus: always reports core events
[   307.415] (**) Option "Device" "/dev/input/event5"
[   307.416] (II) event5  - Video Bus: is tagged by udev as: Keyboard
[   307.416] (II) event5  - Video Bus: device is a keyboard
[   307.416] (II) event5  - Video Bus: device removed
[   307.470] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input9/event5"
[   307.470] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   307.470] (**) Option "xkb_layout" "cn"
[   307.471] (II) event5  - Video Bus: is tagged by udev as: Keyboard
[   307.471] (II) event5  - Video Bus: device is a keyboard
[   307.472] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   307.472] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   307.472] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   307.472] (**) Video Bus: Applying InputClass "system-keyboard"
[   307.472] (II) Using input driver 'libinput' for 'Video Bus'
[   307.472] (**) Video Bus: always reports core events
[   307.472] (**) Option "Device" "/dev/input/event4"
[   307.473] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[   307.473] (II) event4  - Video Bus: device is a keyboard
[   307.473] (II) event4  - Video Bus: device removed
[   307.543] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:05/LNXVIDEO:00/input/input8/event4"
[   307.543] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 9)
[   307.543] (**) Option "xkb_layout" "cn"
[   307.545] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[   307.545] (II) event4  - Video Bus: device is a keyboard
[   307.545] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[   307.545] (II) No input driver specified, ignoring this device.
[   307.545] (II) This device may have been added with another device file.
[   307.546] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[   307.546] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[   307.546] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[   307.546] (**) Sleep Button: Applying InputClass "system-keyboard"
[   307.546] (II) Using input driver 'libinput' for 'Sleep Button'
[   307.546] (**) Sleep Button: always reports core events
[   307.546] (**) Option "Device" "/dev/input/event1"
[   307.547] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[   307.547] (II) event1  - Sleep Button: device is a keyboard
[   307.547] (II) event1  - Sleep Button: device removed
[   307.590] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   307.590] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[   307.590] (**) Option "xkb_layout" "cn"
[   307.591] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[   307.591] (II) event1  - Sleep Button: device is a keyboard
[   307.592] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event10)
[   307.592] (II) No input driver specified, ignoring this device.
[   307.592] (II) This device may have been added with another device file.
[   307.592] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event11)
[   307.592] (II) No input driver specified, ignoring this device.
[   307.592] (II) This device may have been added with another device file.
[   307.593] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event12)
[   307.593] (II) No input driver specified, ignoring this device.
[   307.593] (II) This device may have been added with another device file.
[   307.593] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/event14)
[   307.593] (**) PixArt USB Optical Mouse: Applying InputClass "evdev pointer catchall"
[   307.593] (**) PixArt USB Optical Mouse: Applying InputClass "libinput pointer catchall"
[   307.593] (II) Using input driver 'libinput' for 'PixArt USB Optical Mouse'
[   307.593] (**) PixArt USB Optical Mouse: always reports core events
[   307.593] (**) Option "Device" "/dev/input/event14"
[   307.595] (II) event14 - PixArt USB Optical Mouse: is tagged by udev as: Mouse
[   307.595] (II) event14 - PixArt USB Optical Mouse: device set to 1000 DPI
[   307.595] (II) event14 - PixArt USB Optical Mouse: device is a pointer
[   307.595] (II) event14 - PixArt USB Optical Mouse: device removed
[   307.646] (II) libinput: PixArt USB Optical Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[   307.646] (II) libinput: PixArt USB Optical Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[   307.646] (II) libinput: PixArt USB Optical Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[   307.646] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/0003:093A:2510.0001/input/input21/event14"
[   307.646] (II) XINPUT: Adding extended input device "PixArt USB Optical Mouse" (type: MOUSE, id 11)
[   307.647] (**) Option "AccelerationScheme" "none"
[   307.647] (**) PixArt USB Optical Mouse: (accel) selected scheme none/0
[   307.647] (**) PixArt USB Optical Mouse: (accel) acceleration factor: 2.000
[   307.647] (**) PixArt USB Optical Mouse: (accel) acceleration threshold: 4
[   307.649] (II) event14 - PixArt USB Optical Mouse: is tagged by udev as: Mouse
[   307.649] (II) event14 - PixArt USB Optical Mouse: device set to 1000 DPI
[   307.649] (II) event14 - PixArt USB Optical Mouse: device is a pointer
[   307.650] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/mouse1)
[   307.650] (II) No input driver specified, ignoring this device.
[   307.650] (II) This device may have been added with another device file.
[   307.650] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event13)
[   307.650] (II) No input driver specified, ignoring this device.
[   307.650] (II) This device may have been added with another device file.
[   307.651] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event9)
[   307.651] (**) Asus WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[   307.651] (**) Asus WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[   307.651] (**) Asus WMI hotkeys: Applying InputClass "system-keyboard"
[   307.651] (II) Using input driver 'libinput' for 'Asus WMI hotkeys'
[   307.651] (**) Asus WMI hotkeys: always reports core events
[   307.651] (**) Option "Device" "/dev/input/event9"
[   307.651] (II) event9  - Asus WMI hotkeys: is tagged by udev as: Keyboard
[   307.651] (II) event9  - Asus WMI hotkeys: device is a keyboard
[   307.652] (II) event9  - Asus WMI hotkeys: device removed
[   307.710] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input16/event9"
[   307.710] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 12)
[   307.710] (**) Option "xkb_layout" "cn"
[   307.711] (II) event9  - Asus WMI hotkeys: is tagged by udev as: Keyboard
[   307.711] (II) event9  - Asus WMI hotkeys: device is a keyboard
[   307.712] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[   307.712] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[   307.712] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[   307.712] (**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
[   307.712] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[   307.712] (**) AT Translated Set 2 keyboard: always reports core events
[   307.712] (**) Option "Device" "/dev/input/event3"
[   307.713] (II) event3  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[   307.713] (II) event3  - AT Translated Set 2 keyboard: device is a keyboard
[   307.714] (II) event3  - AT Translated Set 2 keyboard: device removed
[   307.750] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[   307.750] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 13)
[   307.750] (**) Option "xkb_layout" "cn"
[   307.751] (II) event3  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[   307.751] (II) event3  - AT Translated Set 2 keyboard: device is a keyboard
[   307.753] (II) config/udev: Adding input device FocalTechPS/2 FocalTech Touchpad (/dev/input/event8)
[   307.753] (**) FocalTechPS/2 FocalTech Touchpad: Applying InputClass "evdev touchpad catchall"
[   307.753] (**) FocalTechPS/2 FocalTech Touchpad: Applying InputClass "libinput touchpad catchall"
[   307.753] (**) FocalTechPS/2 FocalTech Touchpad: Applying InputClass "touchpad"
[   307.753] (II) Using input driver 'libinput' for 'FocalTechPS/2 FocalTech Touchpad'
[   307.753] (**) FocalTechPS/2 FocalTech Touchpad: always reports core events
[   307.753] (**) Option "Device" "/dev/input/event8"
[   307.754] (II) event8  - FocalTechPS/2 FocalTech Touchpad: is tagged by udev as: Touchpad
[   307.754] (II) event8  - FocalTechPS/2 FocalTech Touchpad: no resolution or size hints, assuming a size of 69x50mm
[   307.755] (II) event8  - FocalTechPS/2 FocalTech Touchpad: device is a touchpad
[   307.755] (II) event8  - FocalTechPS/2 FocalTech Touchpad: device removed
[   307.820] (**) Option "Tapping" "on"
[   307.820] (II) libinput: FocalTechPS/2 FocalTech Touchpad: Step value 0 was provided, libinput Fallback acceleration function is used.
[   307.820] (II) libinput: FocalTechPS/2 FocalTech Touchpad: Step value 0 was provided, libinput Fallback acceleration function is used.
[   307.820] (II) libinput: FocalTechPS/2 FocalTech Touchpad: Step value 0 was provided, libinput Fallback acceleration function is used.
[   307.820] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio4/input/input15/event8"
[   307.820] (II) XINPUT: Adding extended input device "FocalTechPS/2 FocalTech Touchpad" (type: TOUCHPAD, id 14)
[   307.822] (**) Option "AccelerationScheme" "none"
[   307.822] (**) FocalTechPS/2 FocalTech Touchpad: (accel) selected scheme none/0
[   307.822] (**) FocalTechPS/2 FocalTech Touchpad: (accel) acceleration factor: 2.000
[   307.822] (**) FocalTechPS/2 FocalTech Touchpad: (accel) acceleration threshold: 4
[   307.823] (II) event8  - FocalTechPS/2 FocalTech Touchpad: is tagged by udev as: Touchpad
[   307.823] (II) event8  - FocalTechPS/2 FocalTech Touchpad: no resolution or size hints, assuming a size of 69x50mm
[   307.824] (II) event8  - FocalTechPS/2 FocalTech Touchpad: device is a touchpad
[   307.825] (II) config/udev: Adding input device FocalTechPS/2 FocalTech Touchpad (/dev/input/mouse0)
[   307.825] (**) FocalTechPS/2 FocalTech Touchpad: Applying InputClass "touchpad"
[   307.825] (II) Using input driver 'libinput' for 'FocalTechPS/2 FocalTech Touchpad'
[   307.825] (**) FocalTechPS/2 FocalTech Touchpad: always reports core events
[   307.825] (**) Option "Device" "/dev/input/mouse0"
[   307.883] (II) mouse0  - not using input device '/dev/input/mouse0'.
[   307.883] (EE) libinput: FocalTechPS/2 FocalTech Touchpad: Failed to create a device for /dev/input/mouse0
[   307.883] (EE) PreInit returned 2 for "FocalTechPS/2 FocalTech Touchpad"
[   307.883] (II) UnloadModule: "libinput"
[   307.884] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
[   307.884] (II) No input driver specified, ignoring this device.
[   307.884] (II) This device may have been added with another device file.
[   311.015] randr: falling back to unsynchronized pixmap sharing

So this is a video-nvidia-390xx BUG, the automatically generated file /etc/X11/xorg.conf.d/90-mhwd.conf must be deleted ?


My core demand is that I want to be able to freely switch between integrated and independent graphics cards !!!

I tried,but the online wiki documentation frustrates me!


latest:

Add this code to file /etc/X11/mhwd.d/nvidia.conf to light up the screen

# Adding this code lights up the screen
Section "Device"
        Identifier  "test"
        Driver      "modesetting"
        BusID       "PCI:0:2:0"
EndSection

/etc/X11/mhwd.d/nvidia.conf full content:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.157  (dvs-builder@U64-E08-27-1)  Wed Oct 12 09:14:08 UTC 2022

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    #HorizSync       28.0 - 33.0
    #VertRefresh     43.0 - 72.0
    #Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Device"
        Identifier  "test"
        Driver      "modesetting"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-390xx            2023.03.23               false            PCI
   network-broadcom-wl            2018.10.07               false            PCI