GNU/Linux >> Znalost Linux >  >> Linux

Jak zprovoznit Mumble's Overlay?

Mumble a Team Fortress 2 (TF2) mi jednotlivě fungují dobře, ale nemůžu zprovoznit mumble-overlay, ať už samostatně, ani v rámci TF2.

Pokusil jsem se vložit následující možnosti spuštění do vlastností TF2 ve službě Steam, z nichž žádná nefungovala. (Pozn. také používám Bumblebee a 64bitový počítač.)

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%

TF2 je v režimu okna, takže bych byl rád, kdyby mumble produkoval vlastní překryv, který nebyl vložen do TF2.

Přijatá odpověď:

Protože tato oprava závisí na úpravě kompozitního manažera a můžete mít pouze jednoho kompozitního manažera najednou, je těžké to udělat, pokud již nepoužíváte systém, který kompozitní manažer nemá. Mám podezření, že je možné použít LD_PRELOAD na jakýkoli kompozitní manažer, ale kompozitní manažer je specifický pro každý OS a desktopové prostředí. Také se domnívám, že můžete svůj OS přinutit, aby používal compton a opravu, ale to je opět specifické pro OS/Desktop Environment.

Pokud máte správce složených položek, přeskočte tuto další část, pokud správce složených položek nemáte, postupujte takto:

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.

Pokud jste jako většina lidí a máte k operačnímu systému přibalený kompozitní manažer, tento úkol se stává složitějším, protože nemůžete mít spuštěné 2 sazeče najednou. Vezměte prosím na vědomí, že tato oprava je poněkud ošklivá a vyžaduje nějaký čas na nastavení a také vyžaduje, abyste se odhlásili pokaždé, když chcete použít překryvnou vrstvu mumble. Následující kroky jsou parafrázovány a upraveny z této příručky.

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.

Linux
  1. Jak zjistit, zda Dd stále funguje?

  2. Jak zajistit, aby jas fungoval na Lenovo Ideapad Yoga?

  3. Jak získat 4k @ 60hz při 4:2:0 při práci v Ubuntu 16.04?

  1. Jak zajistit, aby Autocad pracoval s vínem?

  2. Jak získat velikost adresáře v Linuxu

  3. Jak znovu uvést neaktivní zařízení RAID do provozu?

  1. Jak získat datový typ proměnných v Zsh?

  2. Jak zajistit, aby Uuencode fungoval?

  3. Jak přimět NFSv4 idmap pracovat s sec=sys?