<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo" -->

---
title: Black screen after Secure Boot: option ROM hashes with sbctl
description: After lanzaboote enrolled personal Secure Boot keys on a Lenovo ThinkStation P620, the machine went to a black screen before the OS loaded because firmware...
canonical: https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Black screen after Secure Boot: option ROM hashes with sbctl | daily.dev
og:description: After lanzaboote enrolled personal Secure Boot keys on a Lenovo ThinkStation P620, the machine went to a black screen before the OS loaded because firmware...
og:url: https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo
og:image: https://api.daily.dev/og/posts/wJ2qsBmLO.png
og:image:alt: Black screen after Secure Boot: option ROM hashes with sbctl
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Black screen after Secure Boot: option ROM hashes with sbctl

**[/dev/io](https://daily.dev/sources/iodev)** · 6 min read · 0 upvotes · 1 comments

## Summary

After lanzaboote enrolled personal Secure Boot keys on a Lenovo ThinkStation P620, the machine went to a black screen before the OS loaded because firmware refused to run the AMD Radeon PRO W6600's option ROM, which requires the GOP driver for firmware logo, BIOS setup and boot menu display. Since the workstation's Threadripper Pro CPU has no integrated graphics, there was no fallback display to disable Secure Boot through the UI, and Lenovo's think-lmi WMI interface blocks disabling Secure Boot via software. The fix involved briefly disabling Secure Boot for one boot to get the option ROM measured into the TPM event log, then using sbctl enroll-keys --tpm-eventlog to add the ROM's SHA-256 hashes to db, avoiding the need to trust Microsoft's CA keys. Because efivarfs marked db as immutable, the hashes were written into systemd-boot's auto-enrollment auth files instead. PCR 2 matched the value from the Secure-Boot-off boot, confirming the same images loaded with enforcement on. Caveats include needing to redo the process after a VBIOS update or GPU swap, and that changing db alters PCR 7, invalidating anything sealed to it.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.iodev.org/blog/secure-boot-black-screen-option-rom-hashes>

## Questions this post answers

### Why does my screen go black after enabling Secure Boot with my own keys on a machine with no integrated GPU?

The firmware is rejecting the discrete GPU's option ROM because Secure Boot verifies every EFI image, including PCI option ROMs, against certificates or hashes in the db variable. If only a custom certificate was enrolled and not the GPU vendor's signing key, the ROM fails verification and the GOP driver never runs, so no firmware logo, BIOS setup, or boot menu appears until the OS's own driver takes over.

_Anyone hitting boot-time GPU driver failures after a security change can compare notes on daily.dev._

### How do I add a GPU option ROM hash to Secure Boot db using sbctl without using Microsoft's keys?

Run sbctl enroll-keys --tpm-eventlog to read the TPM event log at /sys/kernel/security/tpm0/binary_bios_measurements and add each option ROM's measured SHA-256 digest as a hash entry in db. This requires the ROM to have already run once with Secure Boot off so it gets measured into PCR 2 first; otherwise no EV_EFI_BOOT_SERVICES_DRIVER events exist to read.

_Developers wiring up custom Secure Boot trust chains can trade practical fixes like this on daily.dev._

### Why can't I disable Secure Boot on a Lenovo ThinkStation using the think-lmi WMI driver?

Lenovo's ThinkLMI interface explicitly excludes the SecureBoot attribute from settings that can be changed from Enable to Disable through sysfs, per Lenovo's own ThinkLMI documentation, even when no supervisor password is set. The only way to toggle it off is through the BIOS setup UI, which is unusable here since the GPU providing that display is the very device blocked by Secure Boot.

_Sysadmins fighting vendor firmware restrictions can share workarounds like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@kcinimoddefensec** · 0 upvotes

> Thank you. I faced this issue years ago and managed to soft-brick my P620 within 5 minutes after arrival. Back then there was no way to recover from this other than, I suppose, removing the PK.auth at runtime but I believe current UEFI will reset the whole thing when you reset using the jumpers too. Now to figure out how to do this without sbctl because Debian does not package it. I've been told that mokutil should also be able to do it.

## Similar posts on daily.dev

- [3mdeb Keeps Making Progress On Their Coreboot \+ AMD openSIL Port To Ryzen MSI Board](https://daily.dev/posts/3mdeb-keeps-making-progress-on-their-coreboot-amd-opensil-port-to-ryzen-msi-board-a0qpgqwg3) · Phoronix · 0 upvotes · 0 comments
- [I ported Coreboot to the Thinkpad X270\!](https://daily.dev/posts/i-ported-coreboot-to-the-thinkpad-x270--4u0sx2qoj) · Hacker News · 1 upvotes · 1 comments
- [Wait is over - coreboot on the AMD StarBook](https://daily.dev/posts/wait-is-over---coreboot-on-the-amd-starbook-dfalwv26g) · Lobsters · 0 upvotes · 0 comments
- [I always disable this one feature in every UEFI / BIOS](https://daily.dev/posts/i-always-disable-this-one-feature-in-every-uefi-bios-fke837jjx) · XDA Developers · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#linux](https://daily.dev/tags/linux), [#nixos](https://daily.dev/tags/nixos)

[View this post on daily.dev](https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Black screen after Secure Boot: option ROM hashes with sbctl","url":"https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo"},"datePublished":"2026-09-18T23:31:52.869Z","dateModified":"2026-09-18T23:32:18.435Z","description":"After lanzaboote enrolled personal Secure Boot keys on a Lenovo ThinkStation P620, the machine went to a black screen before the OS loaded because firmware...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6df7e5cd56466b9b9ce48210e3630fed?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6df7e5cd56466b9b9ce48210e3630fed?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"/dev/io","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"/dev/io","logo":"https://media.daily.dev/image/upload/s--xOsuFPZX--/f_auto,q_auto/v1777801594/logos/iodev","url":"https://daily.dev/sources/iodev"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"security,linux,nixos","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"/dev/io","item":"https://daily.dev/sources/iodev"},{"@type":"ListItem","position":3,"name":"Black screen after Secure Boot: option ROM hashes with sbctl"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo","comment":[{"@type":"Comment","text":"Thank you. I faced this issue years ago and managed to soft-brick my P620 within 5 minutes after arrival. Back then there was no way to recover from this other than, I suppose, removing the PK.auth at runtime but I believe current UEFI will reset the whole thing when you reset using the jumpers too. Now to figure out how to do this without sbctl because Debian does not package it. I’ve been told that mokutil should also be able to do it.","datePublished":"2026-10-21T11:31:27.431Z","url":"https://daily.dev/posts/wJ2qsBmLO#c-JFgWFFE3x","author":{"@type":"Person","name":"kcinimod-defensec","url":"https://daily.dev/kcinimoddefensec","image":"https://avatars.githubusercontent.com/u/243519732?v=4"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/black-screen-after-secure-boot-option-rom-hashes-with-sbctl-wj2qsbmlo#faq","mainEntity":[{"@type":"Question","name":"Why does my screen go black after enabling Secure Boot with my own keys on a machine with no integrated GPU?","acceptedAnswer":{"@type":"Answer","text":"The firmware is rejecting the discrete GPU's option ROM because Secure Boot verifies every EFI image, including PCI option ROMs, against certificates or hashes in the db variable. If only a custom certificate was enrolled and not the GPU vendor's signing key, the ROM fails verification and the GOP driver never runs, so no firmware logo, BIOS setup, or boot menu appears until the OS's own driver takes over. Anyone hitting boot-time GPU driver failures after a security change can compare notes on daily.dev."}},{"@type":"Question","name":"How do I add a GPU option ROM hash to Secure Boot db using sbctl without using Microsoft's keys?","acceptedAnswer":{"@type":"Answer","text":"Run sbctl enroll-keys --tpm-eventlog to read the TPM event log at /sys/kernel/security/tpm0/binary_bios_measurements and add each option ROM's measured SHA-256 digest as a hash entry in db. This requires the ROM to have already run once with Secure Boot off so it gets measured into PCR 2 first; otherwise no EV_EFI_BOOT_SERVICES_DRIVER events exist to read. Developers wiring up custom Secure Boot trust chains can trade practical fixes like this on daily.dev."}},{"@type":"Question","name":"Why can't I disable Secure Boot on a Lenovo ThinkStation using the think-lmi WMI driver?","acceptedAnswer":{"@type":"Answer","text":"Lenovo's ThinkLMI interface explicitly excludes the SecureBoot attribute from settings that can be changed from Enable to Disable through sysfs, per Lenovo's own ThinkLMI documentation, even when no supervisor password is set. The only way to toggle it off is through the BIOS setup UI, which is unusable here since the GPU providing that display is the very device blocked by Secure Boot. Sysadmins fighting vendor firmware restrictions can share workarounds like this on daily.dev."}}]}
```

