GNU/Linux >> Belajar Linux >  >> Linux

Bagaimana Agar Hamparan Mumble Bekerja?

Mumble dan Team Fortress 2 (TF2) keduanya bekerja dengan baik untuk saya secara individu, tetapi saya tidak bisa membuat mumble-overlay bekerja, baik secara mandiri atau dalam TF2.

Saya sudah mencoba memasukkan opsi peluncuran berikut ke properti TF2 di Steam, tidak ada yang berhasil. (N.B. Saya juga menggunakan lebah, dan komputer 64-bit.)

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 dalam mode berjendela, jadi saya akan senang dengan menggumam menghasilkan overlay sendiri yang tidak disuntikkan ke TF2.

Jawaban yang Diterima:

Karena perbaikan ini bergantung pada modifikasi manajer komposit, dan Anda hanya dapat memiliki satu manajer komposit pada satu waktu, sulit dilakukan kecuali Anda sudah menggunakan sistem yang tidak memiliki manajer komposit. Saya menduga bahwa adalah mungkin untuk menerapkan LD_PRELOAD ke manajer komposit mana pun, tetapi manajer komposit khusus untuk setiap OS dan lingkungan desktop. Saya juga menduga bahwa Anda dapat memaksa OS Anda untuk menggunakan compton dan perbaikannya, tetapi sekali lagi itu khusus untuk OS/Lingkungan Desktop.

Jika Anda memiliki manajer gabungan, lewati bagian berikut ini, jika Anda tidak memiliki manajer gabungan, ikuti langkah-langkah berikut:

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.

Jika Anda seperti kebanyakan orang dan memiliki manajer komposit yang dibundel dengan OS Anda, tugas ini menjadi lebih terlibat karena Anda tidak dapat menjalankan 2 komposer sekaligus. Harap dicatat bahwa perbaikan ini agak jelek dan memerlukan beberapa waktu untuk mengatur dan juga mengharuskan Anda untuk keluar setiap kali Anda ingin menggunakan mumble overlay. Langkah-langkah berikut diparafrasekan dan dimodifikasi dari panduan ini.

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. Bagaimana Mengetahui Jika Dd Masih Bekerja?

  2. Bagaimana Cara Mendapatkan Tipe Data Variabel Di Zsh?

  3. Bagaimana Agar Uuencode Berfungsi?

  1. Cara mendapatkan ukuran direktori di Linux

  2. Bagaimana cara membuat perangkat RAID yang tidak aktif berfungsi kembali?

  3. Bagaimana cara membuat kartu grafis ganda berfungsi di Linux?

  1. Bagaimana Cara Mendapatkan Kecerahan Bekerja Pada Yoga Ideapad Lenovo?

  2. Bagaimana Cara Mendapatkan 4k @ 60hz Pada 4:2:0 Bekerja Di Ubuntu 16.04?

  3. Bagaimana cara membuat idmap NFSv4 bekerja dengan sec=sys?