I’ve read a lot of posts with the same issue, the ones I’ve understood I tried but I couldnt solve it yet.
I’m using a fresh Ubuntu 22.04 install with Nvidia Driver 550 (not open) on a Lenovo Laptop with a 3070. The system is set up as dual boot and on Windows the GPU runs without problems. On Ubuntu nvidia-smi returns “No devices found”.
In the bios I can change to discrete graphics which should force the use of the GPU (If i understand correctly), but my screen gets a bunch of green pixels which frankly look concerning. I’ve switched to that yesterday evening and gave up. Now in the morning nvidia-smi worked and everything looked fine, but after rebooting once nvidia-smi failed and after the second reboot I’ve got the green pixels again. Hence, I’ve switched back to dynamic gaphics for now and before I wreck anything I’ve come here to ask.
Secure boot is disabled and I’ve tried a bunch of other drivers too.
The Bug report is stuck on upload so I’ll add it after creating the topic.
Any help is greatly appreciated, but I ask you to be a bit patient. I am familiar with using Nvidia and Linux but I’ve never needed to debug anything on the deeper system level so I might not understand everything right away.
On a hybrid system you must not use the xorg.conf generated by nvidia-xconfig.
Delete /etc/X11/xorg.conf
Also I’d advise to use the driver provided by your distro. Not the .run file installer.
To do the change you need to first --uninstall the .run file and then install the distro driver.
I’ve deleted the file, but I still get the same nvidia-smi output.
The driver is already the one from apt install, I’ve uninstalled the .run driver version before due to other forum entries saying the same thing. Now running the .run with --uninstall it says “No driver installed”.
The log file you uploaded showed no sign of the distro installation, or the uninstall of the .run file. That’s the reason of my replies.
Could you do a reinstall by executing: sudo apt reinstall nvidia-driver-550 and post the output of that.
Reboot and then create a new bug report and upload it please.
Also tell if you have the laptop set to hybrid, or discrete mode in BIOS.
And the output of prime-select query please.
(base) sally@TheBoy:~$ sudo apt reinstall nvidia-driver-550
[sudo] password for sally:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
javascript-common libaccinj64-11.5 libatomic1:i386 libcub-dev libcublas11 libcublaslt11 libcudart11.0
libcufft10 libcufftw10 libcupti-dev libcupti-doc libcupti11.5 libcurand10 libcusolver11 libcusolvermg11
libcusparse11 libdouble-conversion3 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
libdrm-radeon1:i386 libdrm2:i386 libedit2:i386 libegl-dev libelf1:i386 libexpat1:i386 libgl-dev libgl1:i386
libgl1-mesa-dev libgl1-mesa-dri:i386 libglapi-mesa:i386 libgles-dev libgles1 libglvnd-core-dev libglvnd-dev
libglvnd0:i386 libglx-dev libglx-mesa0:i386 libglx0:i386 libicu70:i386 libjs-jquery libjs-sphinxdoc
libjs-underscore libllvm15:i386 libnppc11 libnppial11 libnppicc11 libnppidei11 libnppif11 libnppig11
libnppim11 libnppist11 libnppisu11 libnppitc11 libnpps11 libnvblas11 libnvjpeg11 libnvrtc-builtins11.5
libnvrtc11.2 libnvtoolsext1 libnvvm4 libopengl-dev libpciaccess0:i386 libpcre2-16-0 libpthread-stubs0-dev
libqt5core5a libqt5dbus5 libqt5network5 libsensors5:i386 libstdc++6:i386 libtbb-dev libtbb12 libtbbmalloc2
libthrust-dev libvdpau-dev libx11-dev libx11-xcb1:i386 libxau-dev libxcb-dri2-0:i386 libxcb-dri3-0:i386
libxcb-glx0:i386 libxcb-present0:i386 libxcb-randr0:i386 libxcb-shm0:i386 libxcb-sync1:i386
libxcb-xfixes0:i386 libxcb-xinerama0 libxcb1-dev libxdmcp-dev libxfixes3:i386 libxml2:i386
libxshmfence1:i386 libxxf86vm1:i386 node-html5shiv nsight-compute nsight-compute-target ocl-icd-opencl-dev
opencl-c-headers opencl-clhpp-headers qttranslations5-l10n x11proto-dev xorg-sgml-doctools xtrans-dev
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/490 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database … 219376 files and directories currently installed.)
Preparing to unpack …/nvidia-driver-550_550.120-0ubuntu0.22.04.1_amd64.deb …
Unpacking nvidia-driver-550 (550.120-0ubuntu0.22.04.1) over (550.120-0ubuntu0.22.04.1) …
Setting up nvidia-driver-550 (550.120-0ubuntu0.22.04.1) …
Laptop is set to hybrid - from what I can tell now nvidia-smi randomly works and other times it does not.
When I rebooted after deleting xorg.conf it did not work, now it’s about 50/50 - I have a feeling it often works when rebooting quickly after the first boot.
Right now nvidia-smi shows “No devices” and prime select query shows “nvidia”. nvidia-bug-report.log (297.2 KB)