Skip to main content

Weird green and blue artifacts after opening and closing laptop lid

OS: Fedora 40 (Gnome)

Hardware: Asus ROG Laptop, NVIDIA graphics

Issue:

Was trying to get my laptop to "ignore" on lid switch status. However, after editing the logind.conf, when I would close and open my laptop lid, the screen would go black and there were weird artifacts. The computer was unresponsive. No clicking or pressing of any keys would get it to go back to the login screen. Only a hard reset would work.

Solution:

Found on: https://discussion.fedoraproject.org/t/black-screen-after-fresh-install-of-f39/108675/2

  1. Change the boot setting
    • Boot into boot menu
    • Press the e key
    • On the line that begins with linux add nomodeset at the end of the line
  2. Install NVIDIA drivers
    • sudo dnf install akmods
  3. Enroll the akmod
    • Boot into the firmware menu
    • Enable secure boot
    • Read through /usr/share/doc/akmods/README.secureboot
      • All mokutils calls need to be run as sudo
      • Run /usr/sbin/kmodgenca to generate certificate
        • Should be in the directories /etc/pki/akmods/certs and /etc/pki/akmods/private/
      • Run sudo mokutil --import /etc/pki/akmods/certs/public_key.der
      • Reboot
      • Enroll the MOK
      • Confirm it was enrolled
        • sudo mokutil --test-key /etc/pki/akmods/certs/public_key.der