Hi,
I am new here, I hope I can explain my problem in the correct way.
Firstly I want to say that I know not too much about Graphic Cards and kernel.
I boot my OS(Ubuntu 20.04 LTS → kernel: 5.13.0-40-generic) using my processor(Intel(R) Core™ i7-10750H) as graphic manager.
If I change, using nvidia-settings, from intel to nvidia or on-demand, and using sudo mv /lib/modprobe.d/blacklist-nvidia.conf /lib/modprobe.d/blacklist-nvidia.conf.old
and after digit sudo update-initramfs -u
, trying to reboot the system, I got the following black screen
The content of /lib/modprobe.d/blacklist-nvidia.conf
is the following.
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
alias nvidia off
alias nvidia-drm off
alias nvidia-modeset off
Instead If I use prime-select nvidia
and keep the file /lib/modprobe.d/blacklist-nvidia.conf
, I can boot inside the OS and view the graphic enviroment. I can use my graphic card, for example with tensorflow using the following trick.
sudo mv /lib/modprobe.d/blacklist-nvidia.conf /lib/modprobe.d/blacklist-nvidia.conf.old
and after digit sudo update-initramfs -u
do not reboot the system and digiting sudo nvidia-smi
I can view the output
+-----------------------------------------------------------------------------+
| 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 44C P0 15W / N/A | 0MiB / 3914MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
I don’t have any /etc/X11/xorg.conf file.
I attach also my nvidia-bug-report.sh
.
nvidia-bug-report.log.gz (122.0 KB)