I upgraded to ubuntu 24.04 and kernel 9.3 due to hardware compatibility with my new Laptop.
Unfortunately, I cant seem to get the NVIDIA GPU to work properly.
I cannot install the driver using ubuntu drivers. But I can install the drivers using apt.
as of right now, im on version 535, but newer version seemed to have the same behavior.
Behaviour:
The GPU is successfully recognized, and software such as Davinci resolve successfully recognizes the GPU.
Smi also detects the software, but it seems that most actions I do, including gpu benchmarks, starting games etc are severely underperforming (Eg. 10 FPS in nearly any game no matter if through proton or linux native, benchmark results <5% of what they should be).
In the meantime, the GPU power target is at 5 watts, and ~50°c. nvidia smi shows that the corresponding software is using the gpu, in the below example age of empires 2. I do see frame improvements (from 8 to 12) Frames, when changing the performance target in nvidia settings, and I see frame rate improvements when reducing the resolution. Other graphics settings do not seem to affect the behavior
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.171.04 Driver Version: 535.171.04 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| 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 RTX 4060 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 49C P8 5W / 60W | 3471MiB / 8188MiB | 30% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 3709 G /usr/lib/xorg/Xorg 220MiB |
| 0 N/A N/A 4036 G ...libexec/gnome-remote-desktop-daemon 2MiB |
| 0 N/A N/A 10866 C+G ...teamapps\common\AoE2DE\AoE2DE_s.exe 3220MiB |
+---------------------------------------------------------------------------------------+
Davinci resolve seems to utilize the GPU properly, but quickly brings “GPU Memory Full” errors, when the GPU Memory is not full
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.171.04 Driver Version: 535.171.04 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| 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 RTX 4060 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 62C P0 43W / 60W | 795MiB / 8188MiB | 40% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 3896 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 4213 G ...libexec/gnome-remote-desktop-daemon 2MiB |
| 0 N/A N/A 10694 C /opt/resolve/bin/resolve 778MiB |
+---------------------------------------------------------------------------------------+
when checking for prime, it tells me, the nvidia gpu is selected:
prime-select query
> nvidia
but when checking glxinfo, it tells me it uses the fallback cpu renderer:
glxinfo | grep "OpenGL renderer"
OpenGL renderer string: llvmpipe (LLVM 17.0.6, 256 bits)
this is my debug log:
nvidia-bug-report.log.gz (450.6 KB)
any help or hints in the right direction are much appreciated, as I am fighting with that laptop for quite some time now.
Best regards,
Julian