华为Matebook E 2021安装Ubuntu 22.04后屏幕显示异常求助
Hey there, sorry to hear you're stuck with this screen misalignment and flickering issue on your Huawei Matebook E 2021 after setting up Ubuntu 22.04. Given your 11th-gen Intel Xe integrated GPU, here are some targeted fixes that have resolved similar problems for other users:
1. Update to the Hardware Enablement (HWE) Kernel
Ubuntu 22.04's default kernel might lack full support for newer 11th-gen Intel graphics. The HWE kernel brings updated hardware drivers and bug fixes tailored for newer devices:
- Open a terminal and run these commands:
sudo apt update && sudo apt upgrade -y sudo apt install --install-recommends linux-generic-hwe-22.04 -y - Reboot your laptop once the installation completes.
2. Tweak GRUB Boot Parameters for Intel GPU
Flickering and screen misalignment often tie to Intel's Power Saving Refresh (PSR) feature or unrecognized display settings. Let's adjust the GRUB config to address this:
- Open the GRUB configuration file with a text editor:
sudo nano /etc/default/grub - Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULTand modify it to include these parameters:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0 video=eDP-1:1920x1200@60"i915.enable_psr=0disables PSR, a common culprit behind screen flickering on Intel Xe GPUs.video=eDP-1:1920x1200@60forces your display to use its native resolution and refresh rate (adjust the resolution value if your screen has a different spec).
- Save the file (press
Ctrl+O, then hitEnter) and exit nano (Ctrl+X). - Update GRUB to apply the changes:
sudo update-grub - Reboot your laptop to let the new settings take effect.
3. Manually Adjust Display Position
If the screen is still offset, you can use xrandr to fix the alignment:
- First, identify your internal display name by running:
Look for a line starting withxrandreDP-1(this is typically the built-in screen on laptops). - Then, set the display position to the top-left corner with:
xrandr --output eDP-1 --pos 0x0 - To make this change permanent, add the command to your startup applications: search for "Startup Applications" in Ubuntu's app menu, create a new entry, and paste the
xrandrcommand into it.
4. Reinstall Intel Graphics Drivers
Corrupted or missing graphics drivers can sometimes cause display glitches. Reinstall the official Intel drivers:
- Run this command in the terminal:
sudo apt install --reinstall xserver-xorg-video-intel xserver-xorg-core -y - Reboot your laptop after the reinstallation finishes.
If none of these steps work, you can also check for firmware updates—Ubuntu 22.04 includes fwupd by default. Run sudo fwupdmgr refresh && sudo fwupdmgr update to scan for and install hardware firmware patches that might resolve the issue.
备注:内容来源于stack exchange,提问作者chafi




