Fedora 25、Wayland 和 HiDPI 显示

Seb*_*ann 4 fedora wayland

我刚刚将 ThinkPad T560 从 Fedora 24 升级到 Fedora 25。

在 Fedora 24 上,我使用了以下命令:

$ xrandr --output eDP-1 --scale 1.25x1.25
$ xrandr --output eDP-1 --panning 3600x2025
Run Code Online (Sandbox Code Playgroud)

设置适当的缩放比例。这些命令不再适用于 Fedora 25:

$ xrandr --output eDP-1 --scale 1.25x1.25
warning: output eDP-1 not found; ignoring
Run Code Online (Sandbox Code Playgroud)

显然,显示标识符现在是XWAYLAND0eDP-1不再是):

$ xrandr -q
Screen 0: minimum 320 x 200, current 2880 x 1620, maximum 8192 x 8192
XWAYLAND0 connected 2880x1620+0+0 340mm x 190mm
   2880x1620     59.92*+
Run Code Online (Sandbox Code Playgroud)

但是,在旧命令中使用这个新标识符也不起作用:

$ xrandr --output XWAYLAND0 --scale 1.25x1.25
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  26 (RRSetCrtcTransform)
  Value in failed request:  0x20
  Serial number of failed request:  22
  Current serial number in output stream:  23
Run Code Online (Sandbox Code Playgroud)

作为短期解决方案,我在登录时选择“Xorg 上的 GNOME”。然后我可以xrandr像以前一样使用上面显示的命令。

有人可以指点我在 Fedora 25 上正确设置 HiDPI 显示的方法吗?

mat*_*tdm 5

Wayland 上的 GNOME Shell——Fedora 25 Workstation 使用的——不支持非整数缩放因子。有一些初步的工作,但还没有决定;现在,您已经选择的解决方法(回退到 X11)是正确的。

或者,您可以选择一个整数比例因子,然后使用调整工具更改字体大小以提高可读性。当然,这不会缩放非文本元素,但它提供了更多的灵活性(和可读性)。