linuxboot / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops, workstations and servers.
https://osresearch.net/
GNU General Public License v2.0
1.41k stars 186 forks source link

HDMI output usually not available after cold boot #1557

Open marmarek opened 9 months ago

marmarek commented 9 months ago

Please identify some basic details to help process the report

A. Provide Hardware Details

1. What board are you using (see list of boards here)?

x230

2. Does your computer have a dGPU or is it iGPU-only?

3. Who installed Heads on this computer?

4. What PGP key is being used?

5. Are you using the PGP key to provide HOTP verification?

B. Identify how the board was flashed

1. Is this problem related to updating heads or flashing it for the first time?

2. If the problem is related to an update, how did you attempt to apply the update?

3. How was Heads initially flashed

4. Was the board flashed with a maximized or non-maximized/legacy rom?

5. If Heads was externally flashed, was IFD unlocked?

C. Identify the rom related to this bug report

1. Did you download or build the rom at issue in this bug report?

2. If you downloaded your rom, where did you get it from?

Please provide the release number or otherwise identify the rom downloaded

https://circleci.com/gh/linuxboot/heads/14178 ( x230-hotp-maximized_usb-kb of https://github.com/linuxboot/heads/commit/4a57c615e972149eefd52d95ba919ff54d53bb0a)

Please describe the problem

Describe the bug

HDMI output is not available on cold boot (no signal). Pressing ctrl+alt+delete usually fixes it.

To Reproduce Steps to reproduce the behavior:

  1. Connect HDMI output to the laptop (via miniDP->HDMI converter)
  2. Press power button

Expected behavior

Heads output on both internal screen and the external one.

Additional context

It wasn't a problem on a (much) older version - the one used for initial x230 Qubes OS certification.

I've tested also commit just before merging https://github.com/linuxboot/heads/pull/1522 and the issue happens there too.

tlaurion commented 9 months ago

@marmarek Do you see cbmem -1/dmesg differences between coldboot/warmboot?

You can easy export with usb thumb drive connected and

Definitely a coreboot issue here but if we can see something different there then a proper upstream linked bug report might lead to resolving the issue here (again coreboot upstream is 4.22 and version used here 4.19 because fhd patchset not merged upstream and used downstream... but that is different story)

tlaurion commented 9 months ago

@marmarek ping

marmarek commented 9 months ago

Logs here.

cbmem-cold.txt cbmem-warm.txt dmesg-cold.txt dmesg-warm.txt

I don't see much difference besides indeed coreboot log says HDMI is disabled on cold boot. BTW, after warm reboot Linux says input: AT Translated Set 2, while after cold boot it's input: AT Raw Set 2 keyboard - related to https://github.com/linuxboot/heads/issues/958 ? Note, I stopped at Heads here (collected logs from recovery shell), Qubes (or any other OS) was not started between reboots.