光标随着 xrandr 缩放而闪烁

sta*_*rdt 17 fedora x11 xrandr multi-monitor

对我的 1920x1080 外部屏幕上不合理的大文本感到不满,我的 1920x1080 外部屏幕连接到 Fedora 24 中具有 3200x1800 显示器的笔记本电脑,我尝试使用以下方法重新缩放外部屏幕:

xrandr --output HDMI-2 --scale 2x2 --mode 1920x1080 --fb 7040x2160 --pos 0x0
xrandr --output eDP-1 --scale 1x1 --pos 3840x0
Run Code Online (Sandbox Code Playgroud)

这具有预期的效果,但是当我在笔记本电脑屏幕上移动鼠标时,它会导致光标闪烁。光标在外屏时不闪烁。当我在外部屏幕上恢复为 1x1 缩放时,闪烁停止:

xrandr --output HDMI-2 --scale 1x1 --mode 1920x1080 --fb 4120x1800 --pos 0x0
xrandr --output eDP-1 --scale 1x1 --pos 1920x0
Run Code Online (Sandbox Code Playgroud)

我怎样才能阻止这种闪烁?

jad*_*ord 15

这个解决方法帮助了我。我现在要做的是在执行 xrandr 缩放后,运行一个额外的命令来停止鼠标闪烁。

xrandr --output eDP-1 --auto --output HDMI-2 --auto --scale 2x2 --right-of eDP-1  # Simpler oneliner scaling
xrandr --output eDP-1 --scale 0.9999x0.9999  # Stop flicker
Run Code Online (Sandbox Code Playgroud)


小智 9

在使用 xrandr 缩放后,我遇到了确切的问题,尽管设置略有不同。奇怪的是,帮助的是https://wiki.archlinux.org/index.php/intel_graphics#Xorg_configuration的第一部分。即,

“但是,要利用某些驱动程序选项,您需要创建一个类似于下面的 Xorg 配置文件:”

/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
EndSection
Run Code Online (Sandbox Code Playgroud)

这可能仅在您在 Intel 显卡上运行(而不是在专用 GPU 上)时才相关

  • 在 Ubuntu 中为我工作,但是要创建的相关文件是 /usr/share/X11/xorg.conf.d/20-intel.conf (3认同)