Can't connect to second monitor via HDMI (Ubuntu 20.04)

Hi,

I recently installed Ubuntu 20.04 along with Windows 10, therefore having a dual boot.
My monitor HDMI connected monitor is not detected on Ubuntu. I’ve installed the drivers it looks like they are not detected?


This is how it looks when I open the nvidia driver settings
Also, this is the output for xrandr:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected primary 1920x1080+0+0 0mm x 0mm
1920x1080 77.00*

Output for nvidia-smi:
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100 Driver Version: 440.100 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 165… Off | 00000000:01:00.0 Off | N/A |
| N/A 36C P0 5W / N/A | 0MiB / 3911MiB | 0% Default |
±------------------------------±---------------------±---------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

My laptop’s video card is: nvidia gtx 1650 ti

Can somebody help me?
I’ve tried all of the things searched on the internet. nothing worked

I managed to make it work using this: https://askubuntu.com/questions/1177248/nvidia-gtx-1650-not-detected-in-ubuntu-18-04-3
BUT, now the laptop monitor shows me like a terminal full screen. Now the xrandr retunrs this: