Difference between revisions of "Misc"

From Linux Gaming
Jump to navigation Jump to search
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
Various stuff that doesn't (yet) deserve an own article but might be useful.
Various stuff that doesn't (yet) deserve an own article but might be useful.
== Edit System files as root (with elevated permissions) ==
You can either use the [[terminal]], or use a file manager like Nemo.


== Watching the temperature ==
== Watching the temperature ==
Line 12: Line 15:


=== Noise Cancelling ===
=== Noise Cancelling ===
You can use [https://github.com/wwmm/easyeffects EasyEffects] or [https://github.com/lawl/NoiseTorch NoiseTorch].  
You can use [https://github.com/wwmm/easyeffects EasyEffects] or [https://github.com/noisetorch/NoiseTorch NoiseTorch].  


=== Equalizer and more ===
=== Equalizer and more ===
EasyEffects also has various other audio processing options, like crystalizer, noise gate, equalizer, filter, and much more. NoiseTorch can only cancel noise, but also has the option to tweak how aggressive it cancels noise.
EasyEffects also has various other audio processing options, like crystalizer, noise gate, equalizer, filter, and much more. NoiseTorch can only cancel noise, but also has the option to tweak how aggressive it cancels noise
 
A convolver can give better results than an equalizer as it can regulate every frequency individually. If you want your headphones to have a very specific characteristic, you can use https://autoeq.app/ to download a file that can be imported by a convolver. You can use EasyEffects or [https://github.com/Audio4Linux/JDSP4Linux JamesDSP].  


=== Patching Audio ===
=== Patching Audio ===
If you want to have a patchbay to route your audio to various destinations, [https://gitlab.freedesktop.org/pipewire/helvum Helvum] might be what you're looking for.
If you want to have a patchbay to route your audio to various destinations, [https://gitlab.freedesktop.org/rncbc/qpwgraph qpwgraph] or [https://gitlab.freedesktop.org/pipewire/helvum Helvum] might be what you're looking for.
 
If you want to do patching and add different effects, you can use Carla or RaySession. For noise cancelling you can use rnnoise. Use [https://distrho.sourceforge.io/ports.php KlangFalter] for convolution (on Arch it's part of the distrho-ports packages).
 
With the right combination of plugins, you can do lots of things. For example, you can do noise cancelling on your microphone and on the microphones of your team-mates, level the loudness of your team-mates to be the same, while at the same time making steps louder, and changing the characteristics of your headphones to your liking.


== Make the game look good ==
== Make the game look good ==


=== Downsampling ===
=== Downsampling ===
You can use [https://github.com/Plagman/gamescope Gamescope]. For example, use <code>gamescope -w 3840 -h 2160 --</code> as command prefix, to downscale from 4k. If you use it in Lutris, set <code>3840x2160</code> as resolution.
You can use [[Gamescope]].
 
You can also use Gamescope if your game doesn't play nicely with your desktop, for example if it doesn't catch your mouse, or if it breaks when loosing focus.


=== Post Processing ===
=== Post Processing ===
You can use [https://github.com/DadSchoorse/vkBasalt vkBasalt] for additional rendering like anti aliasing or reshade (you might want to use [[reshade]] instead)
You can use [https://github.com/DadSchoorse/vkBasalt vkBasalt] for additional rendering like anti aliasing or reshade (you might want to use [[reshade]] instead)
== Bottles ==
Some people prefer [https://github.com/bottlesdevs/Bottles Bottles] to install games that don't have an install script in [[Lutris]].
==Using GitHub/GitLab==
==Using GitHub/GitLab==
You might find yourself in the situation where you want to download something from GitHub or GitLab. Don't do it, as long as it's not absolutely necessary. This is usually a bad idea. Try again to find a better solution, for example, read the description about how to install it, there might be a package for your distribution, a ppa (for Pop!_OS, Ubuntu, etc), an AUR package (for Garuda, Manjaro, Arch, etc.), or something similar for your distribution. Or post in a forum, and try to get help there. But here is how to do it:
You might find yourself in the situation where you want to download something from GitHub or GitLab. Don't do it, as long as it's not absolutely necessary. This is usually a bad idea. Try again to find a better solution, for example, read the description about how to install it, there might be a package for your distribution, a ppa (for Pop!_OS, Ubuntu, etc), an AUR package (for Garuda, Manjaro, Arch, etc.), or something similar for your distribution. Or post in a forum, and try to get help there. But here is how to do it:
Line 56: Line 60:
== RGB ==
== RGB ==
You can use [https://gitlab.com/CalcProgrammer1/OpenRGB OpenRGB].
You can use [https://gitlab.com/CalcProgrammer1/OpenRGB OpenRGB].
== Razer control driver ==
For razer hardware, you can use this driver: https://github.com/openrazer/openrazer
== Logitech control software ==
Solaar is a Linux device manager for Logitech devices. You can do stuff like changing DPI, or button mappings, etc. https://github.com/pwr-Solaar/Solaar


== Suspend/resume of applications (games, an others) ==
== Suspend/resume of applications (games, an others) ==
You can use [https://github.com/Merrit/nyrna nyrna]. Unortunately it doesn't (yet) "survive" reboots.
You can use [https://github.com/Merrit/nyrna nyrna]. Unortunately it doesn't (yet) "survive" reboots.


== Test whether you use X11 ==
== Test whether you use X11 or Wayland ==
Open a [[terminal]] and input <code>echo $XDG_SESSION_TYPE</code>. If it says <code>x11</code>, then you use X11.
Open a [[terminal]] and input <code>echo $XDG_SESSION_TYPE</code>. If it says <code>x11</code>, then you use X11. If it says <code>wayland</code>, you use wayland.
 
== Disable swapping for a game ==
You can do it like [https://www.reddit.com/r/linux_gaming/comments/u02y88/psa_disable_swap_for_games_and_dont_submit_bogus/ this].
 
== Simultaneously play two different games on the same device ==
https://www.reddit.com/r/tuxedocomputers/comments/ucdvj7/finally_did_it_two_different_users_playing/
 
== Merge two monitors into one (to have one wide screen that spans both monitors) ==
Type <code>xrandr</code> into the [[terminal]]. You will see a list of your monitors. Pick the monitors that you want to merge.
 
Assuming that you want to merge <code>DisplayPort-1</code> and <code>HDMI-A-0</code>, type <code>xrandr --setmonitor BigScreen auto "DisplayPort-1","HDMI-A-0"</code>. The order of the monitors in the command determines the order of how they are arranged. In this example,  the monitor <code>DisplayPort-1</code> would be left, and <code>HDMI-A-0</code> would be right.
 
To undo the changes, type <code>xrandr --delmonitor BigScreen</code>.
 
This works only on X11, and not on Wayland. It also doesn't work with every desktop environment, for example, it does not work with KDE Plasma. Generally speaking, it works better if the desktop environment is less sophisticated.
 
== Screen Capturing ==
 
* OBS
* [https://git.dec05eba.com/gpu-screen-recorder-gtk/about/ gpu-screen-recorder] (Nvidia)
* [https://github.com/matanui159/ReplaySorcery ReplaySorcery] (AMD)
*Goverlay
 
== Use any camera (even a phone) as webcam ==
Use any camera as a webcam—DSLR, mirrorless, camcorder, point-and-shoot, or even your smartphone/tablet! https://github.com/weebney/webcamize

Latest revision as of 14:22, 8 August 2023

Various stuff that doesn't (yet) deserve an own article but might be useful.

Edit System files as root (with elevated permissions)

You can either use the terminal, or use a file manager like Nemo.

Watching the temperature

You can use lm_sensors. Before running it for the first time, run sudo sensors-detect.

After that, type sensors to see your temperatures. If you want to monitor them for a longer time, type watch sensors.

Changing Mouse settings (DPI, lift of distance, etc)

Settings are usually stored in the mouse, so it is sufficient to boot Windows once, and change stuff there. You can also boot a VM (with KVM) and pass through the mouse. After that, the settings should be kept in Linux.

Audio stuff

Noise Cancelling

You can use EasyEffects or NoiseTorch.

Equalizer and more

EasyEffects also has various other audio processing options, like crystalizer, noise gate, equalizer, filter, and much more. NoiseTorch can only cancel noise, but also has the option to tweak how aggressive it cancels noise.

A convolver can give better results than an equalizer as it can regulate every frequency individually. If you want your headphones to have a very specific characteristic, you can use https://autoeq.app/ to download a file that can be imported by a convolver. You can use EasyEffects or JamesDSP.

Patching Audio

If you want to have a patchbay to route your audio to various destinations, qpwgraph or Helvum might be what you're looking for.

If you want to do patching and add different effects, you can use Carla or RaySession. For noise cancelling you can use rnnoise. Use KlangFalter for convolution (on Arch it's part of the distrho-ports packages).

With the right combination of plugins, you can do lots of things. For example, you can do noise cancelling on your microphone and on the microphones of your team-mates, level the loudness of your team-mates to be the same, while at the same time making steps louder, and changing the characteristics of your headphones to your liking.

Make the game look good

Downsampling

You can use Gamescope.

Post Processing

You can use vkBasalt for additional rendering like anti aliasing or reshade (you might want to use reshade instead)

Using GitHub/GitLab

You might find yourself in the situation where you want to download something from GitHub or GitLab. Don't do it, as long as it's not absolutely necessary. This is usually a bad idea. Try again to find a better solution, for example, read the description about how to install it, there might be a package for your distribution, a ppa (for Pop!_OS, Ubuntu, etc), an AUR package (for Garuda, Manjaro, Arch, etc.), or something similar for your distribution. Or post in a forum, and try to get help there. But here is how to do it:

  1. Install git. If you're on Pop!_OS or other Ubuntu/Debian-based distributions: sudo apt install git
  2. On GitLab there is a button called "Clone", on GitHub it's called "Code". Click it. You will see an URL like this: https://gitlab.com/some/stuff. Copy it (for example by clicking the button right next to it).
  3. Open a terminal, and navigate to the folder where you want your stuff. For example, by typing cd repos if you have a folder repos in your home folder.
  4. Type git clone (and type a space). Then paste the URL by pressing ctrl + shift + v. Then press Enter.
  5. Follow the instructions in the readme.

Using Checksums

When downloading a file, you might have seen something like sha512: 497907d020870e564b814bb6c4f7eef2f3abdf5d0159ccbd96501a26cef155a8d771a420a16c9348525fa4ce7de3c137ad5ff15a013c84f327edbdea6495d86b easyanticheat_x64.so

This is a checksum, or more precise: An sha512 checksum for the file easyanticheat_x64.so. This number is for verifying that you have the correct file, and not something that is manipulated or inaccurately transmitted.

Usage: Download file, open terminal, and cd Downloads.

Then you execute sha512sum easyanticheat_x64.so. The number you see there, should be exactly the same.

Btw: sha512 is better than sha256, and especially better than md5. md5 is trash, don't use it.

Game Streaming

You can use sunshine to stream games from your computer to a client running moonlight

RGB

You can use OpenRGB.

Razer control driver

For razer hardware, you can use this driver: https://github.com/openrazer/openrazer

Logitech control software

Solaar is a Linux device manager for Logitech devices. You can do stuff like changing DPI, or button mappings, etc. https://github.com/pwr-Solaar/Solaar

Suspend/resume of applications (games, an others)

You can use nyrna. Unortunately it doesn't (yet) "survive" reboots.

Test whether you use X11 or Wayland

Open a terminal and input echo $XDG_SESSION_TYPE. If it says x11, then you use X11. If it says wayland, you use wayland.

Disable swapping for a game

You can do it like this.

Simultaneously play two different games on the same device

https://www.reddit.com/r/tuxedocomputers/comments/ucdvj7/finally_did_it_two_different_users_playing/

Merge two monitors into one (to have one wide screen that spans both monitors)

Type xrandr into the terminal. You will see a list of your monitors. Pick the monitors that you want to merge.

Assuming that you want to merge DisplayPort-1 and HDMI-A-0, type xrandr --setmonitor BigScreen auto "DisplayPort-1","HDMI-A-0". The order of the monitors in the command determines the order of how they are arranged. In this example, the monitor DisplayPort-1 would be left, and HDMI-A-0 would be right.

To undo the changes, type xrandr --delmonitor BigScreen.

This works only on X11, and not on Wayland. It also doesn't work with every desktop environment, for example, it does not work with KDE Plasma. Generally speaking, it works better if the desktop environment is less sophisticated.

Screen Capturing

Use any camera (even a phone) as webcam

Use any camera as a webcam—DSLR, mirrorless, camcorder, point-and-shoot, or even your smartphone/tablet! https://github.com/weebney/webcamize