***Update 1:
I did steps 1 and 3 listed below on a clean Ubuntu 18.04/20.04 and the issue (show up only after logout) didn't appear anymore on both Ubuntu versions.
Note that the linux kernel is specifically 5.11.14 because I tried some older and newer versions and all of them failed.
***Update 2:
I just did a software update on Ubuntu 20.04 and there's black screen on my built-in monitor again, like installing the wrong nvidia driver I experienced before.
Solution:
- Open up 'Software & Updates'
- Go to 'Additional Drivers'
- Choose nvidia-driver-510 (proprietary, tested).
Main problem:
Every time I reboot and enter Ubuntu 18.04 (I set autimatically login), my internal monitor (165 Hz) keeps black screen (completely black) while the external monitor (60 Hz) via HDMI works well. I feel the internal monitor is working at that moment from moving my cursor to that monitor.
I also notice the display in this situation (account is locked and display is off because of screen saver) is weird: enter image description here
After logging out once, the internal monitor works well (it shows up at the moment of logging out).
I've checked the following:
enter image description here
enter image description here
The values in the above two pictures are the same in having the black screen or not.
I can use Ctrl+Alt+Del to logout when I only have the internal monitor / using it as the primary monitor.
However, I want to solve the problem but I have no idea where the problem is. Please help~~~
Long story:
I got a new laptop, Alienware m15 R5, with AMD Ryzen 7 5800H and NVIDIA GeForce RTX 3060, 6 GB, GDDR6, and I got the problem of installing Nvidia driver for the graphic card.
After a long research of setting up the Nvidia driver, I realised the essential steps I did to get the driver works:
- install kernel 5.11.14
- copy all green_sardine* files from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/amdgpu to /lib/firmware/
- Disable "hybrid graphics / advanced optimus" in BIOS
- Switch from gdm3 to lightdm display manager