Author

Topic: What's the best ATI driver for Ubuntu? (Read 29394 times)

sr. member
Activity: 392
Merit: 250
June 03, 2011, 12:19:06 AM
#16
Currently I have the official fglrx driver, but I read that the open source one is better?

Open source one does not support OpenCL.

Quote
Is there any step-by-step guide for starting to mine with GPU on Ubuntu using ATI as there is one for nVidia? I couldn't find anything on the forum.

I'd recommend this wiki:
http://wiki.cchtml.com/index.php/Ubuntu

Ubuntu X Team's PPA packages are good and easy to install

You need also SDK (2.1 is the best).

SDK 2.1 being the best is a popular misconception. Maybe for some older cards, but if you have a 6XXX series card you have to use 2.4 or it won't recognize your card.

I had this problem myself -- I had to go to 2.4 and it caused me to waste a lot of time on my "mining hobby" that I shouldn't have.
sr. member
Activity: 434
Merit: 250
June 02, 2011, 11:36:22 PM
#15
Been meaning to write this up for a little while now so here it is (assuming the box is all built with ATI card(s) installed):

1. Install Ubuntu (10.10)
2. Remove the drivers it will automatically install that will conflict:

sudo apt-get remove --purge fglrx*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon


3. Re-install some prerequisites (not sure if they are needed but it doesn't hurt - java is definitely needed for Diablo):

sudo apt-get install --reinstall libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo apt-get install sun-java6-jre


4. Install the proprietary ATI driver you can find here by:

chmod +x
sudo ./


When it asks you if you want to build a package for your distribution or just install the defaults, go with the defaults.

5. Open a terminal and enter:

sudo aticonfig --initial --adapter=all

This will create a working xorg.conf file. If this doesn't work you will have to re-boot first. In any event re-boot after you have created this file so that you will be running using the proprietary ATI Catalyst driver.
 
6. Download and install the OpenCL dev and runtime packages (i386 or AMD64).

7. Log out and then back in to initialize the OpenCL libraries. If you have more than one GPU you will have to issue:

export DISPLAY=:0

in order for all your GPUs to be seen by your mining software.

8. Download and untar Bitcoin. Look in bin// to find bitcoind. Start it. Use ./bitcoind getinfo to confirm you have the blockchain and some connections to the network. If it's your first time running it you will need to set an RPC user and password that your GPU miner will need to authorize with. To do this create a 2 line file at ~/.bitcoin/bitcoin.conf that contains rpcuser= for the first line and rpcpassword= for the second.

9. Download your mining software. I only have experience with Diablo. Start it up by running:

./Diablominer-Linux.sh -w128 -u -p

You can also throw an "f" value in there to control the interactivity of your desktop.

If you wish to try m0mchil's Python-based miner hit this thread and follow the instructions beginning at the line that says "Download PyOpenCL".

You should see your miner start showing you a hash value!

PROFIT ;-)

If you wish you may want to overclock your card. I pushed my clock speed to max and left the memory at stock.

Please let me know if this sequence doesn't work as this is all from memory. I'm happy to troubleshoot your setup, such as I am able, and revise these notes. I get about 343Mh/s (w/ Diablominer and -f1) from a 5870 using this.

edited with feedback from users of this guide

I don't understand what you have to do with this:

8. Download and untar Bitcoin. Look in bin// to find bitcoind. Start it. Use ./bitcoind getinfo to confirm you have the blockchain and some connections to the network. If it's your first time running it you will need to set an RPC user and password that your GPU miner will need to authorize with. To do this create a 2 line file at ~/.bitcoin/bitcoin.conf that contains rpcuser= for the first line and rpcpassword= for the second.

Where do you create the file?
newbie
Activity: 41
Merit: 0
April 29, 2011, 09:47:18 PM
#14
I am not sure that i should have tried your tutorial Smiley

after the: sudo aticonfig --initial --adapter=all

I rebooted, and i cannot see anything now... even after a recovery, i took the backup file of the xorg.conf and rebooted, but nada, same thing,

I have 11.04 !  So i am downloading 10.10 now to see if it make a difference ...
member
Activity: 91
Merit: 11
March 21, 2011, 12:38:23 PM
#13

Humble:

Can confirm that an update crashes the drivers and Xserver hangs on restart using these instructions, basically unrecoverable even with system rescue.

Also, in the line

6. Download and install the OpenCL dev and runtime packages (i386 or AMD64).

the link to "dev" does not go to development package but only to the i386 runtime package. The dev package you can find here http://orwell.fiit.stuba.sk/~nou/ati-opencl-dev_2.1.deb

but if you use the dev package and not the full SDK for installing OpenCL then when you get to here:

"If you wish to try m0mchil's Python-based miner hit this thread (https://bitcointalksearch.org/topic/50-btc-if-you-write-a-complete-guide-on-gpu-mining-on-ubuntu-using-ati-3359) and follow the instructions beginning at the line that says "Download PyOpenCL"."

You'll have to change the pyopencl ./configure instruction

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

since those directories will not exist at that point .... unless you've done the SDK install separately, which incidentally does not make -lOpenCL library call available by default, that can be got by doing the dev install.

Messy.

System crash on update? Ouch. I have not experienced that. I have experienced having to re-install the proprietary AMD Catalyst driver after a kernel update but only on my 64 bit systems.

Thanks for the note about the link to the dev package. Updated.

And again thanks for the update about changing the configure instructions. I hadn't used poclbm at the time I write this so hadn't stepped through the required steps for different architectures. Hopefully someone finding this thread in the future will be helped by this. 

cheers.
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo
March 10, 2011, 05:30:56 PM
#12

Humble:

Can confirm that an update crashes the drivers and Xserver hangs on restart using these instructions, basically unrecoverable even with system rescue.

Also, in the line

6. Download and install the OpenCL dev and runtime packages (i386 or AMD64).

the link to "dev" does not go to development package but only to the i386 runtime package. The dev package you can find here http://orwell.fiit.stuba.sk/~nou/ati-opencl-dev_2.1.deb

but if you use the dev package and not the full SDK for installing OpenCL then when you get to here:

"If you wish to try m0mchil's Python-based miner hit this thread (https://bitcointalksearch.org/topic/50-btc-if-you-write-a-complete-guide-on-gpu-mining-on-ubuntu-using-ati-3359) and follow the instructions beginning at the line that says "Download PyOpenCL"."

You'll have to change the pyopencl ./configure instruction

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

since those directories will not exist at that point .... unless you've done the SDK install separately, which incidentally does not make -lOpenCL library call available by default, that can be got by doing the dev install.

Messy.
member
Activity: 91
Merit: 11
February 18, 2011, 07:42:16 PM
#11
One thing I have found is do not do "apt-get upgrade" on ubuntu 10-10! My ati 10-12 drivers quit working and X will no longer start if I apply all the current upgrades. I am not sure which patch(es) actually cause the trouble but this is the only way I can keep the drivers running on my systems.




Hmm... you don't want to run a system that you can't update. I'm about to setup another box with a 5970 and will step through these directions again to make sure they are all kosher. There shouldn't be an issue with updates. If you need to get your desktop back boot into recovery and issue:

aticonfig --initial --adapter=all

to have it rebuild your xorg.conf file.
lfm
full member
Activity: 196
Merit: 104
February 17, 2011, 07:08:38 AM
#10
One thing I have found is do not do "apt-get upgrade" on ubuntu 10-10! My ati 10-12 drivers quit working and X will no longer start if I apply all the current upgrades. I am not sure which patch(es) actually cause the trouble but this is the only way I can keep the drivers running on my systems.

member
Activity: 91
Merit: 11
February 14, 2011, 03:55:57 PM
#9
Quote

Do you know whether or not this is exclusive to 10.10? I am going to try it on 9.10.

I'm sorry but I don't know if it will work under 9.10 or not. Is there a particular reason you are running 9.10? I would recommend at least upgrading to 10.04 (LTS) and then trying. In any event please let us know how it works out for you.
full member
Activity: 126
Merit: 100
February 14, 2011, 03:25:33 PM
#8
Been meaning to write this up for a little while now so here it is (assuming the box is all built with ATI card installed):

1. Install Ubuntu (10.10)
2. Remove the drivers it will automatically install that will conflict:

sudo apt-get remove --purge fglrx*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon


3. Re-install some prerequisites (not sure if they are needed but it doesn't hurt - java is definitely needed for Diablo):

sudo apt-get install --reinstall libgl-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo apt-get install sun-java6-jre


4. Install the proprietary ATI driver you can find here by:

chmod +x
sudo ./


When it asks you if you want to build a package for your distribution or just install the defaults, go with the defaults.

5. Open a terminal and enter:

sudo aticonfig --initial

This will create a working xorg.conf file. If this doesn't work you will have to re-boot first. In any event re-boot after you have created this file so that you will be running using the proprietary ATI Catalyst driver.
 
6. Download and install the OpenCL dev and runtime packages (i386 or AMD64).

7. Log out and then back in to initialize the OpenCL libraries.

8. Download and untar Bitcoin. Look in bin// to find bitcoind. Start it. Use ./bitcoind getinfo to confirm you have the blockchain and some connections to the network. If it's your first time running it you will need to set an RPC user and password that your GPU miner will need to authorize with. To do this create a 2 line file at ~/.bitcoin/bitcoin.conf that contains rpcuser= for the first line and rpcpassword= for the second.

9. Download your miner. I only have experience with Diablo. Start it up by running:

./Diablominer-Linux.sh -w64 -u -p

You can also throw an "f" value in there to control the interactivity of your desktop.

You should see your miner start showing you a hash value!

PROFIT ;-)

If you wish you may want to overclock your card. I pushed my clock speed to max and left the memory at stock.

Please let me know if this sequence doesn't work as this is all from memory. I'm happy to troubleshoot your setup, such as I am able, and revise these notes. I get about 343Mh/s from a 5870 using this.

Do you know whether or not this is exclusive to 10.10? I am going to try it on 9.10.
member
Activity: 91
Merit: 11
February 11, 2011, 08:36:01 PM
#7
Quote
I may use your services next time. Smiley

Currently I am struggling with installing my audio interface (TASCAM US-144) on Ubuntu. Would you know much about that?

Possibly... I've had a couple of epic battles with sound cards, most recently the Xonar Essence in my media server. I'll PM you.
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
February 11, 2011, 08:26:28 PM
#6
@humble

https://bitcointalksearch.org/topic/50-btc-if-you-write-a-complete-guide-on-gpu-mining-on-ubuntu-using-ati-3359

If you wrote this yesterday you would have earned yourself 50 BTC. Smiley

Darn! That'll teach me for staring at bitcoincharts.com all day ;-)

Mine is better... much shorter.



I may use your services next time. Smiley

Currently I am struggling with installing my audio interface (TASCAM US-144) on Ubuntu. Would you know much about that?
member
Activity: 91
Merit: 11
February 11, 2011, 08:23:24 PM
#5
@humble

https://bitcointalksearch.org/topic/50-btc-if-you-write-a-complete-guide-on-gpu-mining-on-ubuntu-using-ati-3359

If you wrote this yesterday you would have earned yourself 50 BTC. Smiley

Darn! That'll teach me for staring at bitcoincharts.com all day ;-)

Mine is better... much shorter.

sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
February 11, 2011, 08:18:09 PM
#4
@humble

https://bitcointalksearch.org/topic/50-btc-if-you-write-a-complete-guide-on-gpu-mining-on-ubuntu-using-ati-3359

If you wrote this yesterday you would have earned yourself 50 BTC. Smiley
member
Activity: 91
Merit: 11
February 11, 2011, 08:13:09 PM
#3
Been meaning to write this up for a little while now so here it is (assuming the box is all built with ATI card(s) installed):

1. Install Ubuntu (10.10)
2. Remove the drivers it will automatically install that will conflict:

sudo apt-get remove --purge fglrx*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon


3. Re-install some prerequisites (not sure if they are needed but it doesn't hurt - java is definitely needed for Diablo):

sudo apt-get install --reinstall libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo apt-get install sun-java6-jre


4. Install the proprietary ATI driver you can find here by:

chmod +x
sudo ./


When it asks you if you want to build a package for your distribution or just install the defaults, go with the defaults.

5. Open a terminal and enter:

sudo aticonfig --initial --adapter=all

This will create a working xorg.conf file. If this doesn't work you will have to re-boot first. In any event re-boot after you have created this file so that you will be running using the proprietary ATI Catalyst driver.
 
6. Download and install the OpenCL dev and runtime packages (i386 or AMD64).

7. Log out and then back in to initialize the OpenCL libraries. If you have more than one GPU you will have to issue:

export DISPLAY=:0

in order for all your GPUs to be seen by your mining software.

8. Download and untar Bitcoin. Look in bin// to find bitcoind. Start it. Use ./bitcoind getinfo to confirm you have the blockchain and some connections to the network. If it's your first time running it you will need to set an RPC user and password that your GPU miner will need to authorize with. To do this create a 2 line file at ~/.bitcoin/bitcoin.conf that contains rpcuser= for the first line and rpcpassword= for the second.

9. Download your mining software. I only have experience with Diablo. Start it up by running:

./Diablominer-Linux.sh -w128 -u -p

You can also throw an "f" value in there to control the interactivity of your desktop.

If you wish to try m0mchil's Python-based miner hit this thread and follow the instructions beginning at the line that says "Download PyOpenCL".

You should see your miner start showing you a hash value!

PROFIT ;-)

If you wish you may want to overclock your card. I pushed my clock speed to max and left the memory at stock.

Please let me know if this sequence doesn't work as this is all from memory. I'm happy to troubleshoot your setup, such as I am able, and revise these notes. I get about 343Mh/s (w/ Diablominer and -f1) from a 5870 using this.

edited with feedback from users of this guide
full member
Activity: 238
Merit: 100
February 11, 2011, 11:22:26 AM
#2
Currently I have the official fglrx driver, but I read that the open source one is better?

Open source one does not support OpenCL.

Quote
Is there any step-by-step guide for starting to mine with GPU on Ubuntu using ATI as there is one for nVidia? I couldn't find anything on the forum.

I'd recommend this wiki:
http://wiki.cchtml.com/index.php/Ubuntu

Ubuntu X Team's PPA packages are good and easy to install

You need also SDK (2.1 is the best).
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
February 11, 2011, 10:40:51 AM
#1
Could anyone tell me what driver to use for ATI HD5850 under Ubuntu to use it for mining?

I found out there are (at least) two options: fglrx or xserver xorg

Currently I have the official fglrx driver, but I read that the open source one is better?

Is there any step-by-step guide for starting to mine with GPU on Ubuntu using ATI as there is one for nVidia? I couldn't find anything on the forum.

Thanks in advance for any advice on this.
Jump to: