My laptop is an ASUS with motherboard UX430URN and Nvidia GeForce MX150. The kernel I'm using is 5.4.0-96
and the nvidia driver is nvidia-driver-470
(on performance mode, that is prime-select nvidia
). Another information that might be important is that Secure boot is not enabled.
Also, xrandr
was not detecting the monitor (connected via a Micro HDMI cable). Even when I booted using a bootable USB with an Ubuntu 21.10 or a Pop OS (with NVidia), the monitor (HP M27ha) is not detected. I tried different cables, that was not the problem.
Then, I tried to use my tv (a TCL) as the second screen. Surprisingly, it worked. I looked online and could not find any solution that was working for me. I even tried to switch to lightdm
, edit the nvidia-kms.conf
file, and so on.
I have also tried to switch the nvidia driver and use the open source driver. Nothing seems to work.
Finally, I solved this problem using the following steps:
- Remove all the nvidia drivers installed:
sudo apt remove --purge '^nvidia-.*'
- Installing the most up-to-date
nvidia-driver
. In my case, it was nvidia-driver-470
: sudo apt install nvidia-driver-470
.
- Rebooting (
reboot
).
- Now the most surprising part, after following these steps the monitor still was not being detected. Then, I turned it off, plugged the cable, and turned it on again and voila!!
However, when I turned the computer on in the next morning, the monitor was not being detected again.