Gue*_*OCs 5 video hdmi scaling display-resolution
如果我在 Ubuntu 20.04 上使用第二台显示器并且它具有高分辨率 (4K),则第一个屏幕会出现故障。经过多次尝试,我发现将其设置为 175% 的小数缩放,然后再次设置为 200% 将解决此问题,但是它会在屏幕休眠后返回
因此,我想要一种从命令行更改为 175% 然后更改为 200% 的方法,以便我可以将其自动转换为脚本
您也许可以使用比屏幕分辨率 GUI 更强大的工具来处理xrandr
此问题。请参阅,例如,显示器缩放无法正常工作。
在你的情况下,那就是
xrandr --output <out1> --scale 1.0x1.0 --output <out2> --scale 1.75x1.75
xrandr --output <out1> --scale 1.0x1.0 --output <out2> --scale 2.0x2.0
Run Code Online (Sandbox Code Playgroud)
请注意,您可能需要修改其他标志,例如--primary
, --mode
--pos
, --fb
。
小智 1
我找到了很酷的脚本生成器:HIDPI-Fixer:
该应用程序允许您创建一个完成以下任务的脚本:
- Allow fractional scaling of your display and its components in X11
- The end result looks nicer and is way less buggy than using Wayland
- The generated script is configured to run everytime you log in
- You can also instruct the application to modify the ~/.profile file to correctly scale Qt-based apps (as KDE does)
- Tested on GNOME, Deepin Desktop and KDE (you need to manualy set the scaling factor to 200% in Deepin and KDE)
Run Code Online (Sandbox Code Playgroud)
这对我有用。