Foreverrising Blog

April 16, 2011

Overclocking Radeon in Ubuntu

Filed under: Uncategorized — Tags: , , , , , — foreverrising @ 11:26 pm

This is a dump of aticonfig. Forgive the formatting.

ATI Overdrive (TM) options:
The following options are used to get and set current and peak, core
and memory clock information as well as read the current temperature of
adapters. By using the "--adapter=" argument the ATI Overdrive (TM)
options can be targeted to a particular adapter in a multi-adapter scenario.
If no adapter is explicitly targeted the commands will be run on the Default
adapter as indicated by the "--list-adapters" command
Unlocks the ability to change core or memory clock values by
acknowledging that you have read and understood the ATI Overdrive (TM)
disclaimer and accept responsibility for and recognize the potential
dangers posed to your hardware by changing the default core or memory
Disables ATI Overdrive(TM) set related aticonfig options. Previously
commited core and memory clock values will remain, but will not be set
on X Server restart.
--odgc, --od-getclocks
Lists various information regarding current core and memory clock
Including: current and peak clocks
the theoretical range clocks can be set to
the current load on the GPU
--odsc, --od-setclocks={NewCoreClock|0,NewMemoryClock|0}
Sets the core and memory clock to the values specified in MHz
The new clock values must be within the theoretical ranges provided
by --od-getclocks. If a 0 is passed as either the NewCoreClock or
NewMemoryClock it will retain the previous value and not be changed.
There is no guarantee that the attempted clock values will succeed
even if they lay inside the theoretical range. These newly set
clock values will revert to the default values if they are not
committed using the "--od-commitclocks" command before X is
--odrd, --od-restoredefaultclocks
Sets the core and memory clock to the default values.
Warning X needs to be restarted before these clock changes will take
--odcc, --od-commitclocks
Once the stability of a new set of custom clocks has been proven this
command will ensure that the Adapter will attempt to run at these new
values whenever X is restarted
--odgt, --od-gettemperature
Returns the temperature reported by any thermal sensors available on
the adapter.

ACPI Options:
Enable/disable ACPI services. In the case of BIOS or kernel ACPI issues,
ACPI services in the driver can be disabled through this option.
The ACPI services are enabled by default.
Enable/disable display switching with ACPI methods on mobile platforms.
This option is enabled by default.

My card – ATI Radeon 5770. Enable overclocking and show values:

sudo aticonfig --od-enable – Enable overclocking
sudo aticonfig --odgc – Show current card clock values

Output from my example card (ATI Radeon 5770):

Default Adapter - ATI Radeon HD 5700 Series
Core (MHz) Memory (MHz)
Current Clocks : 850 1200
Current Peak : 850 1200
Configurable Peak Range : [600-960] [1200-1445]
GPU load : 97%


aticonfig --odsc=930,1400 – Set clockspeeds, in MHz [coreclock,memoryclock]
aticonfig --pplib-cmd 'set fanspeed 0 80' – Kick up the fanspeed

BitCoin Mining and Ubuntu 10.10 – ATI Radeon 5XXX/6XXX

Filed under: Software — Tags: , , , , , , , , , , , , — foreverrising @ 10:47 pm

As promised, here’s a how-to I wrote after finding several how-to’s that failed. It took me a good part of a week to get this graphics card to mine BitCoins in Ubuntu. I originally got this card mining in Windows 7 first. Quick specs for the record:

AMD Athlon II x4 630

7 GB DDR3 1333MHz RAM

ATI Radeon 5770 graphics card

Ubuntu 10.10 64-bit

Here we go. Before we begin, see if Ubuntu detects your graphics card.

lspci -v

You should see “Display controller: ATI Technologies Inc Device.” If you don’t, shut down to open up your computer and reseat your card, and make sure you’ve plugged in the cable from the power supply. It’s easy to miss if you’re a newbie.

Next, if you have the proprietary drivers enabled, you’ll have to disable them through System > Administration > Additional Drivers. After you disable them, you’ll have to reboot.

Enable Source Code in Ubuntu. System > Administration > Synaptic Package Manager. Settings > Repositories > ‘Ubuntu’ tab. Check the checkmark and then exit out of Synaptic.

Open a terminal. Then update your packages.

sudo apt-get update

Then install libqtgui4

sudo apt-get install libqtgui4

Next, you’ll attempt to build your proprietary drivers. You need to download from AMD’s Support site.

Go back to your terminal window, and navigate to the directory where you downloaded that package.

cd [path to download directory]

Then run the file.

sudo sh

That will kick off the graphical installer. Select “Install driver 8.831.2 on X.Org 6.9 or later 64-bit.” Then follow the rest of the defaults. Refer to your terminal window to see if it completed successfully. If not, you may have unmet dependancies which are required to build the drivers. If that is the case, open Synaptic Package Manager and install the needed packages and run the last line again.

After that, I was able to see the drivers installed by running this command.


It should return your devices information. If it displays “Command not found,” you’ll have to troubleshoot your driver install.


You’ll have to install three more packages after this. Download the ATI SDK from AMD package here. Then run these.

cd /opt

sudo mv [path to download directory]/ati-stream-sdk-v2.1-lnx64.tgz /opt

sudo tar xfzv ati-stream-sdk-v2.1-lnx64.tgz

Download icd-registration.tgz, then run

cd /

sudo mv [path to download directory]/icd-registration.tgz /

sudo tar xfzv icd-registration.tgz

This returned a couple errors, but nonetheless was effective. You’ll be able to tell by running this.

ls /etc/OpenCL/vendors/

And making sure you see the files atiocl32.icd and atiocl64.icd. Next, run this. You may need to add it to your .bashrc file, but I did not need to.

export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH

Now run these next couple of lines. They should output your card(s).

cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64


Now you’ll have to download and install PyOpenCL, and it’s dependencies. Run these.


tar zxfv pyopencl-0.92.tar.gz

sudo apt-get install g++ libboost-all-dev subversion git-core python-numpy

cd pyopencl-0.92

./ --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64


sudo make install

Install BitCoin

sudo apt-add-repository ppa:stretch/bitcoin

sudo apt-get install bitcoin

Now download and install python-jsonrpc

svn checkout

cd python-jsonrpc

sudo python install

Then download my favorite miner from, and extract it. Then sign up for an account. This username and password will be used in your miner.

Now open up a terminal window and navigate to the script.

cd [path to where you extracted]/poclbm-mod.03.24.2011/sources

And finally

python -d 0 -v -w 128 --user=[your bitcoinpool username] --pass=[your bitcoinpool password]

Then get the Phoenix Miner, and check out the pools to see which one seems best for you. I currently mine at now, since the difficulty increase at has reduced the frequency of solved blocks.

Once you’ve got that going, try overclocking your ATI card in Ubuntu.

I accept donations @ 1HXrbVT3WRqk6rHTPKKJ9ppoFbsYjmjTqX if this worked for you. If it didn’t, feel free to send me a comment. I’d like to get everybody up and running with a good GPU!

Also, if you have any feedback, please do.


Create a free website or blog at