Bitcoin Forum
May 05, 2024, 05:54:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Ubuntu 11.04 Natty 64bit Headless Bitcoin mining with ATI 11.5 binary driver  (Read 69641 times)
leepfrog
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
May 25, 2011, 06:34:12 PM
 #21

Hi Leepfrog,

You should be able to restart either of the GPUs using the service command for upstart.

sudo service btcminer_0 start
sudo service btcminer_1 start for the 2nd gpu.

- Dukejer

Thanks for the response - unfortunately this does not work. I believe the reason for that is that "service" only searches in /etc/init.d/.
Do you know any possibility to work around that?
1714931679
Hero Member
*
Offline Offline

Posts: 1714931679

View Profile Personal Message (Offline)

Ignore
1714931679
Reply with quote  #2

1714931679
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714931679
Hero Member
*
Offline Offline

Posts: 1714931679

View Profile Personal Message (Offline)

Ignore
1714931679
Reply with quote  #2

1714931679
Report to moderator
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 25, 2011, 08:08:48 PM
Last edit: June 01, 2011, 08:31:24 PM by dukejer
 #22

Hi Leepfrog,

You should be able to restart either of the GPUs using the service command for upstart.

sudo service btcminer_0 start
sudo service btcminer_1 start for the 2nd gpu.

- Dukejer

Thanks for the response - unfortunately this does not work. I believe the reason for that is that "service" only searches in /etc/init.d/.
Do you know any possibility to work around that?

Hi Leepfrog,

Are your receiving any errors when you run sudo service btcminer_0 start ?

service searches /etc/init for btcminer_0.  Did you create a btcminer_0.conf file in /etc/init?

Thank you,

- Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
fasti
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
May 27, 2011, 09:41:03 AM
 #23

Just one possible thing missing, ability to underclock your memory by atleast 60% of the default ( even down to 300 if possible ). This will decrease graphic cards temperature a lot, giving you ability to overclock core more or just enjoy quieter fans.

1QCcAR3e3wdxr7CcJ8ND1NmWuvLttCJScH
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 27, 2011, 01:31:24 PM
Last edit: June 01, 2011, 08:31:41 PM by dukejer
 #24

how will the procedure change if i have just installed a secondary graphical card same/different model? How do I install driver and change configuration!? Thanks

Hi hipaulshi,

You should be able to just rerun aticonfig to find the new card and then add another btcminer_X.conf file in /etc/init with the correct device number for the card in the btcminer_X.conf

The aticonfig line should be
DISPLAY=:0 sudo aticonfig --initial -f --adapter=all

- Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 27, 2011, 01:40:31 PM
Last edit: June 01, 2011, 08:32:04 PM by dukejer
 #25

Just one possible thing missing, ability to underclock your memory by atleast 60% of the default ( even down to 300 if possible ). This will decrease graphic cards temperature a lot, giving you ability to overclock core more or just enjoy quieter fans.

Hi fasti,

I have a new startminer script and new btcminer_X.conf scripts that can over
clock and underclock per card that hopefully I can upload in a couple of days.

- Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
coinjedi
Full Member
***
Offline Offline

Activity: 184
Merit: 100



View Profile WWW
May 27, 2011, 01:48:05 PM
 #26

I have followed the instructions line by line (except I am using poclmb instead of pheonix), but I am running into a lot of issues.

1) If I do everything as written I think I am running into network issues (ssh doesn't response). How can I fall back to command line?
If I just move gdm.conf and not use startx.conf, an ubuntu logo appears with four blinking dots and then a blank screen. If I use startx.conf, x-server takes over the screen. I can't make it boot into the command line.

2) If I don't move gdm.conf, Ubuntu starts with the gui and network connection, but "screen -ls" lists nothing. How can I troubleshoot my "btcminer_0.conf"?

Thanks in advance.

Bets of Bitcoin
http://betsofbitco.in/
melanarchy
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
May 27, 2011, 03:06:43 PM
Last edit: May 27, 2011, 03:17:57 PM by melanarchy
 #27

So thanks to this guide I got my 6870 set up with Natty. My box is headless (2 wires plugged in, power and ethernet) so this is the perfect guide for me.

A few things I've done.
1) Get AMDOverdriveCtrl - although this is a GUI app, you can run a batch job that will let you override the minimum memory clock and allow you to underclock your memory (I haven't yet figured out a config that allows you to override the maximum gpu clock).
Here is the config for lower memory

<OVERDRIVE_PROFILE>
  <PERFORMANCE_LEVEL level="2" gpu="100000" mem="30000" voltage="1088"/>
  <PERFORMANCE_LEVEL level="1" gpu="55000" mem="30000" voltage="1038"/>
  <PERFORMANCE_LEVEL level="0" gpu="15700" mem="30000" voltage="1000"/>
  <FAN_SETTING percentage="55"/>
  <FAN_CTRL enabled="yes"/>
</OVERDRIVE_PROFILE>

Save that to a file and then run AMDOverdriveCtrl -b filename

Now using aticonfig --odgc you should see a lower memory limit. You can then do sudo aticonfig --adapter=0 --od-setclocks=1000,400 (or whatever you want) to under clock the memory.

My 6870's max stock overclock is 1000 and i haven't figured out how to get AMDOverdriveCtrl to accept a config that goes above that yet.  Once you've found what works for you don't forget to save the clocks onto your gpu so they persist through reboots with aticonfig --odcc --adapter=all.

2) Use the phatk kernel (actually I noticed the guide specifies this, I just missed it the first round through)
I've also found that with the version of the SDK outlined here the phatk kernel is better than poclbm with this execution line I get 299+ Mhash/sec out of my 6870:
 ./phoenix.py -u http://XXXXX -k phatk DEVICE=0 BFI_INT VECTORS FASTLOOP=false AGGRESSION=12 WORKSIZE=128 PLATFORM=0
 

I don't use the autostart scripts, mainly because I've been futzing with values, but I launch a screen and keep phoenix open in it, and a script to look at gpu temp/current balance in another virtual window.

I'm happy to answer questions about this if people need help.

1aLV7cjRXE89KoychBaGUP8YGm5ZRVNAw - If my info is helpful donations are always welcome.
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 27, 2011, 03:26:14 PM
Last edit: June 01, 2011, 08:32:25 PM by dukejer
 #28

I have followed the instructions line by line (except I am using poclmb instead of pheonix), but I am running into a lot of issues.

1) If I do everything as written I think I am running into network issues (ssh doesn't response). How can I fall back to command line?
If I just move gdm.conf and not use startx.conf, an ubuntu logo appears with four blinking dots and then a blank screen. If I use startx.conf, x-server takes over the screen. I can't make it boot into the command line.

2) If I don't move gdm.conf, Ubuntu starts with the gui and network connection, but "screen -ls" lists nothing. How can I troubleshoot my "btcminer_0.conf"?

Thanks in advance.

Hi coinjedi,

Did you load openssh-server?

To get to a terminal screen from the main console press control + alt + f2.  From there you should be able to login a console and put gdm.conf back into place but you need to rename startx.conf to something else without the .conf at the end first.  Also you will not be able to use the btcminer files in /etc/init but you should be able to call startminers.sh from a regular terminal within gnome.

-Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
leepfrog
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
May 27, 2011, 03:34:24 PM
 #29

Hi Leepfrog,

Are your receiving any errors when you run sudo service btcminer_0 start ?

service searches /etc/init for btcminer_0.  Did you create a btcminer_0.conf file in /etc/init?

Thank you,

- Dukejer


Sorry, seems that I was a bit tired when trying it the first time, it works now.

BTW: I've added munin to monitor hashrate, load and temperatures as well as a script which automatically sets fan speed to max at a certain temperature threshold. If the critical threshold is passed it automatically stops the miner for the gpu running to hot. It might be dirty coding as I do not know my way around bash very well but it works for me.

If I find the time this weekend I'll describe the scripts needed
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 27, 2011, 03:42:20 PM
 #30

So thanks to this guide I got my 6870 set up with Natty. My box is headless (2 wires plugged in, power and ethernet) so this is the perfect guide for me.

A few things I've done.
1) Get AMDOverdriveCtrl - although this is a GUI app, you can run a batch job that will let you override the minimum memory clock and allow you to underclock your memory (I haven't yet figured out a config that allows you to override the maximum gpu clock).
Here is the config for lower memory

<OVERDRIVE_PROFILE>
  <PERFORMANCE_LEVEL level="2" gpu="100000" mem="30000" voltage="1088"/>
  <PERFORMANCE_LEVEL level="1" gpu="55000" mem="30000" voltage="1038"/>
  <PERFORMANCE_LEVEL level="0" gpu="15700" mem="30000" voltage="1000"/>
  <FAN_SETTING percentage="55"/>
  <FAN_CTRL enabled="yes"/>
</OVERDRIVE_PROFILE>

Save that to a file and then run AMDOverdriveCtrl -b filename

Now using aticonfig --odgc you should see a lower memory limit. You can then do sudo aticonfig --adapter=0 --od-setclocks=1000,400 (or whatever you want) to under clock the memory.

My 6870's max stock overclock is 1000 and i haven't figured out how to get AMDOverdriveCtrl to accept a config that goes above that yet.  Once you've found what works for you don't forget to save the clocks onto your gpu so they persist through reboots with aticonfig --odcc --adapter=all.

2) Use the phatk kernel (actually I noticed the guide specifies this, I just missed it the first round through)
I've also found that with the version of the SDK outlined here the phatk kernel is better than poclbm with this execution line I get 299+ Mhash/sec out of my 6870:
 ./phoenix.py -u http://XXXXX -k phatk DEVICE=0 BFI_INT VECTORS FASTLOOP=false AGGRESSION=12 WORKSIZE=128 PLATFORM=0
,

Hi melanarchy,

Thanks for the suggestions.  I will try them out on a 5870 server I have available to me.

- Dukejer
melanarchy
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
May 27, 2011, 07:08:53 PM
 #31

No problem, thanks for the guide. If I discover anything else I'll come post. Really want to figure out how to override my max clock and push up a few more mhz so I can break 299.6 Mhash/sec barrier and get the 300 I know I can.
coinjedi
Full Member
***
Offline Offline

Activity: 184
Merit: 100



View Profile WWW
May 28, 2011, 04:03:54 AM
 #32


Hi coinjedi,

Did you load openssh-server?

To get to a terminal screen from the main console press control + alt + f2.  From there you should be able to login a console and put gdm.conf back into place but you need to rename startx.conf to something else without the .conf at the end first.  Also you will not be able to use the btcminer files in /etc/init but you should be able to call startminers.sh from a regular terminal within gnome.

-Dukejer

Thanks Dukejer, once I got to the terminal I solved all the issues. Everything works fine now. Thank you very much.

Bets of Bitcoin
http://betsofbitco.in/
vborets
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
May 29, 2011, 09:49:57 AM
Last edit: May 29, 2011, 10:41:13 AM by vborets
 #33

Hi

I try use

sudo tar xfz $AMDAPPSDKROOT/icd-registration.tgz

but in etc/opencl/vendors    amd and ati files not present

i try extract its mannualy  - but not have permisions :-(

dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 29, 2011, 12:11:56 PM
Last edit: June 01, 2011, 08:32:53 PM by dukejer
 #34

Hi

I try use

sudo tar xfz $AMDAPPSDKROOT/icd-registration.tgz

but in etc/opencl/vendors    amd and ati files not present

i try extract its mannualy  - but not have permisions :-(



Hi vborets,

Did the AMDAPPSDKROOT Variable get set?

You can check it by using echo $AMDAPPSDKROOT.

Are you out of disk space?

Try running df -v to view the space.

Also did the sudo command take your password without any errors?
Sudo gives you the permissions to extract the files into /etc if you are running a user the has sudoers access rights.  Normally the first user you create in Ubuntu has sudoers access rights.

-Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
vborets
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
May 29, 2011, 02:56:02 PM
 #35


Did the AMDAPPSDKROOT Variable get set?

You can check it by using echo $AMDAPPSDKROOT.

Are you out of disk space?

Try running df -v to view the space.

Also did the sudo command take your password without any errors?
Sudo gives you the permissions to extract the files into /etc if you are running a user the has sudoers access rights.  Normally the first user you create in Ubuntu has sudoers access rights.

-Dukejer

Problem not in disk or path- problem with permissions. I use single user
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
May 29, 2011, 04:20:50 PM
Last edit: June 01, 2011, 08:33:09 PM by dukejer
 #36


Did the AMDAPPSDKROOT Variable get set?

You can check it by using echo $AMDAPPSDKROOT.

Are you out of disk space?

Try running df -v to view the space.

Also did the sudo command take your password without any errors?
Sudo gives you the permissions to extract the files into /etc if you are running a user the has sudoers access rights.  Normally the first user you create in Ubuntu has sudoers access rights.

-Dukejer

Problem not in disk or path- problem with permissions. I use single user

Hi vborets,

I am have not tested this setup in single user mode.  I originally set this up in a gnome desktop after ubuntu was installed.  

You should be able to find the .tar file using the home path where the AMD SDK extracted.

ex.  cd /
      sudo tar xvf ~/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz

or
      sudo tar xvf $HOME/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz

-Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
bgd
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 01, 2011, 06:03:38 PM
 #37

Hi Dukejer,

I got to the like after the ATI driver install. Then I get:

Code:
sudo dpkg -i *.deb
(Reading database ... 67911 files and directories currently installed.)
Preparing to replace fglrx 2:8.850-0ubuntu1 (using fglrx_8.850-0ubuntu1_amd64.deb) ...
Removing all DKMS Modules

Error! There are no instances of module: fglrx
8.850 located in the DKMS tree.
Done.

This machine is setup as a server and so I haven't installed any desktop-related stuff, including X11.

I have an AMD 965 & ATI 5870, if that makes any difference.

Thanks for your help! -bgd
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
June 01, 2011, 07:14:14 PM
Last edit: June 01, 2011, 08:33:34 PM by dukejer
 #38

Hi Dukejer,

I got to the like after the ATI driver install. Then I get:

Code:
sudo dpkg -i *.deb
(Reading database ... 67911 files and directories currently installed.)
Preparing to replace fglrx 2:8.850-0ubuntu1 (using fglrx_8.850-0ubuntu1_amd64.deb) ...
Removing all DKMS Modules

Error! There are no instances of module: fglrx
8.850 located in the DKMS tree.
Done.

This machine is setup as a server and so I haven't installed any desktop-related stuff, including X11.

I have an AMD 965 & ATI 5870, if that makes any difference.

Thanks for your help! -bgd


Hi bgd,

The post I wrote is for installation from a full desktop.  Even though I shutoff all the desktop process it still needs a lot of the components like Xorg to run the ATI driver.  When I originally installed the ATI driver on my original system I started with server also but I upgraded it to a full desktop by running
sudo apt-get install ubuntu-desktop.  Also before you start you  may want to make sure there are no other fgrlx packages installed on the system.

-Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
dukejer (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
June 01, 2011, 08:44:49 PM
 #39

Hi Everyone,

I added a way in the original post a way to monitor the miners using an Xterminal on the main Xwindows console.  Here is the code for anyone interested.

How to monitor your screens on an Xterminal on the main Xwindows console on boot up.

   sudo gedit /etc/init/btcmonitor_0.conf
        description     "Start BTC Monitor 0"
        start on runlevel [2345]
        stop on runlevel [!2345]
        kill timeout 30
        script
          LOGINUSER=ChangeToMyLoginUser
          export DISPLAY=:0
          #Wait 40 seconds to make sure X is started.
          sleep 40
          exec  /usr/bin/xterm -geometry 80x40+0+0 -e "/usr/bin/screen -d -r gpu0"
        end script

sudo gedit /etc/init/btcmonitor_1.conf
        description     "Start BTC Monitor 1"
        start on runlevel [2345]
        stop on runlevel [!2345]
        kill timeout 30
        script
          LOGINUSER=ChangeToMyLoginUser
          export DISPLAY=:0
          #Wait 45 seconds to make sure X is started.
          sleep 45
          exec  /usr/bin/xterm -geometry 80x40+500+0 -e "/usr/bin/screen -d -r gpu1"
        end script

- Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!