taiwbi
May 16th, 2022, 08:14 AM
I am using Ubuntu 22.04 LTS, everything was fine until I decided to change my NVIDIA driver, I changed it to nvidia-driver-510, I do not remember which one I was using but I think it was 470.
Then I restarted my laptop and everything was almost ok. I opened the NVIDIA X Server settings and set the PRIME profile to NVIDIA (performance mode). Then I restarted my laptop again. It freezes on startup, on the ASUS - Ubuntu screen, I use ctrl + alt + f3 (that didn't work and I had to choose recovery mode in grub menu and then select resume normal boot so I can open terminal with ctrl + alt + f2) keys and open the terminal, remove the NVIDIA drivers and restart. Now it works with Intel GPU, I installed nvidia-driver-510 and tried again to set my NVIDIA as default GPU, but the problem is still there. I cannot set my NVIDIA as the default GPU.
My GPU is: nVidia GP108M [GeForce MX250]
And My CPU is: [HTML]Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
This is
lspci -k | grep -EA3 'VGA|3D|Display' command output:
─$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
DeviceName: VGA
Subsystem: ASUSTeK Computer Inc. CometLake-U GT2 [UHD Graphics]
Kernel driver in use: i915
Kernel modules: i915
--
02:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)
DeviceName: Second VGA
Subsystem: ASUSTeK Computer Inc. GP108M [GeForce MX250]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
03:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
Now, after two days of trying to get it to work, I can not even set the Prime profile to On-Demand mode! At first when it was in on-demand mode it worked fine (it detected the graphics card and showed 3 processes with the nvidia-smi command, but it did not use nvidia gpu even if the graphics process was too high), but now it just freezes on boot screen. If I select kernel version 5.15.0-27 in the grub menu. It handles the error and the Intel graphics is used, so the nvidia-smi output is:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I tried
sudo apt remove --purge *nvidia* and reinstall everything like thousand times. I tried
locate nvidia and remove all nvidia config files after removing driver then reinstall it, I tried reinstall linux headers but nothing worked so far.
Then I restarted my laptop and everything was almost ok. I opened the NVIDIA X Server settings and set the PRIME profile to NVIDIA (performance mode). Then I restarted my laptop again. It freezes on startup, on the ASUS - Ubuntu screen, I use ctrl + alt + f3 (that didn't work and I had to choose recovery mode in grub menu and then select resume normal boot so I can open terminal with ctrl + alt + f2) keys and open the terminal, remove the NVIDIA drivers and restart. Now it works with Intel GPU, I installed nvidia-driver-510 and tried again to set my NVIDIA as default GPU, but the problem is still there. I cannot set my NVIDIA as the default GPU.
My GPU is: nVidia GP108M [GeForce MX250]
And My CPU is: [HTML]Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
This is
lspci -k | grep -EA3 'VGA|3D|Display' command output:
─$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
DeviceName: VGA
Subsystem: ASUSTeK Computer Inc. CometLake-U GT2 [UHD Graphics]
Kernel driver in use: i915
Kernel modules: i915
--
02:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)
DeviceName: Second VGA
Subsystem: ASUSTeK Computer Inc. GP108M [GeForce MX250]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
03:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
Now, after two days of trying to get it to work, I can not even set the Prime profile to On-Demand mode! At first when it was in on-demand mode it worked fine (it detected the graphics card and showed 3 processes with the nvidia-smi command, but it did not use nvidia gpu even if the graphics process was too high), but now it just freezes on boot screen. If I select kernel version 5.15.0-27 in the grub menu. It handles the error and the Intel graphics is used, so the nvidia-smi output is:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I tried
sudo apt remove --purge *nvidia* and reinstall everything like thousand times. I tried
locate nvidia and remove all nvidia config files after removing driver then reinstall it, I tried reinstall linux headers but nothing worked so far.