升级Ubuntu17.10后xrandr提示‘output eDP-1 not found’亮度无法调节
Let's break down why you're hitting this problem and walk through practical fixes step by step:
Root Cause
Ubuntu 17.10 switched to Wayland as the default display server (replacing Xorg). The xrandr tool is built for Xorg, so when you try using it with Wayland (where your display shows up as XWAYLAND0), it won't actually communicate with the hardware to adjust brightness—hence the "no error but no change" behavior. Also, while your brightness keys update the sysfs value, Wayland's compositor might not sync that change to the display hardware.
Solution 1: Switch Back to Xorg (Quickest Fix)
Wayland has better security but still has compatibility gaps with some ThinkPad hardware. Here's how to revert to Xorg:
- At the Ubuntu login screen, click the gear icon in the bottom-right corner.
- Select Ubuntu on Xorg from the dropdown menu.
- Log in as usual.
- Run
xrandr --listmonitors—you should seeeDP-1listed again. - Test your original brightness command:
xrandr --output eDP-1 --brightness 0.7
Your brightness should adjust normally now, and the hardware keys should work as expected too.
Solution 2: Fix Brightness Control in Wayland
If you want to stick with Wayland, try these steps to get brightness working:
- First, confirm the correct backlight device path. Run:
You'll likely seels /sys/class/backlight/intel_backlight(common for ThinkPads). - Check the maximum brightness value:
Let's say this returnscat /sys/class/backlight/intel_backlight/max_brightness1000—use a value between 1 and this number for adjustment. - Adjust brightness with sudo (sysfs files require root access):
Note: If your brightness keys update this file but the screen doesn't change, reload the backlight kernel module:sudo echo 500 > /sys/class/backlight/intel_backlight/brightnesssudo rmmod intel_backlight && sudo modprobe intel_backlight
Solution 3: Update GRUB Kernel Parameters (Persistent Hardware Compatibility Fix)
Some ThinkPads need specific kernel flags to handle brightness correctly. Here's how to set them:
- Open the GRUB configuration file:
sudo nano /etc/default/grub - Find the line starting with
GRUB_CMDLINE_LINUX_DEFAULTand add one of these flags inside the quotes:- For most ThinkPads:
acpi_backlight=vendor - If that fails, try:
acpi_backlight=native
Example modified line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" - For most ThinkPads:
- Save the file (Ctrl+O, then Enter) and exit nano (Ctrl+X).
- Update GRUB to apply changes:
sudo update-grub - Reboot your system and test brightness control again.
If none of these steps work, make sure your system is fully updated (run sudo apt update && sudo apt upgrade)—sometimes a kernel or display server patch fixes these compatibility quirks.
内容的提问来源于stack exchange,提问作者Jorvis

