environment: Clean install Ubuntu 20.04 on ASUS laptop (minimal installation) The display was not recognized when trying to connect to HDMI from the type-c dock
Install the display manager Light DM.
Do the following in your terminal:
$ sudo apt install lightdm
Register LightDM with your default display manager.
Restart your PC.
Execute the following command in the terminal.
$ sudo apt-get purge 'nvidia*'
$ sudo add-apt-repository ppa:graphics-drivers
$ sudo apt-get update
When you restart your PC, HDMI will recognize and use your external monitor.