Skip to content

Instantly share code, notes, and snippets.

View srlemke's full-sized avatar

Sergio Rafael Lemke srlemke

View GitHub Profile
@srlemke
srlemke / 6900XT Underwolt via gamemode
Last active December 26, 2024 10:25
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
#In OpenSUSE:
vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="mitigations=off amdgpu.ppfeaturemask=0xffffffff security=apparmor"
#Create and secure 1 directory to store 2 scrips:
@srlemke
srlemke / SimHub on Linux
Last active December 26, 2024 10: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 December 25, 2024 10:55
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 December 25, 2024 11:35
Odissey G9 flicker at 240hz:
#Odissey G9 flicker at 240hz:
-> add this as grub boot argument to fix resolution on VTs:
video=DP-1:2560x1440@120
-> Systemd unit:
#localhost:~ # cat /etc/systemd/system/fixres.service
[Unit]
Description=Fix Resolution
[Service]
#Tutorial Date: 12/12/2024
#This is for: 211500 (ACC), if you are installing for another game use that game ID
#If not raceroom, find game id with bellow command:
grep name ~/.steam/steam/steamapps/appmanifest_*
------------
Install protontricks and winetricks on your distro.
Install dotnet48 into the game vessel. 211500(raceroom) in this example, to install dotnet48:
-> All commands are as normal user (never root)
@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 = ''
- 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' *