My laptop is an HP Victus laptop with an i7 11th gen CPU and 16 GB RAM. I'm using Ubuntu 22.04 as the operating system.
I ran the following command and I got this output.
$ lspci | grep VGA
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
And
$ nvidia-smi
+---------------------------------------------+
| NVIDIA-SMI 510.108.03 Driver Version: 510.108.03 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
I'm using "NVIDIA on demand" mode as the PRIME profile.
My brand-new laptop has only an HDMI output and that port has never been used before. I connected an extra monitor through an HDMI to VGA adapter. Sometimes it works fine. Other times the monitor is suddenly disconnected and it was connected once again. This happens several times one after the other and then it works fine for about a minute, and then it causes my laptop to shut down suddenly.
But the same adapter, the cable, and the monitor work fine on my friends' laptops (all are running Windows), even when their laptops are much less powerful and much older than mine. I checked mine's GPU usage when the extra monitor is connected and it's not overloaded. Some people suggest this may be an issue with Ubuntu (Since it works fine with Windows running machines) or some client software (like web browser, office packages, etc...) that I was running.
What may be the actual cause?
What do you suggest to fix that?
Is this harmful to my laptop's motherboard?