Skip to content

Instantly share code, notes, and snippets.

View srlemke's full-sized avatar

Sergio Rafael Lemke srlemke

View GitHub Profile
Stem launch:
LD_PRELOAD=/usr/lib64/libgamemode.so.0 gamemoderun mangohud %command%
What set and use, 6900XT:
in Settings.JSON set
"CEF Mode": 2,
Reflections all low
@srlemke
srlemke / LMU Triple Screen rendering on Samsung G9 - 5118x1440 Custom resolution Wayland
Last active June 9, 2025 17:20
LMU Triple Screen rendering on Samsung G9 - 5118x1440
The tutorial works, but in most of my test on simracing this leads to some kind of stutter.
In general its better to use the default resolutions for simracing at least in my monitor.
If your customm resolution is not for simracing then this totally works.
Needed to find current monitor, Install:
edid-decode
Find your monitor, thats annoying, I know mine is this, yours is probably somewhere in this path to:
edid-decode /sys/class/drm/card1-DP-1/edid
@srlemke
srlemke / TinyPedal on OpenSUSE for Le Mans Ultimate
Last active June 9, 2025 17:21
TinyPedal on OpenSUSE for Le Mans Ultimate
Note, to be able to move widgets in wayland check: "Enable X11 Platform Plugin Override" on tinypedal
compatibility settings and restart it.
-> Now to install && run:
zypper in python313-pyside6 python313-pyxdg python313-psutil
Clone it recursivelly:
git clone --recursive https://github.com/s-victor/TinyPedal.git
Make sure to place dll from
@srlemke
srlemke / 6900XT Underwolt via gamemode
Last active May 22, 2025 18:11
6900XT gamemode settings
Install: mangohud gamemode
#You need to unlock the card for over/under-clocking work, add this as grub boot kernel argument:
amdgpu.ppfeaturemask=0xffffffff
#To not lose it when updating kernel:
vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="mitigations=off amdgpu.ppfeaturemask=0xffffffff"
#Create and secure 1 directory to store 2 scrips:
@srlemke
srlemke / SimHub on Linux
Last active June 10, 2025 01:27
SimHub on Linux
Mainly extracted from https://www.simhubdash.com/community-2/simhub-support/guide-simhub-on-linux/
First, Linux games are isolated 'Vessels' per game, it may look weird, but after understanding it better its quite handy,
if something goes wrong you just delete the whole 'vessel' and start from scratch, as if windows was resinatalled.
The vessel for each game has an unique ID:
get your game ID with:
grep name ~/.steam/steam/steamapps/appmanifest_*
I will be using ID 1066890 which is for Automobilista2.
Remember, each game is an independ windows-vessel, if you want it on more games you have to install on all game ID's
@srlemke
srlemke / Automobilista2 Content Manager on Linux
Last active June 10, 2025 01:28
Automobilista 2 Content Manager Linux
winetricks -q dotnetdesktop6
#Download AMSCM from:
https://www.overtake.gg/downloads/automobilista-2-content-manager.59727/
wine AMS2CM.msi (Do not forget to install CLI that you have to select in the AMS2CM installer)
#Double check the path on the bellow file, this is the most important:
vim /home/slemke/.wine/drive_c/Program\ Files/AMS2CM/Config.yaml
Path: Z:\home\slemke\.steam\steam\steamapps\common\Automobilista 2
@srlemke
srlemke / Set correct frame times using cvr
Last active December 25, 2024 11:27
Properly set a frame limiter on Linux with correct Hz for the res. on MangoHUD
#Get the correct refresh rate for the amount of frames/Hz:
-> Bellow is my resolution(5120x1440) and my desired frame cap(165), I want it to display the ideal Hz for that.
I will use the CLI command 'cvt':
slemke@leap:~> cvt 5120 1440 165.00
# 5120x1440 164.88 Hz (CVT) hsync: 261.83 kHz; pclk: 1881.00 MHz
Modeline "5120x1440_165.00" 1881.00 5120 5584 6152 7184 1440 1443 1453 1588 -hsync +vsync
-> Above we can see that the ideal Hz for my resolution@fps is 164.88, so, in my case, we add it to MangoHud config:
@srlemke
srlemke / Odissey G9 at 240hz flicker fix
Last active May 19, 2025 18:13
Odissey G9 flicker at 240hz and Custom Resolution:
Custom Resolution:
Install CRU from https://www.monitortests.com/forum/Thread-Custom-Resolution-Utility-CRU
Extract your current monitor EDID:
cat /sys/class/drm/card1-HDMI-A-1/edid > ~/Documents/my_monitor_edid.bin
Open CRU;
In CRU load the above generated my_monitor_edid.bin (via the import)
Follow my 3 steps comment here:
https://community.lemansultimate.com/index.php?threads/triple-screen-rendering-on-ultrawide-samsung-g9.814/page-5#post-40549
#Tutorial Date: 21/05/2025
Follow everything stricly, otherwise wont work. Read every line of this guide.
Nothing needs to be run as root, never.
Best way ATM seems to be install per game.
Preparation:
Download Crewchief.msi
Install wine, winetricks and protontricks on your distro!
@srlemke
srlemke / Raceroom Cars info extra
Last active September 15, 2022 15:15
Raceroom Cars info extract - To use in simhub dash
//This was extracted from the raceroom website:
//It's simhub ready, I have a dash and works fine
//but I did not test all cars, the ones I did
//returned the info fine.
car = lcase($prop('CarModel'))
horse_power = ''
drive_type = ''
aspiration = ''