gpt4 book ai didi

linux - 在wayland 中设置虚拟分辨率

转载 作者:行者123 更新时间:2023-12-04 19:47:37 27 4
gpt4 key购买 nike

是否可以设置屏幕的虚拟分辨率,这意味着将其分辨率提高到正常分辨率之上(例如,我有一个 1920x1080 的屏幕,我可以像使用 3640x2160 的屏幕一样使用它)?
使用 X 很容易,只是 xrandr --scale 2x2,但是使用 Wayland 我似乎无法找到一种方法来做到这一点......

这将是建立一个多屏环境,一个好屏和一个坏屏,我需要将坏屏的分辨率提高一倍,以使两个屏幕上的窗口大小相同,这是我的目标。
我在某处阅读了有关多屏幕缩放的内容,但无法提供更多有关

感谢您的帮助

最佳答案

如果您使用的是 weston 合成器,那么您可以在 [输出] 部分下的 weston.ini 文件中指定“比例”因子,请参阅此处 http://manpages.ubuntu.com/manpages/bionic/man5/weston.ini.5.html

scale=factor

The scaling multiplier applied to the entire output, in support of high resolution("HiDPI" or "retina") displays, that roughly corresponds to the pixel ratio of the display's physical resolution to the logical resolution. Applications that do not support high resolution displays typically appear tiny and unreadable. Weston will scale the output of such applications by this multiplier, to make them readable.Applications that do support their own output scaling can draw their content in high resolution, in which case they avoid compositor scaling. Weston will not scale the output of such applications, and they are not affected by this multiplier. An integer, 1 by default, typically configured as 2 or higher when needed, denoting the scaling multiplier for the output.

关于linux - 在wayland 中设置虚拟分辨率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43020397/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com