NVIDIA RTX A2000 8GB Laptop GPU problem on CentOS 7

It looks like my new laptop has a Optimus system:

# lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4688] (rev 0c) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:25ba] (rev a1) (prog-if 00 [VGA controller])

I started without X-Windows, then made it work (without using an /etc/X11/xorg.conf file) without NVIDIA drivers, and finally wanted to install the latest NVIDIA driver for CentOS 7. Right now I can go back to the solution without the NVIDIA drivers, but obviously I would like to create a configuration file (xorg.conf) which works with my NVIDIA graphics card and the NVIDIA driver. Any help would be appreciated. I started the X server with startx -- -logverbose 6 and ran nvidia-bug-report.sh after the problem has occurred. The problem is that I stuck in console mode when using the NVIDIA driver (and trying to use startx). Here is the resulting *.log.gz file:

nvidia-bug-report.log.gz (310.8 KB)

You can’t really run Centos 7 on a new hybrid graphics notebook due to the 12th gen intel igpu needing a recent kernel and firmware.

Thanks a lot @generix. That saved me a ton of time. I went for Rocky Linux 8.6 instead and followed this guide.

$ nvidia-smi 
Tue Sep 20 16:45:18 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| 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 RTX A200...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   40C    P8    N/A /  N/A |    498MiB /  8192MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      3723      G   /usr/libexec/Xorg                 242MiB |
|    0   N/A  N/A      3878      G   /usr/bin/gnome-shell              253MiB |
+-----------------------------------------------------------------------------+
[jan@ADSKPF3Y2P6L Pictures]$ neofetch 
        #####           jan@ADSKPF3Y2P6L 
       #######          ---------------- 
       ##O#O##          OS: Rocky Linux 8.6 (Green Obsidian) x86_64 
       #######          Host: 21D7S0V302 ThinkPad P16 Gen 1 
     ###########        Kernel: 4.18.0-372.26.1.el8_6.x86_64 
    #############       Uptime: 14 mins 
   ###############      Packages: 1543 (rpm) 
   ################     Shell: bash 4.4.20 
  #################     Resolution: 3840x2400 
#####################   Terminal: /dev/pts/1 
#####################   CPU: 12th Gen Intel i9-12950HX (24) @ 3.600GHz 
  #################     GPU: NVIDIA 01:00.0 NVIDIA Corporation Device 25ba 
                        GPU: Intel Device 4688 
                        Memory: 1813MiB / 63799MiB