Fix Black Screen After Login on Linux (Cursor Only)
You log in, screen goes black with only a cursor. It's frustrating but usually fixable. Here's how to get your desktop back fast.
Quick Fix (30 Seconds): Switch to a Different TTY
Okay, you're staring at a black screen with just a blinking cursor. I've been there, and it makes you want to throw your laptop. But first, take a breath.
Press Ctrl + Alt + F2 (or F3 through F6 on some systems). This switches you to a text-based terminal. If you see a login prompt, you're in luck — your system is alive, just the graphical desktop crashed.
Log in with your username and password. Once you're in, try restarting the display manager:
sudo systemctl restart gdm3 # for GNOME/Ubuntu
sudo systemctl restart sddm # for KDE
sudo systemctl restart lightdm # for lighter desktops
If that doesn't work, go back to text mode and try startx — sometimes it kickstarts the GUI. If you see errors, note them. This tripped me up the first time too — the terminal is your best friend here.
Moderate Fix (5 Minutes): Reset Your Desktop Environment
If the quick fix didn't work, your desktop environment files might be corrupted. This usually happens after a bad update or a crash. Here's what to do:
- Switch to a TTY (same as above, Ctrl+Alt+F2).
- Back up and delete your user config (don't worry, you can restore it):
cd ~/.config
mv dconf dconf.bak
mv gnome gnome.bak # or 'plasma' for KDE
mv kde kde.bak
- Reinstall your desktop (if you're on Ubuntu/Debian):
sudo apt update
sudo apt install --reinstall ubuntu-desktop # for Ubuntu
sudo dnf reinstall @kde-desktop # for Fedora/KDE
This replaces missing or broken files. If you're using a custom theme, it might reset to default, but you can change it back later.
Check for Wayland vs Xorg Issues
A common cause is Wayland not playing nice with your graphics card. If you recently switched to Wayland, try switching back to Xorg at the login screen. Can't see the login screen? In TTY, run:
sudo nano /etc/gdm3/custom.conf # for GNOME
# Uncomment the line: WaylandEnable=false
Save with Ctrl+O, exit with Ctrl+X, then restart the display manager: sudo systemctl restart gdm3. This forced Xorg and fixed the black screen for many people.
Advanced Fix (15+ Minutes): Graphics Driver Problems
If the above didn't help, you likely have a graphics driver issue. This is especially common with NVIDIA cards after a kernel update.
Step 1: Check Which Graphics Driver Is Loaded
In TTY, run:
lspci -k | grep -A 2 -E "VGA|3D"
Look for the driver name (like nvidia or nouveau). If it says nouveau and you have an NVIDIA card, that's likely the culprit — nouveau is the open-source driver that can be buggy.
Step 2: Install or Reinstall the Proprietary Driver
For Ubuntu/Debian:
sudo apt purge nvidia-* # removes all NVIDIA packages
sudo ubuntu-drivers autoinstall # picks the right driver
sudo reboot
For Fedora:
sudo dnf remove akmod-nvidia xorg-x11-drv-nvidia
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia
sudo akmods --force
sudo reboot
Step 3: Boot Into Recovery Mode (Nuclear Option)
If you can't even get to a TTY, restart your computer and hold Shift (or spam Esc on some systems) to get the GRUB menu. Choose Advanced options, then Recovery mode. From there:
- Select root (drops you to a root shell).
- Run
fsck -y /dev/sda1(replace sda1 with your root partition — you can find it withlsblk). This checks for disk errors that can cause black screens. - Then try
dpkg --configure -ato fix broken packages.
Step 4: Check Kernel Parameters
Sometimes the kernel's mode-setting (KMS) conflicts with the display. In recovery mode (or from a live USB), edit the GRUB file:
sudo nano /etc/default/grub
# Change the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# To: GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet"
Then run sudo update-grub and reboot. The nomodeset parameter disables kernel mode-setting and can get you to a working desktop, though at lower resolution.
When All Else Fails: Last Resort
If you've tried everything and still see a black screen, your disk might be failing or your graphics card is dying. Boot from a live USB (Ubuntu or Fedora). If the live session works fine, the problem is in your installed system — you can copy your files out and reinstall fresh. If the live session also shows a black screen, it's hardware.
I once spent three hours on this exact problem, only to find out my NVIDIA card had a loose connection. Sometimes the fix is simpler than you think. Good luck!
Was this solution helpful?