My laptop is automatically switching to Intel integrated graphics from NVIDIA dedicated graphics by itself. It works for some time after I do 'sudo prime-select nvidia' and reboot, but then it switches automatically. I have set the prime profile as performance mode, and Ubuntu power mode is also set to performance. Pytorch or tensorflow can't find any CUDA device. I'm using NVIDIA drivers 535 on Ubuntu 23.04. I have also checked BIOS settings. I have two options there - switchable graphics and Intel only. No NVIDIA only option. So I set it to switchable graphics. Laptop: Lenovo IdeaPad Gaming 3 16IAH7 CPU: 12th Gen Intel® Core™ i7-12700H × 20 Dedicated GPU: NVIDIA RTX 3060 Mobile
There have been a number of posts regarding NVIDIA drivers and 23.04. That could be the issue. Also, if that is a very new bit of hardware, it may not be supported yet. I can't offer much more than that, being an AMD GPU user, but just so you know.
Last edited by QIII; August 31st, 2023 at 12:45 PM.
Please read The Forum Rules and The Forum Posting Guidelines A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once. This universe is crazy. I'm going back to my own.
Another thing to consider: the 535 driver has seen many problems. You may want to try the 525 driver and see what happens.
View Tag Cloud
Ubuntu Forums Code of Conduct