Como posso fazer o overlay de Mumble funcionar?

14

O Mumble e o Team Fortress 2 (TF2) funcionam bem para mim individualmente, mas não consigo fazer o Mumble-Overlay funcionar, seja de forma independente ou dentro do TF2.

Eu tentei colocar as seguintes opções de lançamento nas propriedades do TF2 no Steam, e nenhuma delas funcionou. (NB, também estou usando o bumblebee e um computador de 64 bits).

mumble-overlay primusrun %command%
mumble-overlay primusrun %command% -nod3d9ex
mumble-overlay primusrun %command% -d3d9ex -32bit
LD_PRELOAD=/usr/lib/mumble/libmumble.so.1.2 primusrun %command%

O TF2 está no modo de janela, então eu ficaria feliz com o respingo que produz sua própria sobreposição que não foi injetada no TF2.

    
por Sparhawk 13.06.2014 / 03:57

1 resposta

2

Como essa correção depende da modificação do gerenciador de composição, e você só pode ter um gerenciador de composição de cada vez, é difícil fazê-lo, a menos que você já use um sistema que não tenha um gerenciador de composição. Eu suspeito que é possível aplicar o LD_PRELOAD a qualquer gerenciador de composição, mas o gerenciador de composição é específico para cada sistema operacional e ambiente de área de trabalho. Eu também suspeito que você pode forçar o seu sistema operacional a usar o compton e a correção, mas novamente isso é específico para o Ambiente OS / Desktop.

Se você tiver um gerente de composição, pule esta próxima seção, se você não tiver um gerente de composição, siga estas etapas:

Install compton

Run the following command in your terminal and you will be all set, note that you must rerun this command every time you login, so I suggest putting this in your .bash_profile or .zprofile (if using ZSH).

LD_PRELOAD=/usr/lib/mumble/libmumble.so compton -CGb --backend glx --paint-on-overlay

The flags -CG disable shadow effects
The flag -b runs it in the background as a daemon
The flag --backend glx runs it using OpenGL

The flag --paint-on-overlay paints on X Composite overlay window instead of on root window. You can add the flag --vsync with an argument to enable vsync.

Run mumble. Because of the nature of the fix, you can start mumble after TF2 and still have the overlay show up. The overlay will appear whenever you are connected to a mumble server.

Se você for como a maioria das pessoas e tiver um gerenciador de composição junto com seu sistema operacional, essa tarefa se tornará mais envolvida, pois não é possível ter 2 compositores em execução de uma só vez. Por favor, note que esta correção é bastante feia e requer algum tempo para configurar e também exige que você faça o logout toda vez que desejar usar a sobreposição de múmia. As etapas a seguir são parafraseadas e modificadas a partir deste guia.

Install compton and openbox (you can optionally install obconf and obmenu, but they are not necessary)

Create the directory ~/.config/openbox if it does not exist

In that directory create a file called autostart

In that file, place the following (any line starting with a # is a comment and it will not be run)

# Starts compton and is necessary for the overlay to work, look at the above section on compton to decide what flags you want to use
LD_PRELOAD=/usr/lib/mumble/libmumble.so compton -CGb --backend glx --paint-on-overlay &

# Autostarts steam
steam &

# Autostarts mumble (comment out to stop mumble from automatically starting)
mumble &

# You also can place any program in here that you wish to start
# Use a & at the end of the name so that your computer does no wait until
# that program is fully started before it start the next program.

When you wish to play a game, logout of you account, and then select openbox as your desktop environment. This requires a login manager than supports multiple desktop environments. Most do, but it may require you to look around to find out how to switch desktop environments. If you are using startx/.xinitrc, make sure that you use exec openbox-session rather than exec openbox because exec openbox does not automatically load the autostart file.

To return to your normal desktop, logout of your account and then select your normal desktop environment from you login manager.
    
por 20.08.2016 / 19:34

Tags