The Ultimate Guide to Fedora 39/40 Linux Gaming for Beginners
HTML-код
- Опубликовано: 18 дек 2023
- Join this channel to get access to perks:
/ @mattscreative
ko-fi.com/mattscreative support the Channel it helps me Eat and survive these hard times thank you!
First the kernel github.com/CachyOS/linux-cach...
Gnome 45 VRR
unless you got kde then skip copr.fedorainfracloud.org/cop...
Gnome 46 VRR Fedora 40
Open the terminal and type
gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate']"
log out and log back in after
xbox controller copr.fedorainfracloud.org/cop...
and that really should be it unless you want mesa-git copr.fedorainfracloud.org/cop...
Installing Nvidia drivers Require a Few Packages
sudo dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig
sudo dnf in akmod-nvidia
For wayland
sudo nano /etc/default/grub
add on line
GRUB_CMDLINE_LINUX = "nvidia-drm.modeset=1 amd_pstate=active"
if you have an amd cpu also add amd_pstate=active
Then rebuild Grub config sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Try just the one line above first, but if no improvement use both
@nClientDownloadEnableHTTP2PlatformLinux 0
@fDownloadRateImprovementToAddAnotherConnection 1.0
Native Installs:
nano ~/.steam/steam/steam_dev.cfg
OR
/home/USER/.steam/steam/steam_dev.cfg
Flatpak Installs:
~/.var/app/com.valvesoftware.Steam/.steam/steam/steam_dev.cfg
- flatpak confirmation thanks to uranium4breakfast
My Discord : / discord
SPECS Below:
• OS: Fedora 40 Workstation
• Gnome 46
• CPU: Ryzen 7 5900X (4.9GHz)
• Memory: 49 GiB DDR4 3600mhz
• Storage: 22TB
• GPU: RTX 4070
• / mattscreative1 Follow me on Twitter
Want to be a dev Join us here • / gamedesignerslearnandt...
• / mattiscreative
If you want to catch me when I am live streaming You can follow me on twitch - Развлечения
thanks a lot, this is the best video out right now to setup fedora for gaming.
I followed your instructions, simply every single game I have been testing plays great, I can hardly believe it, because it didn't not work with other distros, don't know what fedora does thats so good but I think I will stick with it. cheers!
Glad I could help
i never had a problem with fedora i think i wanted a load and go distro its smooth and solid
I built a "how-to" using Debian (Linux Mint, etc). It works perfectly, but it does take a while to install the microsoft libraries, visual basic, etc.
I got the same game to work in Fedora a while back but wanted to test it now to see what, if anything, changed. Fedora seems to install .wine on the fly, as needed, so that's a really cool plus. I really want to use Fedora for a while and this process checks a really big box for me.
Just finished the game install, and i do believe it's even smoother with Fedora than LMDE (no offense LMDE lol). I could be wrong, but i've played Ghost Recon Wildlands enough to know what the hiccups are, however small, and so far, i don't see them in Fedora.
Edit: Gaming on Fedora and possibly even Debian has become so much easier to set up. When you install Lutris, it automagically starts downloading libraries and dependencies. You can even copy your current game data without installing it agagin, although sometimes that doesn't always work. I use Fedora nowadays and it's so much easier than it used to be.
@@Mattscreative do you have a tutorial for laptops that have both intel and nvidia cards? i am struggling to find something that allows me to switch between the 2
currently using ultramarine 39, didn't know that chacyos kernel already ported in fedora, after following now i don't have to relay on bloated forks, i installed what i needed most and some quality life packages. Thanks buddy!
Good luck!
When I ran dnf install akmod-nvidia, it installed 545.29.06 automatically, how would I switch to a driver that works?
Background music is awesome :)
love your tutorials Matt
This is amazing. I’ve never thought of Fedora as a gaming distro. Gave this a shot and runs way smoother than POP!, and even Linux mint… both felt clunky on my laptop… this just works.
I ran into a snag where I had to disable secure boot after installing the cachy kernel.
After I ran an update on cachy, it got what it needed for the signature and everything is back smooth.
yay hello cachyOS user
Great guide. Thanks!!
Your welcome
Why does Nvidia driver break EnvyControl's switching between Integrated and dedicated GPU, with error on bootup, starting fallback to nouveau as nvidia did not load (when i enabled Radeon integrated GPU)?
Dealing with Mobile GPU is a whole other can of worms that I am not qualified to handle if you need help on that head to glorious eggrolls discord there’s some people there that definitely are able to help
I m outta words. All i can say is, thank you!!! 🎉
You are so welcome!
nice video mate, i switched to nobara linux at the start of december so far has been good but i notice a little impac on performance and for some reason games that run on vulkan freeze after X amount of playtime, i guess is a problem with the nvidia drivers
would it be more efficient to install fedora and do these changes or should i just keep nobara?
Nvidia drivers don’t do that I have never had that issue with nobara and to be honest, I’m unsure because nobara is pretty close to what i did here and gives users more control over what they add or take away but you could try the kernel and see if that helps
@@Mattscreative i will, its bit weird cause doom 2016 will run like 1 minute on vulkan then freeze and path of exile will run like 10 minutes and then freeze but if i switch them to opengl then they work fine
@@Mattscreative i got it fixed its going to sound weird but the impact on performance and the freeze problem were caused by a PCI-E adapter for a M.2 drive
Does cachyos work with kde also? Cant find anything saying one way or other, also will the vrr work with a radeon card? Only about a week into my current linux experiment adter dropping linux during the win98 era, linux has gotten so much better since then
You do that kernels are universal to desktop environments… the kernel is the os and the de just goes over top to give you a useable experience so yes it will work on shitty kde and gnome or any other de
Great video! I'm thinking of trying out Linux for gaming and music production as that's what I primarily use on Windows 11, but not sure what distro to use. Would Fedora be a good shout or am I better off with Ubuntu studio or Mint + studio tools?
Try all of it and find your flow
May I know will everything break when upgrade from fedora 39 to 40?
Is it still necessary to use the bore-eevdf command since it's no longer listed on the linked guide on the github repo or should I use the regular "sudo dnf install kernel-cachyos kernel-cachyos-devel-matched" command?
Use what the copr says
help!! I have a boot error: nvidia kernel module missing. falling back to nouveau
This was install on a desktop pc? with dedicate gpu is correct?.. what about in a laptop with hybrid gpu (intel/nvidia rtx3050)?? the only issue i have.. is when the laptop comes out from sleepmode.. its show me a black screen and need to hardreboot; i have active hybrid mode the gpu's
I have a mux switch on my laptop so no idea about that sorry
'still not a fan of ubuntu' i think that is the most universal thing you can say in the linux community
I say it because ubuntu has always let me down and was too outdated and unstable oh and snaps ..
@@Mattscreative yup completely agree
I´d like give a try. The question is about gpu drivers. I presume with an AMD RX I shouldn´t use the nvidia parameters on command line (or elsewhere). I fear about dependencies conflicts.
Amd drivers are built in so ignore the nvidia stuff
Is the CachyOS Kernel better than the Nobara one? Just wondering if it would be worthwhile to change my kernel, already upgraded to Fedora 40 with Nobara.
in a few ways yes like with emulators
Can Epic Games launcher installed using Lutris be used to install games? I was able to install and boot the epic games launcher but have not tried to install any games using it yet.
use heroic game launcher for epic games as said in the video
I could`t install the Laucher via Lutris on Nobara. After I switched to Fedora, installing the Epic Games Launcher over Lutris was no problem. I was able to install and play GTAV over Epic. I use the KDE version of Fedora with Wayland.
Thank you so much for this.
you are very welcome
@@Mattscreative Hey there! This is my first linux install, so I'm brand new to this. Apologies if the question is stupid. So, I have one issue: when trying to set VRR as priority, I'm getting an error saying there is no matching repo to modify. Any way to fix this? Thanks!
If you are using fedora 40 check pinned comment
good tutorial, honestly a written guide line per line would be a good fit to share
Might get someone to do that in my discord
I recently installed Fedora 40 on my old laptop. Will this fedora 39 video guide be same for 40 too?
Yes minus the vrr i will add something soon in the description
@@Mattscreative i saw in the description the updated command for vrr on 40, but there is nothing updated for saving it through restarts (like in the video with the dnf config-manager --save --setopt... command). is it necessary in 40?
Small fyi for all beginners like me that couldn't fully reboot at 11:29 and got an "bad shim signature" error.
It's because of secure boot in your bios. You have to deactivate it first.
Nice guide👍
Glad you think so!
So, I have an AMD GPU; would I put that statement "nvidia-drm.modeset=1" in my grub config? I have both AMD CPU and GPU.
Amd
Cpu thing use but anything nvidia avoid
You don't really need to add the parameter "nvidia-drm.modeset=1" since this is just for Nvidia GPU's only. AMD is out-of-the-box so you don't really need to do that. Though, if you have an AMD CPU, you can add "amd_pstate=active" in your grub config parameter.
In the dnf.conf file, I also add: defaultyes=True. This way the default prompt for installing is always yes, so you can just hit ENTER when installing from the terminal.
Not a good idea but if that works for you sure
After mentioning this previously and then mentioning it again, enjoy any potential snafu's that might come along with not paying attention. 😆
Good day, do you know if is possible to apply this kernel changes in ubuntu?
Go ask in the pikaos discord they handle that very well
Would this also work with an AMD GPU? I should say, does this improve performance on an AMD GPU?
Ya should get a boost but mesa 24 is the real winner
I know this is using NVIDIA drivers, but what it you are using an Intel ARC card? Can I install the Kernel without messing up the ARC stuff?
Ya
how does dnf copr enable kylegospo/gnome-vrr work? I thought dnf is just for install and update. Sorry I'm very new to Fedora.
it enabled a repo a copr which let's you download and use patched versions of mutter or gnome-shell or other things even kde 6 and more
@@Mattscreativefor the future, how careful should I be when performing sudo dnf update? I assume certain things in wayland, the kernel etc might break. Where do I keep updated on the news?
@@anonemoose102 If you're concerned about things breaking after you've already acknowledged that you should be careful and the rest of the dots connected in your brain as to any potential steps that one should take to make sure that something doesn't break, or if you're concerned about something breaking, then use snapshotting aka atomic desktop aka silverblue... 🤔 "the more you know"
I followed this tutorial twice on two different versions of fedora and both times consistently, steam crashed and upon reboot i was left with the infamous "loading user data..." Bug
Anyone know the name of the song that starts around 22:10?
Matt, in a terminal, you can hit the Ctrl button and scroll up on your mouse wheel to increase the font size.
Tips and tricks can come later
Or hit ctrl shift +
which i used later on but showing where the buttons are matters just as much ... something they can see
Thank you, I just got a framework laptop and installed Fedora. Much nicer than Windows! This helped me a lot.
Wicked glad i could help
do you recommend doing this over a distro like nobara?
No
Fantastic instructions!! I ran into an issue where Python 3.10 was crashing when trying to ProtonUPqt. Do you have any ideas?
Sadly, I don’t because that app constantly breaks
Try logging into Steam first
@@Mattscreative okay so it’s failing because it can’t find a file. /home/USER/.local/share/Steam/config/config.vdf . Are you familiar with this file?
log into steam will fix that@@TheTinyLeviathan
0:36 what is the music in this video can you “Link” it
So i have to follow all theese steps to play on linux fedora 40? what happens if u just install steam and cs2 and not doing this first? :(
The performance is not so good or if you have an Nvidia card you don’t have drivers you can always do what you want to though
@@Mattscreative Okey have nvidia so I have to follow then :) so after this guide I can follow your steam install guide? 😁
ya all guides work
Would this be better or the same as installing Nobara? I'd prefer to set everything up myself using stock Fedora, but if there's a real benefit to using Nobara I'll gladly use that.
Install nobara if you don’t want to do this your self and the results should be the same
The difference is so minor that its honestly whether or not u want to use Gnome or KDE. Personally, fredoa is the safer option but it take more work. Nobara39 is fantastic but it feels....proprietary? Idk if that makes sense
I have the latest kernel version of Xanmod. I don't really need CachyOS kernel correct?
xanmod has no where near the optimizations of cachyos kernel
@@Mattscreativeinteresting. I will install it and give it a try. As to GRUB_CMDLINE_LINUX = "nvidia-drm.modeset=1 amd_pstate=active", I have an AMD Ryzen chip, AMD Radeon graphics and an Nvidia Geoforce RTX Studio. Currently, I have "GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb". Would you still recommend I change it?
Yes because wayland is way better then x11
@@Mattscreative done.
@@Mattscreative done.
Great videos. For a very casual gamers perspective. Better to use Fedora 40 and follow the instructions you provide to optimize it even better or use Nobara instead???
Use nobara if you want
Switching to dnf5 would have helped a lot with the dnf speeds in the installation bits (maybe). Omg everytime dnf asked you for a confirmation to imprt a gpg key it would take it like 5 years to show the prompt.
Again, this is for beginners, simple little easy things to do where switching to DNF five can be a bit complicated for a new user
I used ultramarine 39 and bro like fedora it's awesome and more stable and smooth, also they solved grub problem
Thats great
Do these procedures work in Fedora KDE?
Since when did a DE determine whether or not one could follow the steps for dependencies needed or installing anything using a package manager? 🤔
I keep getting a black screen when is booting up to install, you see the fedora logo at the bottom and after a bit it just stays black
Nobara discord has a fedora channel they can help
@@Mattscreative found out that disabling 3D acceleration let's you continue
idk why but fedora simply refuses to use my GPU... can someone help? (BTW: i use KDE idk if it makes any difference)
Head to nobaras discord for help i am off for the weekend
hi i followed everthing but when booting up on the login screen it says nvidia kernal missing
You forgot the sudo akmods
Thanks so much for this, I appreciate that I could go use Nobara instead but honestly I don’t enjoy the whole KDE experience.
theres nobara gnome too
Well thank you so much for realizing that with Linux you're totally not locked into only one DE choice. lol
why login as root and use sudo for every command? seems redudant
To you maybe to those who are new not at all
My steam is flickering while I'm using it and idea why?
Possibly driver related? Does this just affect the Steam app itself or games running through Steam as well?
Try switching the Desktop Environment off Wayland to Xorg. Works for me with an nvidia card and it’s the only thing that works with recent drivers. There will be an option to do this on login screen.
Can this tutorial still be followed? You've helped me give up Windows and I'm eternally thankful for your tutorials and help!
@@Kunsteak yes fedora 40 still works for this and any changes needed will be in pinned comment
im not able to aply gnome-vrr, terminal says the project do not exist T_T
@@paulodetarsojr for fedora 40 or fedora 39 ? 39 needs a copr package and 40 can use the cmd
@@Mattscreative Fedora 40
I didnt read anywhere on the guide for the whole GRUB-mk2 part?
now it's been added
Very well made video👏👏 I agree, ubuntu isnt it, but its actually a very good base for better distros like Pop OS, Zorin, Mint. Ubuntu drivers utility easily installs nvidia drivers, the mentioned distros have elegant automatic solutions for nvidia. Fedora is just a nigghtmare for nvidia users. Got it working for 39 after lot of research, still working on 40...
had no issues with fedora 40 with nvidia
@@Mattscreative i take the "nightmare" back, that was unfair😑 Fedora is awesome for sure. There was a lot of nvidia discussions during the beta, Thorvalds was right😉
@@sheldonkupa9120 Torvalds**... (Spelling is your friend)
This works with an AMD gpu right?
Don’t do the nvidia stuff and your good
Gnome-vrr on fedora 40 isn't avialable yet. Probably have to wait a bit until it comes out
or you check the first comment that is pinned and enabled it now
I just flashed this today, and realized some of the scripts were updated, so I have been able to find the correct ones…however this one I got stuck on too. Where is a good place to find information like this when it becomes available? I used Linux many years ago, so a lot has changed since. Good for a refresher, but I’m here to stay.
@@MattscreativeI’m not seeing a pinned post with a solution. I just finished the whole process but this portion and priority for it did not work for me.
@@Agitated_Hamster it all worked for me. I just googled vrr fedora 40 and read a couple of sites the thing that Matt put on the description. Priority is not going to work because we didn't have that archive generated due to it being an experimental feature.
Zelda music for the win :)
Very true
my half life was working before, and now it closes sudently. What could it be, I have fallow the video steps
perhaps i did something wrong... cs2 is really laggy, frozen, i gues I gotta do a fresh install of fedora again
Does this work for pirated games also?
Yes, just need to use Wine to run the setup then add the installed exe application to Lutris or Heroic.
Brb, reporting you.
How did you learn all that you know about linux?
just by doing and researching than i share it on my channel
@@Mattscreative sick guess I just gotta read the arch manual lol
@@anonemoose102 Yeah it'd be better than expecting everyone to do the work for you (which I'm going to presume you'd prefer given your previous comment) 🤡
What about Ubisoft games? I have Devision 2 on my Windows laptop I love playing.
yes it works on linux
I followed this but CS2 crashes on startup :(
Do you or anyone have any idea on how to fix this?
Play the proton version instead
@@Mattscreative hey, thanks for your reply!
The Proton version is not suitable for playing online due to VAC, but I managed to fix it by downgrading nvidia drivers to 535. Everything works fine now. Thank you for your tutorial!
Never got vac banned yet weird
@@Mattscreative oh it was not a VAC ban, but when I tried to connect to the official servers it would say something like "your game signature is modified, can't play on servers where VAC is enabled"
Possible to play league of legends on fedora 40?
no, ever since they installed the rootkits on windows pcs lol. I had it on windows but uninstalled it after they pulled that stunt
I get screen flickering when trying to play games on steam
Probably something to do with the graphics driver.
How can I get this done withbfedora 39 silverblue?
No sweet clue im sorry I don’t touch immutable distro
@@Mattscreative dam lol
By asking your question in a search engine? Do you not know what to ask in one to receive the answers that you're looking for? Or do you just not want to do the work? 🤔
@@surewouldbeniceifyoudid ok so google it for me. changing dnf to silverblues rpm ostree does not work.
None of the cacheOS kernels work. And loads to a black screen and even turn my rgb keyboard off. Tried multiple times from scratch with and without secure boot on Fedora 39
Sucks they don’t work for you .. head to there discord and report the issue
@@Mattscreative yup, thanks!
i messed up my fedora install in trying to get my xbox controller to pair via BT.
for future watchers please vet that issue for yourselves.
ya BT is a pain for xbox controllers it's why i ditched that controller
@@Mattscreative what do you use now a days? for controllers
Thanks man got black screen on drugdealersimulator and i kinda manage to play battlefield. but it crashed more then on windows so i quited it. Hope ea will support it soon. Reason why i left windows. is because windows 11 is getting like EA pay to win.
Never had to pay to win on 11 yet
That made absolutely no sense... Better statement would be the fact that it's spying on you and YOU as the end user are the product... But hey, Spongebob, refer to it however you'd like... lol
same for amd radeon as well?
Check comments or the description for amd gpus
@@Mattscreative thanks man 👍
Hola tu configuracion de arch y de fedora me parecen las guias definitivas para jugar óptimamente pero creo que deberias sacar una config para usuarios de ubuntu creo que la rompes con ella por la cantidad de usuarios que hay.
I think that you should do that yourself and release a video of it if it means that much to you.
Hi, Matt. Great Video. How about if I use amd cpu+gpu for this line add on line
GRUB_CMDLINE_LINUX = "nvidia-drm.modeset=1 amd_pstate=active"
if you have an amd cpu also add amd_pstate=active.
Thanks alot.
I just used Nobara 39, see if fedora is better. but fedora is cleaner :D
If you use an AMD, CPU , and a GPU you keep the Amd P state and leave out all the Nvidia stuff
@@Mattscreative great. thanks so much
@@Mattscreative what is when I use Intel CPU and GPU? thats same?
can you demo AMD 7840U w/ 780m iGPU :)
great vid
no since i don't have that hardware
Can you send him your hardware since it matters that deeply to you what specific hardware it is being demo'ed on? Why would you even ask a question like this? LOL
Linux guide without terminal challenge: IMPOSSIBLE DIFFICULTY
Imagine being scared of the terminal when its so easy to
Could fedora play Elden ring
Yes
Bro said slow day internet mine took 3 hours
it was slow ... found out my roomates messed with the router and i fixed it so now my max speed is 200MB/s
Get good, then.
buddy instead of including a link for the code you need to copy just put it in the description, i cant any of the shit your copying onto the terminal
That’s you issue nothing more. Also, I didn’t code anything. And using the terminal is not coding. It’s writing and I included half of everything in the description … which by the way can only fit so many characters. I have written guides in my discord. Just click the user role.
@@Mattscreative yes, they just want spoon feed, learn Linux!
you created a tutorial for beginners but then don't explain anything. How is a beginner supposed to learn?
Well, it seems like a ton of beginners have learned from this. You’re just not the type. Which is completely fine. Take the easy way out use nobara
Fedora is trash distro. For gamers better choose is Nobara.
Which is fedora .. lol learn to use linux better. This is for people who don’t want nobara but clowns will clown
@@Mattscreative Bravo you spent 30 minutes to make worse Nobara from fedora. Time well spend.
Nobara is just fedora with extra software. In what way nobara is better if fedora is trash? You don't even get performance boost. There are people who prefer setting up themselves rather than installing distros like nobara.
@@TheCyberDevil ok so why use fedora instead of Gentoo? What? To safe time?
IMO for gamers who want try linux for the first time, better idea is recomend something who works after installing
@@foxxxy4963 I recommend nobara for new users instead of setting up fedora too. You said fedora is trash, if fedora is trash how is nobara any good? If nobara is good that means fedora is good. Just because it takes time to setup, it doesn't mean it's a bad distro. After all fedora is a general purpose distro, so how can you expect it to have a pre-installed gaming setup?
i keep getting 'Failed:
akmods-0.5.8-6.fc39.noarch' no matter what. solution?
Do su then enter admins password then do akmods then dracut -f
Not sure where I'm going wrong but tried these steps two separate times and fps is very low in games, Fedora 40, 550 nvidia driver, vrr doesn't turn on after {gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate']" I tried both wayland and x11 both have the issues do i need to do fedora 39? Maybe an older graphics driver?
Its working now but on X11, no wayland
I dunno why but everytime I try games on linux, it disappoints me. Like I get 140+ FPS in GTA V in Windows but on linux it just stays between 30-40 with massive stutterings.
GTA 5 for me is maxed 1440p 165fps and up better then windows