 Hi everybody, I'm Denji and this is a fresh installation of Manjaro KDE. Besides the fact that, well, I've installed OBS so I can record this and I've updated the system. Now, I'm gonna be showing off something pretty interesting today. If you have an NVIDIA laptop, so a laptop with an NVIDIA dedicated graphics card in it, and you use it with Windows, what you probably notice is the fact that there's a GUI to select specific programs so you can run one with the NVIDIA graphics card and one without. On Linux, we haven't really gotten that yet. So what I did was I created a workaround for people to automatically configure the NVIDIA Prime like a driver thing, which basically runs your entire system off the NVIDIA graphics card. Now, yes, it's incredibly power consuming and such, but it is much better than it yields great performance and it also makes recording very, very easy. On Windows, recording with like integrated graphics and also having to deal with like the NVIDIA graphics, it's a pain. Basically, there's this really, really good wiki page and this is actually what I'm talking about today, but this is the wiki page, right? And it explains how to set up the actual Prime drivers and it gives you all these steps. You gotta like copy these things and we gotta put them into files and you gotta move them to locations and such. So what I did was I wrote a script that basically automates this process. You run like two commands and you basically already have everything up and running. You just restart your computer and it will be running off the NVIDIA graphics card. So first of all, I'll be showing you that I'm running off, you know, Intel integrated graphics. I'm gonna open up the terminal and I'm gonna copy paste this command right here. And as you can see, SGI Mesa project, my vendor is Intel. So we're using the Intel graphics with OpenGL and such. Now we're going to be downloading the script. So clone or download, not this script. I wrote it for GNOME as well, but the GNOME version is currently, you know, in development because I haven't tested it yet. In theory, it works, but like I haven't tested it. So yeah, I'll test it and eventually I'll get back about it working. You open up the little zip that you've downloaded and you can just extract this. I would put it to my desktop, but you can put it anywhere. Then basically now we can close this as well. There's the instructions right here written in this markdown file in the GitHub page. That is linked in the description, by the way, where you can basically see what to actually do. So first of all, we gotta run this command. So I'm gonna copy and paste that in the directory for our desktop environment. Now currently the only supported version is KDE. The GNOME version is in development. I need to test it first. An XFC version, I haven't even started on that one. So it will be done soon, but for now we're basically dealing with only the KDE version supported. I'll have the automatic configuration for the other ones made for now. If you're on KDE or GNOME, you're gonna have to just use this guide and go to the specific section for you once you're done with all the stuff. So what we gotta do here is we gotta do CD desktop, right? And then we got a CD into that directory. So m, h, w, d, that one over here, press tab and that auto fills, press enter. And as you can see we're there. Now we got a CD, if you allow us right here. You'll see there's the various ones. There's the prime for the GNOME and prime auto config for KDE. Now we're on KDE obviously. So CD, prime, auto config, then we were gonna write K and then auto fills it for us, press enter. Now we've got to copy and paste that command. So sudo chmod plus X auto config.sh. It makes our scripts executable so you can actually run the script. Now we go sudo dot slash auto config.sh, press enter. And what it will do now is it will actually install the NVIDIA drivers. First, this is actually just a very simple m, h, w, d command. The script is crazy simple. I only really made this so I don't have to deal with having to copy and paste all that stuff from the wiki because that's really annoying. What this is gonna do is this is going to actually install the NVIDIA drivers themselves. Although it's not gonna configure them. That comes, the script will do that later, but just this step right here with the green text is when it's going to install the NVIDIA like actual drivers. So I'll get back to you once this process is done cause it might take some while. Okay, so as you can see here, the script is done and you might see a little error if you run it. RM cannot remove slash etcmod probe dot d, that stuff. That's perfectly normal because the new Manjarra versions don't come with that file. Anyway, as you can see, it's giving us an instruction. Now please run sudo chmod that. Basically it's giving us this because for some reason the script itself can't like give executability to certain files. So we have to type in the thing ourselves. So basically just control shift C, control shift V that and there you go. It runs it, I just press to enter. What this does is it makes the X setup file which actually boots up the NVIDIA stuff. When we turn on our computer and boots us into SDDM or simple display, whatever manager or something. I forgot the actual name of it, but when it boots us into our desktop environment or visual environment, what that script does is it actually makes the NVIDIA drivers work. All of this information is available not on my GitHub page, but on the prime auto config like a wiki page or wiki page where you can read this very interesting article and it explains the actual steps of what my script basically does because it automates all of this. So this was on KDE. Currently it only works on KDE. So this script that I wrote KDE, but I'll get it to work on GNOME and XFCE soon. Now let's actually test it out though because you saw before that if I go a little bit up in my history, I ran this command over here. And it gave me Intel, right? So what I'm gonna do now is I'm gonna restart and I run that command again and it should give me results with NVIDIA. It should tell me that I'm running NVIDIA. If everything went well and didn't completely fail. Okay, so I'm booted back into Manjaro after restart. That's a good sign because sometimes they're doing this driver stuff. Things just kind of don't work, but clearly the script succeeded or either failed horribly and didn't do anything because we're booted back into Manjaro. Now we actually have to check if we are using the NVIDIA drivers. So let's go into our terminal. We run the command and as you can see NVIDIA corporation we're running with the NVIDIA GPU after running my auto configuration script. It only works on KDE for now. I'm working on the GNOME and I'm working on the XFCE versions. You can do it on like an already like a running Manjaro system but I would recommend doing this on a new system. And also since it is licensed under a permissive license, I cannot guarantee you anything. The software comes with no warranty. You're responsible for what you do with your computer. Although I recommend using this. I cannot tell you that it's going to be completely safe. I've tested this on a computer with NVIDIA GTX 1050 mobile. So that's the hardware I used if you need reference. This should work on any NVIDIA laptop as long as your PCIe like identification number is one or like 001 or something listed in this wiki page that is loading right here. So just being obviously the Manjaro like wiki page on how to set all of this up manually if you don't want to use the auto configuration script. So in HWD, prime auto config, this is linked in the description. Amazing thing that I spent way too much time on. And I hope you enjoy this Manjaro KDE users. I hope you enjoy this tool if you ever need to set up a prime computer. Thanks for watching. I really hope NVIDIA gets open source drivers out there actually good. So none of this will be necessary. They could just be baked straight into the kernel and we wouldn't have to do any of this but you know, workarounds are necessary sometimes. So thanks for watching this video. Remember, it only works on KDE. Thanks for watching. This video was surprisingly not brought to you by AMD. Although they have much better drivers like none of this is required in the first place.