Ubuntu 24.04 Black Screen Laptop Lid Issue [Solved]

Immediate Fix (Method 1): Modify Systemd Login Configuration

The most effective way to resolve the black screen issue when closing or opening your laptop lid in Ubuntu 24.04 is by modifying the logind.conf file. This prevents the system from entering a deep sleep state that the display driver cannot recover from.

To apply this fix, open your terminal and run the following command:

sudo nano /etc/systemd/logind.conf

Locate the line #HandleLidSwitch=suspend. Remove the # and change it to HandleLidSwitch=ignore or HandleLidSwitch=lock. Save the file by pressing CTRL+O and exit with CTRL+X.

Restart the systemd-logind service to apply the changes immediately:

sudo systemctl restart systemd-logind

Technical Explanation

Ubuntu 24.04 “Noble Numbat” utilizes the latest Linux Kernel and GNOME 46, which introduces stricter power management protocols. The “black screen” occurs because of a handshake failure between the ACPI (Advanced Configuration and Power Interface) and the video driver during the wake-up transition.

This issue is particularly prevalent on laptops using NVIDIA hybrid graphics or older Intel integrated chips. When the lid closes, the system sends a signal to kill the Xwayland or Wayland session buffer to save power, but it fails to re-initialize the frame buffer upon opening the lid.

Diagram showing Ubuntu 24.04 system settings and terminal commands to fix the laptop lid black screen error.

Component Probable Cause Impact
Kernel ACPI Incorrect power state transition System hangs on lid open
Display Driver Failure to re-sync video clock Black screen with backlight on
Wayland Session suspension error Unresponsive UI after resume

Alternative Methods

Method 2: Updating GRUB Kernel Parameters

If modifying the login configuration doesn’t work, the issue might lie in how the kernel handles video modeset. You can force the kernel to maintain video control by editing your GRUB configuration.

sudo nano /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Append nomodeset or button.lid_init_state=open to the parameters. It should look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash button.lid_init_state=open"

Update your GRUB and restart:

sudo update-grub && sudo reboot

Method 3: Switching from Wayland to Xorg

Ubuntu 24.04 defaults to the Wayland compositor, which still faces compatibility issues with certain laptop firmware. Switching to Xorg can often bypass lid-related display bugs entirely.

To switch, log out of your current session. On the login screen, click on your username, then look for the “cog” icon in the bottom right corner. Select “Ubuntu on Xorg” instead of the default option and log back in.