Whenever I do something with the NVIDIA drivers, my laptop no longer recognizes my external monitors.
Yesterday I wanted to install the CUDA Toolkit to work with Tensorflow. To do this, I first removed the current Nvidia driver and then ran the runfile installation. Since then, my laptop no longer recognizes my external monitors. After that I removed everything (hopefully) again and tried the deb (local) installation. Also without success. I also tried reverting to the normal nvidia drivers without CUDA, but that doesn’t work either.
Additional information:
Model: TUXEDO Polaris 17 - Gen3
GeForce RTX 3060
Intel Core i7-11800H
Secure boot is disabled
$ nvidia-smi
Thu Aug 18 10:03:54 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.85.02 Driver Version: 510.85.02 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| 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 48C P8 14W / N/A | 805MiB / 6144MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1266 G /usr/lib/xorg/Xorg 265MiB |
| 0 N/A N/A 2158 G /usr/bin/kwin_x11 91MiB |
| 0 N/A N/A 2199 G /usr/bin/plasmashell 62MiB |
| 0 N/A N/A 2402 G ...AAAAAAAAA= --shared-files 5MiB |
| 0 N/A N/A 2678 G ...099348883121421561,131072 376MiB |
+-----------------------------------------------------------------------------+
$ nvidia-settings
(nvidia-settings:7279): GLib-GObject-CRITICAL **: 10:04:42.727: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
$ xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 768mm x 432mm
2560x1440 165.00*+ 143.97 + 59.99 59.99 59.96 59.95
1920x1440 85.00 75.00 60.00
1856x1392 75.00 60.01
1792x1344 75.00 60.01
2048x1152 59.99 59.98 59.90 59.91
1920x1200 59.88 59.95
1920x1080 60.01 59.97 59.96 59.93
1600x1200 85.00 75.00 70.00 65.00 60.00
1680x1050 84.94 74.89 69.88 59.95 59.88
1600x1024 60.17
1400x1050 85.00 74.76 70.00 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 85.02 75.02 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 85.00 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 100.00 85.06 85.00 75.00 75.00 70.00 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 85.00 75.05 60.04 85.00 75.03 70.07 60.00
1024x768i 86.96
960x720 85.00 75.00 60.00
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 85.00 75.00 70.00 65.00 60.00 85.14 72.19 75.00 60.32 56.25
840x525 85.02 74.96 69.88 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 85.08 74.76 70.06 59.98
800x450 59.95 59.82
640x512 85.02 75.02 60.02
720x450 59.89
700x450 59.96 59.88
640x480 85.09 60.00 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98 85.08
576x432 100.11 85.15 85.09 75.00 75.00 70.00 60.06
640x360 59.86 59.83 59.84 59.32
640x350 85.08
512x384 85.00 75.03 70.07 60.00
512x384i 87.06
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 85.27 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 85.18 72.81 75.00 60.05
360x202 59.51 59.13
360x200 85.04
320x200 85.27
320x180 59.84 59.32
320x175 85.27
DP-1-1 disconnected (normal left inverted right x axis y axis)
Some of the command I’ve tried from my history:
nvidia-smi
sudo apt-get purge 'nvidia*'
sudo apt-get autoremove
sudo apt-get install nvidia-common
sudo update-initramfs -u
sudo apt-get remove --purge 'nvidia*'
sudo ubuntu-drivers autoinstall
gcc --version
uname -r
sudo apt-get install linux-headers-$(uname -r)
cd Downloads/
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda-repo-ubuntu2204-11-7-local_11.7.1-515.65.01-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2204-11-7-local_11.7.1-515.65.01-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-11-7-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
export PATH=/usr/local/cuda-11.7/bin${PATH:+:${PATH}}
systemctl status nvidia-persistenced
sudo systemctl enable nvidia-persistenced
systemctl status nvidia-persistenced
nvidia-smi
lsmod | grep nvidia
sudo rmmod nvidia_drm
sudo lsof /dev/nvidia*
sudo kill 1367
sudo nvidia-smi
nvidia-smi
sudo nvidia-settings
cd /usr/share/nvidia
sudo ln -s nvidia-application-profiles-510.85.02-key-documentation nvidia-application-profiles-key-documentation
sudo nvidia-settings
cd Downloads/
sudo prime-select nvidia
xrandr --listproviders
xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --auto
sudo xrandr --setprovideroutputsource modesetting NVIDIA-G0
sudo xrandr --auto
sudo nvidia-settings
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia nvidia-settings
cp -p /usr/share/X11/xorg.conf.d/nvidia.conf /etc/X11/xorg.conf.d/nvidia.conf
dkms
sudo dkms autoinstall
sudo nvidia-settings
sudo prime-select nvidia
sudo nvidia-smi
sudo nvidia-settings
sudo xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --listproviders
sudo xrandr --setprovideroutputsource modesetting NVIDIA-0
sudo xrandr --auto
xrandr --listproviders
sudo nvidia-smi
sudo nvidia-smi -h
sudo xrandr
sudo xrandr --auto
nvidia-bug-report.log.gz (393.4 KB)