Przejdź do treści
Bity zamieszek

Bity zamieszek

  • Dom
  • Aktualności
  • Przewodniki
  • Przewodniki wideo
  • Opis zmian
  • Zgłoś nadużycie
  • Przełącz formularz wyszukiwania

Mod Garry’ego – How To Run Multiple Monitors Under X86-64 Linux Branch

Wysłany dnia 11/20/2022 Przez Lamarr Brak komentarzy NA Mod Garry’ego – How To Run Multiple Monitors Under X86-64 Linux Branch
  • Tytuł: Garry's Mod
  • Data wydania: Listopad 29, 2006
  • Wywoływacz: FACEPUNCH STUDIOS
  • Wydawca: Zawór

Prąd “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.

Pierwszy, we will create our bash script. You can find an example script I made for myself, Tutaj.

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. W moim przypadku, 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% –wyłączony

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, –poniżej, I –powyżej 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 Zarządzać, Następnie Przeglądaj pliki lokalne.

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 “skrawek” 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, Tutaj[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.

Otwarte 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. Co ważne, the game should auto-detect only your primary monitor, avoiding the multiple monitor issue.

To wszystko, co dzisiaj udostępniamy w tym celu Garry's Mod przewodnik. Ten przewodnik został pierwotnie stworzony i napisany przez Lamarr. Na wypadek, gdybyśmy nie zaktualizowali tego przewodnika, możesz znaleźć najnowszą aktualizację, postępując zgodnie z tym połączyć.

Jeśli uważasz, że jakakolwiek treść na tej stronie narusza Twoje prawa, w tym Twoje prawa własności intelektualnej, prosimy o niezwłoczny kontakt za pomocą naszego formularza kontaktowego.
Przewodniki Tagi:Garry's Mod

Nawigacja po wpisach

Poprzedni post: AB AETERNO Advanced Item Interaction Guide
Następny post: How to Fix Albert and Otto: The Adventure Begins Crashing, Awaria podczas uruchamiania, i problemy z zamrażaniem

Zostaw odpowiedź Anuluj odpowiedź

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są zaznaczone *

  • Tytuł: Garry's Mod
  • Data wydania: Listopad 29, 2006
  • Wywoływacz: FACEPUNCH STUDIOS
  • Wydawca: Zawór

Zastrzeżenie

Wszystkie cytowane treści pochodzą z odpowiednich źródeł. Jeśli uważasz, że wykorzystaliśmy Twoje treści bez pozwolenia, upewnij się, że się z nami skontaktujesz, a my potraktujemy to poważnie.
  • O nas
  • Skontaktuj się z nami
  • Polityka prywatności
  • Warunki usługi

Prawo autorskie © 2025 Bity zamieszek.

Zasilany przez Prasa Książka Aktualności Motyw WordPressa