Skip to content

Instantly share code, notes, and snippets.

View srlemke's full-sized avatar

Sergio Rafael Lemke srlemke

View GitHub Profile
@srlemke
srlemke / returns raceroom car brand icons
Created November 30, 2025 10:40
Raceroom: Returns brand name to use car brand icons on simhub dashes.
///You still need to add the icons to the dash images.
car = lcase($prop('CarModel'))
if (car.includes('bmw')) {
return 'BMW';
}
if (car.includes('mercedes')) {
return 'mercedes';
@srlemke
srlemke / Launch Simhub and dash.exe for Raceroom - run after game starts.
Last active November 30, 2025 10:35
Automatically detect running game and launch simhub and dash.exe(raceroom)
#!/bin/bash
game=$(ps -aux | grep SteamLaunch | grep -oP 'AppId=\K\d+')
if [[ -z "$game" ]]; then
echo "Game variable is empty, no game running, you should not run this before running the game,
otherwise it will lock the gameprefix and steam wont be able to start it."
exit 1
fi
@srlemke
srlemke / adjust external cam FOV
Last active November 2, 2025 13:39
Raceroom adjust FOV for all cameras inclusive External ones
vim ~/.local/share/Steam/steamapps/compatdata/211500/pfx/drive_c/users/steamuser/Documents/My\ Games/SimBin/RaceRoom\ Racing\ Experience/UserData/graphics_options.xml
<fovScale type="float32">0.60000002</fovScale>
In my case 0.60 is a good enough fov.
Steam launch:
LD_PRELOAD=/usr/lib64/libgamemode.so.0 gamemoderun mangohud %command%
Workaround to serve brand logos locally(very specific to a test simhub dashboard):
python3.13 -m http.server 8000 --directory /home/srlemke/Downloads/brandlogo & LD_PRELOAD=/usr/lib64/libgamemode.so.0 gamemoderun mangohud %command%
What set and use, 6900XT:
in Settings.JSON set
"CEF Mode": 2,
@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 November 30, 2025 10:43
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 December 6, 2025 22:00
SimHub on Linux
Updated: 26.Nov.2025 - working again after some adjustments!
Reading is annoying some times, but read before start pasting commands.
This installs simhub per game, so you have to install it for each game.
All commands in a terminal as regular user, never as root.
Info: Linux games are isolated 'Compatibility 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 reinstalled.
The vessel for each game has an unique ID.
@srlemke
srlemke / Automobilista2 Content Manager on Linux
Last active October 20, 2025 13:15
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: