使用xrandr配置屏幕
这是一个使用xrandr的脚本,用于修改一个显示器以使用分数缩放,而主显示器不进行缩放。将其拿来并根据您的需求进行修改。
xrandr --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-1-1 --off --output DP-1-2 --off # --output eDP-1 --off --output DP-1-3 --off
echo "turned off all displays except eDP-1 DP-1-3"
xrandr --output eDP-1 --mode 2560x1440 --pos 0x300 --scale 0.7x0.7
echo "Updating on eDP-1"
xrandr --output DP-1-3 --mode 2560x1440 --pos 2560x0 --primary
echo "Updating on DP-1-3"
修复鼠标闪烁问题
关于闪烁问题,这是xorg的一个已知问题。有一个待解决的问题等待修复此bug:https://gitlab.freedesktop.org/xorg/xserver/issues/70
解决方法是将非缩放显示设置为0.9999x0.9999
,这不会对显示的缩放造成明显差异,但据我所知,可能会导致一些延迟和屏幕撕裂。
应用了鼠标闪烁解决方法的示例xrandr配置脚本
xrandr --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-1-1 --off --output DP-1-2 --off # --output eDP-1 --off --output DP-1-3 --off
echo "turned off all displays except eDP-1 DP-1-3"
xrandr --output eDP-1 --mode 2560x1440 --pos 0x300 --scale 0.7x0.7
echo "Updating on eDP-1"
xrandr --output DP-1-3 --mode 2560x1440 --pos 2560x0 --primary --scale 0.9999x0.9999 #Scale added her to fix mouse flicker bug https://gitlab.freedesktop.org/xorg/xserver/issues/70
echo "Updating on DP-1-3"