我有一台 ThinkPad X1 Yoga(第二代),在运行 Ubuntu 17.04 时,我可以像这样更改亮度:
$ xrandr --output eDP-1 --brightness .7
现在,当我在 17.10 下这样做时,我得到了:
warning: output eDP-1 not found; ignoring
xrandr: Need crtc to set gamma on.
当我点击亮度上下按钮时,我看到此文件中的数值正确更改:
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness
但是 xrandr 报告了一个新标签:
$ xrandr -q
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
XWAYLAND0 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 180mm
2560x1440 59.96*+
我尝试用 XWAYLAND0 替换 eDP-1,但它返回 0 且没有错误,亮度也没有任何变化。
$ xrandr --output XWAYLAND0 --brightness 0.5
$ echo $?
0
希望获得一些帮助以使亮度设置再次正常工作。现在它一直处于全亮度状态,这对电池来说并不是很好。