PDA

View Full Version : Overlocking your GPU in Linux


AmbientFiction
12-14-09, 05:39 AM
Yes yes I know this was cover by Sydney in his guide to installing ubuntu/nix distros to fold.

Well I'm gonna be covering an issue I ran into and how to fix this issue for those of you who do not know how to fix this issue.


Overclocking your GPU in Linux

If you are doing this, I assume you have already done so in Windows and know the safe clocks for your card(s). To overclock your video card in Linux you have to enable ‘coolbits’ in your nvidia control panel. To do this we will have to edit the xorg configuration:

$ sudo gedit /etc/X11/xorg.conf

And then add ‘Option “CoolBits” “1″‘ under ‘Section: “Device”‘ like so:

Section “Device”

Identifier “Configured Video Device”

Driver “nvidia”

Option “NoLogo” “True”

Option “Coolbits” “1″

I myself have done this very thing and had it work and on the other hand I've been given crap by the OS about how my xorg.conf has parse issues and xserver will not run on reboot. First time I had this happen I just reinstalled clean slate ubuntu formatted the whole system and just started over.

Well let me tell you its not all that hard to fix this issue and today I'm gonna teach you how.

First off when yousudo gedit /etc/X11/xorg.conf to add the Option Coolbits to the xorg.conf file. Save yourself an untouched copy as say xorg.conf2 . Really simple all you're doing here is making a back up of this file before you add the Option "Coolbits" "1"

So ok lets say upon reboot you run into the same issue I was having. Which was when xserver tried to boot it gave me a blue screen error. Then after looking at all the errors telling you that Xserver can not run and to restart GDM once you fix the issue in xorg.conf. It then dumps you to a tty1 login. At this point if you don't know your way around linux and just think hey it will be easier if I just reinstall like I did. Trust me that is the wrong route this fix will take you all of 3 mins 5 is you're a slow typer. Its rather simple and here is the commandsudo nano /etc/X11/xorg.conf2

This will load your backup xorg.conf file you made before changing settings. Now press ctrl+o. At which point it is going to ask you what name you want to save as. Save the file as xorg.conf. It will ask you if you are sure you would like to overwrite. Tell it yes and then press crtl+x to exit the program. type in sudo reboot and let linux do its thing.

Problem solved!!

Hope this helps it surely helped a Nix noob like me.

Mods feel free to edit title and any error you find in my writing. If someone would like to put this somewhere fine by me. I'm not the best at writing tuts but I'm always willing to share my knowledge.

Fold them CPUs and GPUs till they bleed!!!

Zerix01
12-15-09, 02:16 AM
Strange, I've never had an issue like that from only adding the coolbits flag. I did have a similar problem when I added my second video card, I had to specify the PCI busses they were located on. See http://gpu2.twomurs.com/index.php/Linux#Multi-GPU_Xorg_Config_Howto for more information if you get stuck like that.

AmbientFiction
12-15-09, 06:34 AM
Strange, I've never had an issue like that from only adding the coolbits flag. I did have a similar problem when I added my second video card, I had to specify the PCI busses they were located on. See http://gpu2.twomurs.com/index.php/Linux#Multi-GPU_Xorg_Config_Howto for more information if you get stuck like that.

Thank you for that link I am looking into the issue now. When I find the reason I've been having this problem I will let you know. Yeah that has useful info in it but I'm running a single GPU. Its just being dodgie.

Sydney
12-15-09, 07:00 AM
Strange, I've never had an issue like that from only adding the coolbits flag. I did have a similar problem when I added my second video card, I had to specify the PCI busses they were located on. See http://gpu2.twomurs.com/index.php/Linux#Multi-GPU_Xorg_Config_Howto for more information if you get stuck like that.
Actually, all you need to do is run
sudo nvidia-xconfig --enable-all-gpus

That automatically adds all your video cards to the xorg.conf

AmbientFiction
12-15-09, 03:00 PM
Ok so to anyone having the issues that I have had there are two commands that will fix this issue once and for all.
Here was the issue I was experiencing
Failed to parse X config file 'etc/X11/xorg.conf (pop-up box)


VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Undefined Device "(null)" referenced by Screen "Default Screen".(From terminal)



gksudo nvidia-xconfig and then gksudo nvidia-settings

Select your resolution and save to X.