Ir para o conteúdo
Riot Bits

Riot Bits

  • Lar
  • Notícias
  • Guias
  • Guias de vídeo
  • Notas do Patch
  • Denunciar abuso
  • Alternar formulário de pesquisa

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

postado em 11/20/2022 Por Lamarr Sem comentários em Mod de Garry – How To Run Multiple Monitors Under X86-64 Linux Branch
  • Título: Mod de Garry
  • Data de lançamento: novembro 29, 2006
  • Desenvolvedor: FacePunch Studios
  • Editor: Válvula

O actual “x86_64 – Chromium + 64-bit binaries” branch of Garry’s Mod doesn’t manage multiple monitors correctly. Este é um 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.

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

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. No meu caso, 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, substituindo %displayname% with its name.

xrandr –output %displayname% –desligado

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, substituindo %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, –abaixo, e –acima 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 Gerenciar, então Procure arquivos locais.

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

chmod +x %scirptname%.sh

Finally we need to “correção” 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, aqui[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.

Abrir 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. Importante, the game should auto-detect only your primary monitor, avoiding the multiple monitor issue.

Isso é tudo o que estamos compartilhando hoje para isso Mod de Garry guia. Este guia foi originalmente criado e escrito por Lamarr. Caso não atualizemos este guia, você pode encontrar a atualização mais recente seguindo este link.

Se você acredita que algum conteúdo deste site viola seus direitos, incluindo seus direitos de propriedade intelectual, entre em contato conosco imediatamente usando nosso formulário de contato.
Guias Tag:Mod de Garry

Navegação de artigos

Postagem anterior: AB AETERNO Advanced Item Interaction Guide
próxima postagem: How to Fix Albert and Otto: The Adventure Begins Crashing, Falha no lançamento, e problemas de congelamento

Deixe um comentário Cancelar resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

  • Título: Mod de Garry
  • Data de lançamento: novembro 29, 2006
  • Desenvolvedor: FacePunch Studios
  • Editor: Válvula

Isenção de responsabilidade

Todo o conteúdo citado é derivado de suas respectivas fontes. Se você acha que usamos seu conteúdo sem permissão, certifique-se de entrar em contato conosco e levaremos isso a sério.
  • Sobre nós
  • Contate-nos
  • política de Privacidade
  • Termos de serviço

direito autoral © 2025 Riot Bits.

Distribuído por PressBook Notícias tema WordPress