Difficulty Detecting NVIDIA GPU on Samsung Book3 Ultra Laptop

Hello,

I’m experiencing issues with detecting the NVIDIA GPU on my Samsung Book3 Ultra laptop running Ubuntu 20.04.6 LTS. Despite extensive troubleshooting and trying various forum solutions over the past two days, I’ve been unable to resolve the issue.

Here are the details of my system:

  • Laptop model: Samsung Book3 Ultra
  • Operating System: Ubuntu 20.04.6 LTS
  • Kernel Version: 5.18.19-051819-generic
  • NVIDIA GPU: NVIDIA Corporation Device 2820 (rev a1)
  • Integrated GPU: Intel Corporation Device a7a0 (rev 04)

I have tried the following steps:

  1. Checked if NVIDIA drivers are installed using ubuntu-drivers list.
    == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
    modalias : pci:v000010DEd00002820sv0000144Dsd0000C1CCbc03sc02i00
    vendor : NVIDIA Corporation
    driver : nvidia-driver-525-server - distro non-free
    driver : nvidia-driver-535 - distro non-free
    driver : nvidia-driver-545-open - third-party non-free
    driver : nvidia-driver-525-open - distro non-free
    driver : nvidia-driver-525 - distro non-free
    driver : nvidia-driver-550 - third-party non-free recommended
    driver : nvidia-driver-535-open - distro non-free
    driver : nvidia-driver-545 - third-party non-free
    driver : nvidia-driver-550-open - third-party non-free
    driver : nvidia-driver-535-server-open - distro non-free
    driver : nvidia-driver-535-server - distro non-free
    driver : xserver-xorg-video-nouveau - distro free builtin

  2. Verified NVIDIA GPU information using lspci | grep -i nvidia.

01:00.0 3D controller: NVIDIA Corporation Device 2820 (rev a1)

  1. Checked if NVIDIA kernel modules are loaded using lsmod | grep nvidia.
    modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.18.19-051819-generic

  2. Attempted to load NVIDIA kernel modules manually using sudo modprobe nvidia.

  3. Checked GPU utilization and information using 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.

  4. Verified X server configuration using cat /etc/X11/xorg.conf.
    nvidia-xconfig: X configuration file generated by nvidia-xconfig
    nvidia-xconfig: version 550.54.14

Despite these efforts, the NVIDIA GPU remains undetected, and I am unable to utilize its capabilities.

After spending 3 days surfing through forums and youtube videos on this I am still at square 1. where nvidia-smi cannot detect any gpu.

I have attached the bug.gz file for further analysis. Any assistance or guidance on resolving this issue would be greatly appreciated.

Feel free to ask more about configurations

Thank you.

Bug file attached
nvidia-bug-report.log.gz (109.5 KB)

Hello @pateltirthrenzen and welcome to the NVIDIA developer forums.

Please check the following from the very beginning of the bug log file you attached:

ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

and

warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
  You are using:           cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia/535.161.07/build \
single-build= \
need-builtin=1 need-modorder=1
The Module.symvers file is missing, or does not contain any
symbols exported from the kernel. This could cause the NVIDIA
kernel modules to be built against a configuration that does
not accurately reflect the actual target kernel.
The Module.symvers file check can be disabled by setting the
environment variable IGNORE_MISSING_MODULE_SYMVERS to 1.
make[2]: *** [/var/lib/dkms/nvidia/535.161.07/build/Kbuild:352: module_symvers_sanity_check] Error 1
make[1]: *** [Makefile:1850: /var/lib/dkms/nvidia/535.161.07/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.19-051819'
make: *** [Makefile:82: modules] Error 2

You should address those issues first. And please choose only one method for driver installation, either using the Distro tools OR use the downloaded .runfile from NVIDIA. Do not mix and match.

Thanks!

Hey @MarkusHoHo Thanks for the reply

I have already tried from both methods to install drivers several times but still the nvidia-smi gave the same output.

Even after running this command

sudo ./NVIDIA-Linux-x86_64-<version>.run --kernel-source-path=/usr/src/linux-source-<version>

I got this output

The kernel header file ‘/usr/src/linux-source-5.4.0/include/linux/kernel.h’
does not exist. The most likely reason for this is that the kernel source
path ‘/usr/src/linux-source-5.4.0’ is incorrect. Please make sure you have
installed the kernel source files for your kernel and that they are properly
configured; on Red Hat Linux systems, for example, be sure you have the
‘kernel-source’ or ‘kernel-devel’ RPM installed. If you know the correct
kernel source files are installed, you may specify the kernel source path
with the ‘–kernel-source-path’ command line option.

I was scared to make changes in the source files, hence I refrained from doing so.