HiDPI的屏幕分辨率缩放必须进入系统后才能有效果,登录界面还是原始的屏幕分辨率,可以通过更改Xorg进行设置
进入/etc/X11/xorg.conf.d/文件夹
创建配置文件10-headless.conf
终端执行cvt 1920 1080
Modeline “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
输入配置
Section “Monitor”
Identifier “Screen0_Monitor”
Modeline “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
EndSection
Section “Device”
Identifier “Screen0_Device”
EndSection
Section “Screen”
Identifier “Screen0_Screen”
Device “Screen0_Device ”
Monitor “Screen0_Monitor”
SubSection “Display”
Modes “1920x1080_60.00”
EndSubSection
EndSection
保存后重启即可
参考资料:https://segmentfault.com/a/1190000004510095