全屏游戏弄乱了我的 xrandr 双显示器设置

kol*_*bos 5 drivers window-manager xrandr tiling-wm

我有 Gentoo Linux、Awesome 窗口管理器和开源 ATI 驱动程序。

这是我的 xorg.conf:

Section "Files"
        #ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
        FontPath     "/usr/share/fonts/terminus"
EndSection

Section "ServerLayout"
  Identifier     "My X Server"
  Screen 0 "Screen0" 0 0
EndSection

Section "Monitor"
        #DisplaySize      510   290     # mm
        Identifier   "LeftMonitor"
        VendorName   "DEL"
        ModelName    "DELL U2311H"
        HorizSync    30.0 - 83.0
        VertRefresh  56.0 - 76.0
        Option      "DPMS"
        Option         "PreferredMode"  "1920x1080"
EndSection

Section "Monitor"
        #DisplaySize      380   300     # mm
        Identifier   "RightMonitor"
        VendorName   "SAM"
        ModelName    "SyncMaster"
        HorizSync    30.0 - 81.0
        VertRefresh  56.0 - 75.0
        Option      "DPMS"
        Option         "PreferredMode"  "1280x1024"
EndSection

Section "Device"
  Identifier  "Card0"
  Driver      "radeon"
  VendorName  "ATI Technologies Inc"
  BoardName   "Mobilitiy Radeon HD 3600 Series"
  BusID       "PCI:4:0:0"
  #Option "AccelMethod" "EXA"
  Option         "monitor-HDMI-0" "RightMonitor"
  Option         "monitor-DVI-0" "LeftMonitor"
EndSection

Section "Screen"
  Identifier   "Screen0"
  Device       "Card0"
  Monitor      "LeftMonitor"
  DefaultDepth 24
  SubSection "Display"
        Depth     24
        Modes           "1920x1080" "1280x1024"
        Virtual     3200 1080
  EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud)

xrandr --output HDMI-0 --mode 1280x1024 --right-of DVI-0在系统启动时启用右侧的监视器。

好东西,它有效。
的事情,海拔游戏打破它。主(左)显示器失去信号,我无法重新启用它(而游戏本身在右屏幕上以全屏模式愉快地运行)。

在窗口模式 (1024x768) 以及所有其他应用程序(全屏 Flash、VLC 等)下都没有问题,但是当我尝试将游戏中的分辨率更改为 1280x1024 时,它会以与全屏相同的方式中断。

有任何想法吗?

编辑:当我关闭游戏时它也会中断。啊!

Edit2:可能与此错误有关

Edit3: 与 Nimbly Games(Altitude 的创造者)的人一起调查这种奇怪的行为。他们实际上在游戏退出时解决了这个问题,所以我现在至少可以在窗口模式下玩了。

至于全屏模式,我认为这是 xrandr 或不稳定的开源 radeon R600 驱动程序中某个地方的问题,因此当 Altitude 进入全屏模式/尝试更改分辨率时,Awesome(窗口管理器)实际上会重新启动。

kol*_*bos 4

弄清楚了。

我应该和xrandr --output HDMI-0 --mode 1280x1024 --right-of DVI-0一起跑sudo
这样,普通应用程序就无法访问 Randr 的设置(分辨率等),因此不会破坏任何内容。

编辑:实际上,它只对一款游戏(Osmos)有帮助。对于其他人来说,显示器仍然失去信号,但我至少可以xrandr再次运行来恢复它。