升级Ubuntu 22.04后登录时屏幕黑屏的问题求助
Hey there, sorry to hear you're stuck with this annoying black screen issue after upgrading your Lenovo ThinkPad P15s to Ubuntu 22.04—total bummer, right? Let's walk through some straightforward, tried-and-true fixes that have worked for plenty of folks with similar hardware and problems:
Fix 1: Repair Display Drivers (Most Common Culprit)
ThinkPads often run into driver compatibility snags after major Ubuntu upgrades, especially if you’re using proprietary graphics drivers. Here’s what to do:- When you hit the blank screen at the login prompt, press
Ctrl + Alt + F3to switch to a text-only terminal (TTY3). Log in with your username and password. - First, refresh your package list:
sudo apt update - If you had NVIDIA proprietary drivers installed, purge them completely:
sudo apt purge nvidia* - Install Ubuntu’s default open-source drivers that play nice with ThinkPad hardware:
sudo apt install xserver-xorg-video-intel mesa-vulkan-drivers - Reboot your system:
sudo reboot
This should resolve most display-related black screen issues.
- When you hit the blank screen at the login prompt, press
Fix 2: Reset the GDM Login Manager
Sometimes the GNOME Display Manager (GDM) gets corrupted during the upgrade, causing login failures. Let’s reset it:- Switch to TTY3 as before and log in.
- Stop the GDM service first:
sudo systemctl stop gdm - Reconfigure GDM to reset its settings:
sudo dpkg-reconfigure gdm - Restart GDM (or just reboot):
sudo systemctl start gdm
You should see the login screen pop back up normally.
Fix 3: Roll Back to a Stable Kernel
If the new kernel included in the 22.04 upgrade is conflicting with your ThinkPad’s hardware, rolling back to an older, working kernel is a quick fix:- Reboot your computer and hold the Shift key to bring up the GRUB menu.
- Select "Advanced options for Ubuntu" > choose the older kernel version that worked before your system restore (you’ll see version numbers like 5.15.x).
- Once logged in, list all installed kernels to identify the problematic one:
dpkg --list | grep linux-image - Uninstall the faulty new kernel (replace
<version-number>with the actual version):sudo apt remove linux-image-<version-number>-generic linux-headers-<version-number>-generic - Now your system will default to the stable old kernel on reboot—you can wait for Ubuntu to push a fixed kernel update before trying again.
A quick heads-up: Before you start any fixes, make sure your important files are backed up (you can do this when you’re able to log in after system restore) just to be safe.
备注:内容来源于stack exchange,提问作者Walrus4786

