コンテンツにスキップ
ライオットビット

ライオットビット

  • 家
  • ニュース
  • ガイド
  • ビデオガイド
  • パッチノート
  • 不正行為を報告する
  • 検索フォームを切り替え

ギャリーのモッド – How To Run Multiple Monitors Under X86-64 Linux Branch

ポストする 11/20/2022 に Lamarr コメントはありません の上 ギャリーのモッド – How To Run Multiple Monitors Under X86-64 Linux Branch
  • タイトル: ギャリーのモッド
  • 発売日: 11月 29, 2006
  • 開発者: フェイスパンチスタジオ
  • 出版社: バルブ

The current “x86_64 – Chromium + 64-bit binaries” branch of Garry’s Mod doesn’t manage multiple monitors correctly. This is a known issue, however it is not known when it will be offically resolved. This temporary fix disables and re-enables your non-primary monitors when launching the game as a work around for the issue.

Temporary fix

There are two components to this work around, creating a bash script to disable and reenable our monitors and patching this script into running when we launch Garry’s Mod.

初め, we will create our bash script. You can find an example script I made for myself, ここ.

Create a new bash script in a text editor of choice.

#! /bin/bash

We want to disable every monitor besides the one Garry’s Mod will run on, we can find out which monitors we have by running the following command in a terminal widnow.

xrandr -q

Take note of the name of every connected display which is not your primary display. 私の場合, I have one extra display connected by DisplayPort called DP-0. For every non-primary display, we want to add the following line to the bash script, replacing %displayname% with its name.

xrandr –output %displayname% –オフ

We then need to wait for the game to launch before re-enabling these displays. I am a novice at scripting, so adding a sleep command to the script for about the time it takes for the game to launch is fine. If your game takes an exceptionally long time to start loading you may have to increase this value.

sleep 15s

Then we want to re-enable the other displays. For every non-primary display, we want to add the following line to the bash script, replacing %displayname% with its name. We also want to give some arguments on how to position this display, play around with the -right-of, –left-of, –下に, と –その上 commands to your liking.

xrandr –output %displayname% –auto –right-of %primarydisplay%

Save the script and move it to your GarrysMod folder. You can quickly get there by right clicking on Garry’s Mod in your library and clicking on 管理, それから ローカルファイルを参照する.

You will need to make your script executable, either do this through your file manager or by opening a terminal and running the following, replacing %scriptname% with the script name.

chmod +x %scirptname%.sh

Finally we need to “パッチ” the execution of the game so it runs this script when we launch Garry’s Mod. The easiest way I’ve found to do this is by editing the hl2.sh launch script in the GarrysMod folder. You can find an example script I made for myself, ここ[gist.github.com].

This script prepares your operating system to launch the Garry’s Mod executable when you press play in Steam, changing it should not effect your executable in anyway and all changes can be reverted by verifying your game files.

開ける hl2.sh in a text editor of your choice and add the following line near the top. This line will run the script you previously created when you launch Garry’s Mod.

source %scirptname%.sh &

Now when you launch Garry’s Mod, your secondary displays should turn off the game should launch and your secondary displays will turn back on after a delay. 重要なこと, the game should auto-detect only your primary monitor, avoiding the multiple monitor issue.

これが今日私たちがこの目的で共有するすべてです ギャリーのモッド ガイド. このガイドは元々、次の者によって作成および執筆されました。 Lamarr. このガイドを更新できなかった場合, これに従って最新のアップデートを見つけることができます リンク.

このサイトのコンテンツがあなたの権利を侵害していると思われる場合, あなたの知的財産権を含む, お問い合わせフォームを使用してすぐにご連絡ください.
ガイド タグ:ギャリーのモッド

ポストナビゲーション

前の投稿: AB AETERNO Advanced Item Interaction Guide
次の投稿: How to Fix Albert and Otto: The Adventure Begins Crashing, 起動時にクラッシュする, およびフリーズの問題

返信を残す 返信をキャンセル

あなたのメールアドレスは公開されません. 必須フィールドにマークが付いています *

  • タイトル: ギャリーのモッド
  • 発売日: 11月 29, 2006
  • 開発者: フェイスパンチスタジオ
  • 出版社: バルブ

免責事項

引用されたすべてのコンテンツはそれぞれの情報源から得られています. 当社があなたのコンテンツを許可なく使用したと思われる場合, 必ずご連絡ください。真剣に対応させていただきます.
  • 私たちに関しては
  • お問い合わせ
  • プライバシーポリシー
  • 利用規約

著作権 © 2025 ライオットビット.

搭載 プレスブックニュース ワードプレスのテーマ