Hello to this beautiful community, and let me preface this with saying I have no idea what I’m talking about.
I recently switched from Windows to EndeavourOS after haven’t used any form of linux in a decade. This last week, I was very tempted to turn back due to the headache of trying to get good performance out of games and other things. Now that I have it fixed, I felt obligated to write a straight forward guide to help future me when I break my computer again.
For reference specs:
Lenovo Legion Pro 7i
Intel i9 13900hx
Nvidia RTX 4090 - 175w
1st issue: PC hard locks anywhere from at login screen to several hours into the night
2nd issue: Less than half the avg FPS compared to windows in games
3rd issue: Random stutters, window lag scrolling or dragging
4th issue: Gysnc/Adaptive refresh not working well
Here’s the steps I took to seemingly fix all this from start to finish,
Clean EndeavourOS install, non nvidia version using Systemd instead of Grub. I setup the manual partitions to preserve my /home/ directory in case I have to reinstall in the future. This will save your steam library and there are plenty of guides on how to do it.
I also set my GPU to “nvidia only” in my bios and enabled all the factory overclock and undervolt options
Make a TKG 6.10 RC2 kernel with some custom stuff. (I switched to X11 at the login screen for this)
- Open the terminal and type
- Go to /home/YOURNAME/linux-tkg/ and edit line 251 in customization.cfg to look like,
_custom_commandline=“nvidia_drm.modeset=1 nvidia.NVreg_EnableGpuFirmware=0 intel_pstate=active kernel.split_lock_mitigate=0”
- In the terminal,
cd linux-tkg
makepkg -si
-
When it asks, select “0” for version 6.10-rc2, and “0” (i.e. default) for the rest.
-
All the build options should be left at default. And be sure to know your CPU family name. Mine is Raptor Lake (or “44” when it asks)
It will take it’s time building and installing. Hopefully it doesn’t lockup during the install…
Without rebooting, in the terminal put
yay -Syu nvidia-open-beta-dkms nvidia-utils-beta lib32-nvidia-utils-beta nvidia-settings-beta
Let the installer run through by spamming enter a few times and sudoing when asked. When it’s finished, go ahead and reboot. Making sure you select the new TKG bios option in the boot menu
Logging into x11, open the terminal, and “sudo nvidia-settings”. Under the display config box, select “Advanced settings” and force the full compisition pipeline as well as “enable gysnc for non gsync monitor” if it’s there too.
The above shouldn’t be needed if you’re just gonna use wayland, but I am, after all, an idiot
In the terminal again,
sudo touch /etc/systemd/do-not-udevadm-trigger-on-update
sudo pacman -S power-profiles-daemon
sudo nvidia-smi -pm ENABLED
systemctl enable nvidia-powerd
Reboot and you should be good to setup all the good stuff. Here’s some quick commands for future me,
sudo pacman -S steam
sudo pacman -S steam-native-runtime
sudo pacman -S lutris
yay -S protonup-qt
This was the one that fixed my bluetooth not enabling,
sudo systemctl start bluetooth.service
I don’t think I missed anything, but if someone using this runs into issues lmk. I did so much troubleshooting so maybe I forgot a step.
Games are running at near or better Windows levels now, and after 24hrs… I haven’t crashed…