tg-me.com/archlinuxcn/208
Last Update:
xorg-server 21.1.1-2 的 DPI 变化
xorg-server 21.1.1-2 更新已进入 [extra] , 一项用户可见的变化是修正了自动检测屏幕DPI相关的逻辑,原本部分显示器不能正确报告 DPI 的情况下使用默认 96 DPI,修正后会默认检测并使用正确的显示器 DPI 了。此次变更的可见效果之一是如果没有设置过 DPI 可能导致在一部分较高 DPI 的硬件上显示 GUI 组件比原本更大。由于本次变更的可见效果对用户影响较大,上游和 testing/xorg-server 21.1.1-3 正在考虑撤销这个变化。如果您更新后遇到组件元素过大,alacritty 等 winit 程序不能正确放大窗口,之类的问题,可以尝试通过以下方案回到以前的 DPI 设置:
1. 修改 Display Manager 比如 sddm 启动 Xorg 的默认 DPI 到 96。参考 https://www.tg-me.com/us/Arch Linux Chinese Messages/com.archlinuxcn_group/2149313
2. 修改桌面环境比如 KDE 的字体设置,强制使用固定的 96 DPI。 参考 https://www.tg-me.com/us/Arch Linux Chinese Messages/com.archlinuxcn_group/2150809
3. 修改 ~/.Xresource 中的 Xft.dpi 使用 96 DPI。参考 https://wiki.archlinux.org/title/HiDPI#X_Resources
4. 耐心等待 xorg-server 21.1.1-3 从 testing 进入 extra
5. 考虑回滚 xorg-server 相关包到 21.1.0 (有一定风险)
Gnome 不受本次变化影响,KDE 环境另可参考 archwiki HiDPI 页 ,其余 WM 用户可参考 HiDPI#X_Resources。
Arch Linux bug: https://bugs.archlinux.org/task/72661
xorg-server bug: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1241
BY Arch Linux Chinese Messages
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/archlinuxcn/208