Display is dark on boot on newer kernels

When I boot Manjaro XFCE, the display of the laptop shows dark screen. Screenshots work fine, it’s only that the screen is showing dark.

Note that another display is connected to the laptop, which works fine.

The solution for this is to turn off the display from the “display” settings, and then turn it back on. This issue only occurs on kernels after 5.4. On 5.4, it is totally fine.

Some system info below,

System:
  Host: aditya-pc Kernel: 5.10.26-1-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 10.2.0 Desktop: Xfce 4.16.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: HP Notebook v: Type1ProductConfigId 
  serial: <superuser required> 
  Mobo: HP model: 8136 v: 31.36 serial: <superuser required> UEFI: Insyde 
  v: F.1F date: 01/18/2016 
CPU:
  Info: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP 
  arch: Skylake rev: 3 cache: L2: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 19204 
  Speed: 501 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 501 2: 500 
  3: 500 4: 501 
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard 
  driver: i915 v: kernel bus-ID: 00:02.0 
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / 
  Radeon 520 Mobile] 
  vendor: Hewlett-Packard driver: radeon v: kernel bus-ID: 01:00.0 
  Device-3: Realtek HP Truevision HD type: USB driver: uvcvideo 
  bus-ID: 1-5:5 
  Display: x11 server: X.Org 1.20.10 driver: loaded: ati,intel,radeon 
  unloaded: modesetting resolution: 1: 1920x1080~60Hz 2: 2560x1440~75Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.0.1 
  direct render: Yes

Seems the default way at kernel 5.4 changed later…

Have you tried to set profiles on the “xfce screen manager” (forgot the name). You will need to set the configuration, then save a profile, then set another configuration and save another profile. This way, if a screen is connected, then xfce will know it, because the screen name is also saved at the profile.

There is a profile setting in “display” software. I have created a profile there and set it to be applied automatically, but it didn’t help.

Are you suggesting that I should create two profiles, one for only the laptop, and one for both the laptop and display?

Yes, this is the way i have done it.