Skip to content

Instantly share code, notes, and snippets.

View srlemke's full-sized avatar

Sergio Rafael Lemke srlemke

View GitHub Profile
@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 July 3, 2025 09:52
Odissey G9 flicker at 240hz and Custom Resolution:
Get the correct monitor: (in my case card1-DP-2)
simrig:/home/slemke # cat /sys/class/drm/card1-DP-1/modes |head -n 1
2560x1440
simrig:/home/slemke # cat /sys/class/drm/card1-DP-2/modes |head -n 1
5120x1440
simrig:/home/slemke #
Download g9.bin from:
https://github.com/gouineblade/odysseyg9-linux-240hz-vrr-hdr-noflicker
There is also a V2 in the works that installs CrewChief:
https://github.com/srlemke/SimHub_on_Linux/tree/With-Crewchief
#Tutorial Date: 01/Mar/2026
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 November 30, 2025 10:38
Raceroom Cars info extract - To use in simhub dash
// Updated: 30.11.2025
//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'))
carclass = $prop('CarClass')
horse_power = ''
drive_type = ''
@srlemke
srlemke / The Simracer Chronicles
Last active March 1, 2026 12:09
The Simracer Chronicles
- If you use a loadcell, you will never go to regular pedals again;
- If you use a direct drive wheel, you will never go to a belt driver wheel again;
- If you see it at 120FPS, you will never be able to play at 60FPS again;
- The secret practice: "What, are we going to Bathurst tonight? - Oh my, I haven't raced there for months, ok,
Ill join for fun, god help me :)))" - Finishes first on practice, qualy and race, 25seconds ahead of the rest;
- The random car selector: "oh well, I really just want to have fun, it's all about fun, isn't it? Let me pick
car = $prop('CarId');
if ((car == 'mercedes_amg_gt3_evo') ||
(car == 'mercedes_amg_gt3'))
return "Naturally Aspirated V8, 6.3"
if ((car == 'ferrari_488_gt3_evo') ||
(car == 'ferrari_488_challenge_evo')||
(car == 'ferrari_488_gt3'))
return "Twin Turbo V8, 3.9"
@srlemke
srlemke / Upgrade openSUSE Leap
Last active December 25, 2024 11:36
Opensuse change all repos from 15.4 to 15.5
cd /etc/zypp/repos.d/; sed -i -- 's/15.5/15.6/g' *
@srlemke
srlemke / IP_to_TelegramBot.sh
Last active September 21, 2017 14:44
send external IP adress to telegram bot
#!/bin/bash
curl ifconfig.me > /tmp/Cur_IP > /dev/null
/usr/bin/curl -s -X POST https://api.telegram.org/bot319999999:AAFp3d8FM5h1RV8xxxxxxxxxxxxxxxxxxxx/sendMessage -d text=`cat /tmp/Cur_IP` -d chat_id=29999999 > /dev/null
@srlemke
srlemke / .screenrc
Last active August 29, 2015 13:57
.screenrc - Change between screens with alt + > or <
startup_message off
vbell off
bell_msg 'Bip [%]^G'
msgwait 1
defobuflimit 1024
hardcopydir /tmp
defscrollback 3000
bindkey -t "^[," prev
bindkey -t "^[." next