How to overclock Nvidia cards in Ubuntu/Kubuntu 8.10 and 9.04 - 09/01/2009 by Andrew


NOTE: How to overclock Nvidia cards in OpenSUSE

This is a first for www.HeadshotGamer.com, though after searching the web for this information I thought it would be best to write up a quick 'HowTo' guide so that anyone else searching the interwibble for answers can quickly get their Nvidia cards overclocked.

Warning

1. Overclocking is at your own risk, I'm not responsible for your actions, only overclock things you're willing to lose to damage, overclocking will void your warranty, overclocking will melt the icecaps and overclocking will probably only give you a few more frames per second. As always, YMMV.

2. DON'T follow old instructions on how to overclock your Nvidia card under Linux. There's quite a number of outdated information out there that no longer works with Ubuntu's trim xorg.conf file.

3. Keep an eye on your GPU temperatures and do some lengthy 'in game' testing (don't just rely on running glxgears) to ensure everything is stable.

Ensure you're running the proprietary Nvidia drivers

You need to ensure that you have your Nvidia drivers loaded and not just the 'nv' drivers. Run:

$ nvidia-settings

If you see an error message then you need to load the proprietary Nvidia drivers. You can do that from 'Hardware Drivers' in the Administration section of the menu. You can also manually install Nvidia drivers though this is outside the scope of this article.

Time to overclock!

Now that you're running the fast (though closed source) drivers, it's time to modify your xorg.conf file. It's located here - “/etc/X11/xorg.conf”. Edit this as root with your favourite editor.

You will be adding a single line to the section “Screen”:

Option "Coolbits" "1"

Your version may differ slightly to my version, though for clarity I'll write mine in full.

Before:

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection


After:

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
Option "Coolbits" "1"
EndSection


That's it! Save the file and restart. Hopefully you don't have any problems and X starts up fine. Run nvidia-settings again and check that you now have “Clock Frequencies” available. You can now enable overclocking and modify both your 2D and 3D frequencies using nvidia-settings.

Overclocking without manually using nvidia-settings

As soon as you reboot you'll lose any changes that you've made so to overclock easily or to permanently overclock your Nvidia card you need a bit more help. Download nvclock from the repos:

$ sudo apt-get install nvclock

Using nvclock you can setup a simple script to either overclock your graphics card by running a script (or by using an applet on the menu).

To create this script you need a file with the following:

#!/bin/bash
## This will overclock the GPU to 300 and Memory to 400 – Change accordingly!
nvclock -b coolbits -n 300.000 -m 400.000


NOTE: 300.000 is in reference to the GPU speed (both 2D and 3D) and 400.000 is in reference to the memory speed (both 2D and 3D). Modify accordingly to suit your card!!

Save this file and make it executable by typing:

$ chmod +x overclock.sh

You can now run this from the terminal (or link to it with an application launcher):

$ ./overclock.sh
Requested memory clock: 400.000 MHz
Requested core clock: 300.000 MHz


Adjusted Coolbits 2D/3D clocks on a nVidia Geforce 8400GS
Memory clock: 400.000 MHz
GPU clock: 300.000 MHz


Auto Overclock at Startup

With Kubuntu, just drop this overclock.sh script in your “/home/username/.kde/Autostart” directory. For the gnome users, you can simply run “gnome-session-properties” from the terminal and either link to the script or manually type in the overclock command.

I hope that this has made overclocking 8.10 or 9.04 easy and you're able to get a few extra frames for just a few minutes work. Any issues, questions or comments, please add them below!











Comments

Name

Email
(not required, not published)
Website
(not required)
20 + 14 =

Comment


 

Andrew http://www.headshotgamer.com/
11/01/2009 7:13:59 PM

True! I guess it's up to the user to decide. Thanks for your input!

G&T
11/01/2009 6:25:18 AM

echo $PASSWORD | sudo -S $COMMAND or alternatively add the script path to /etc/sudoers. example: username ALL = (ALL) NOPASSWD: /home/username/.scripts/test.sh

Andrew http://www.headshotgamer.com/
10/01/2009 9:42:11 AM

The only problem with that is that you have to use "sudo", so it's not great for setting up bash scripts or using as a command in an application launcher since you'll need to to enter the root users password (or worse yet, include it in the script!).

G&T
10/01/2009 5:17:48 AM

You can also use this command: sudo nvidia-settings -a GPUOverclockingState=1 -a GPU2DClockFreqs=GPUCORE-MHZ,GPUMEM-MHZ -a GPU3DClockFreqs=GPUCORE-MHZ,GPUMEM-MHZ ie. GPU2DClockFreqs=700,666 GPU3DClockFreqs=700,666


Similar Articles:
Warsow 0.5 Released - 4/10/2009 9:59:59 AM
Nexuiz 2.5.2 Released - 3/10/2009 4:48:37 PM
Ubuntu – Unwanted Poster-boy? - 21/08/2009 8:43:59 PM
PS3 Slim - No more Linux? Ahh, but for how long... - 20/08/2009 9:20:06 PM
Review: Eeebuntu 3.0.1 NBR - 12/08/2009 10:13:08 PM
Nexuiz 2.5 has been released - 16/04/2009 10:32:09 PM
Glest 3.2.1 has been released - 15/02/2009 11:44:18 AM
Nvidia releases Linux driver version 180.29 - 12/02/2009 8:04:58 PM
SuperTuxKart 0.6 has been released - 27/01/2009 9:06:58 PM
Review: Linux Mint 6 'Felicia' - 25/01/2009 4:06:29 PM
Review: Fedora 10 - 19/01/2009 11:30:49 PM
Review: OpenSUSE 11.1 - 17/01/2009 10:50:35 PM
How to overclock Nvidia cards in OpenSUSE 11.1 - 17/01/2009 2:23:05 PM
How to enable Nvidia drivers in OpenSUSE 11.1 - 17/01/2009 1:54:44 PM
Nvidia releases Linux driver version 180.22 - 11/01/2009 10:35:01 PM
How to overclock Nvidia cards in Ubuntu/Kubuntu 8.10 and 9.04 - 9/01/2009 12:15:30 AM
TORCS Version 1.3.1 Released - 20/12/2008 10:50:06 PM
Ubuntu 9.04 'Jaunty Jackalope' – What to expect - 23/11/2008 11:25:42 AM
Review: Ubuntu 8.10 'Intrepid Ibex' – Missed the mark? - 22/11/2008 10:22:31 PM
Gaming and Linux software RAID – Your path to pwnage - 3/11/2008 3:28:23 PM
OpenArena 0.8.1 released - 3/11/2008 1:13:25 AM
Ubuntu 8.10 'Intrepid Ibex' has been released - 31/10/2008 12:07:46 PM
Nvidia Linux drivers 177.80 - 8/10/2008 10:32:06 PM
Gaming on Linux – What are your options? - 6/10/2008 5:40:24 PM
Review: Fedora 10 Beta (Gnome) - 4/10/2008 8:24:51 PM
Review: Simply MEPIS 8.0 Beta 2 - 1/10/2008 7:35:56 PM
Review: SuperTux 0.1.3 - 29/09/2008 9:23:59 PM
Review: Tuxpuck 0.8.2 - 29/09/2008 2:51:56 PM
Review: Mandriva Linux 2009 Release Candidate 2 (Gnome) - 27/09/2008 9:49:21 PM
Review: Xubuntu 8.10 'Intrepid Ibex' Alpha 6 - 21/09/2008 4:20:03 PM
Review: Kubuntu 8.10 'Intrepid Ibex' Alpha 6 - 20/09/2008 10:36:25 PM
Review: Kubuntu 8.10 'Intrepid Ibex' Alpha 4 - 24/08/2008 9:15:57 PM
Review: Ubuntu 8.10 'Intrepid Ibex' Alpha 4 - 15/08/2008 10:16:51 PM
Review: Enemy Territory: Quake Wars (ET:QW) - 13/08/2008 9:07:32 PM
Review: OpenArena 0.8.0 - 10/08/2008 8:17:53 PM
Review: Powermanga 0.90 - 10/08/2008 5:05:15 PM
Review: Mandriva Linux 2009 Beta 1 (KDE4.1) - 31/07/2008 5:36:06 PM
Review: Ubuntu 8.10 'Intrepid Ibex' Alpha 2 - 13/07/2008 4:55:45 PM
Review: OpenArena 0.7.7 - 2/07/2008 11:59:37 AM
PlaneShift 0.4.01 has been released - 30/06/2008 11:01:11 PM
Review: linuX-gamers Live DVD 0.9.3 - 29/06/2008 10:17:59 PM
Nexuiz 2.4.2 has been released - 12/05/2008 6:17:58 PM
Review: Nexuiz 2.4 - 26/04/2008 10:19:33 PM
Review: Warsow 0.42 - 25/04/2008 3:34:31 PM
Review: The Open Racing Cars Simulator (TORCS) 1.3 - 24/04/2008 10:39:00 PM
Review: SuperTuxKart 0.4 - 24/04/2008 9:15:09 PM
Review: Progress Quest 6.2 - 24/04/2008 6:14:17 PM
Review: Glest 3.0.0 - 22/04/2008 10:28:42 PM
Review: FreedroidRPG 0.10.3-3 - 22/04/2008 5:59:40 PM
Unreal Tournament 3 (UT3) Linux Client, where art thou? - 1/04/2008 10:13:48 PM








Advertising - About Us - Contact Us - Link To Us - Site Map
All trademarks, icons, and logos, shown or mentioned in this web site, are the property of their respective owners. All rights reserved.
Reader comments are owned by the poster. We are not responsible for them in any way. Comments may be deleted at any time for any reason.
Copyright © 2008-2009 by HeadshotGamer.com

Valid CSS!