Back to Engineering Blog
Engineering Field Notes 3 min read

A Black Panel After Wake: Discrete GPU Mode and a Driver Fix

A Kali laptop woke to a backlit panel with no pixels, even on the text consoles. We reproduced it on two kernels, ruled out a kernel regression and a suspend bug, formed a GPU-mode hypothesis, and ended up fixing it with the proprietary driver.

Jason NevillBy , Houston, TX
#Linux#NVIDIA#Debugging#BIOS

Key Architectural Takeaways

  • Reproduce on demand before theorising; forcing DPMS off with no input reproduced the bug exactly.
  • A matching result on two kernels rules out a kernel regression.
  • Invalidate your own tests: a mouse jiggler resets the idle timer and ruins a power-management test.

The symptom

The Kali workstation, the same laptop we had put through the rEFInd triple-boot, sometimes woke from screen blank to a backlit panel showing nothing. The text consoles were black too, dmesg was silent, and xrandr, DPMS and backlight all reported the panel as on.

Reproducing it

We forced it: xset dpms force off with no input, then a key press. The panel lit, with no pixels. Toggling xrandr off and on, nudging the backlight and switching virtual terminals all failed to recover it. Identical behaviour on kernels 7.1.5 and 6.19.14 meant it was not a kernel regression.

Wrong theories

  • A suspend problem. The log we first suspected showed no suspend at all. This was screen DPMS blanking, not system suspend.
  • Our own test. A mouse jiggler had been resetting the idle timer and woke the machine instantly, so our first two tests proved nothing. The jiggler has to be off for DPMS tests.

The hypothesis

lspci listed only the discrete RTX 3070 and no integrated AMD graphics, so the BIOS was in Discrete GPU mode, with the open-source nouveau driver driving the internal panel directly. Our strong but unproven hypothesis: nouveau on this Ampere GPU does not retrain the eDP link after DPMS off. The plan was to switch the BIOS to Hybrid, which is machine-wide and so also affects Windows and Omarchy. The risk we flagged: a Lenovo BIOS save can drop NVRAM boot entries, so we planned to check efibootmgr afterwards.

What actually fixed it

Before the BIOS test, the proprietary NVIDIA driver looked blocked: the Kali repository carried only one driver build, kernel headers for our two kernels had been removed, and that driver was unlikely to build on a 7.x kernel anyway. By the time the machine was next looked at, it was running the newer 7.2.15 kernel with the NVIDIA 550 driver loaded, the GPU bound to nvidia, and the black-screen resume fixed. lspci still showed only the NVIDIA GPU, so the BIOS may still have been in Discrete mode. The fix came from the proprietary driver, not from Hybrid mode. So our hypothesis about the root cause was plausible but not confirmed.

Loose ends we recorded

The inventory still carried the old address and a stale "no NVIDIA driver" comment, and the laptop had moved address under DHCP, so a reservation was needed.

Takeaway

Reproduce first, vary one thing at a time, and be honest when the fix works for a reason other than the one you hypothesised.

Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.