Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: sammy007 on January 06, 2014, 04:18:49 PM



Title: cgminer won't show temperature
Post by: sammy007 on January 06, 2014, 04:18:49 PM
3.7.2 binary, latest catalyst, ubuntu. I don't see temperature:

Pool management
 GPU 0:                | 599.3K/635.8Kh/s | A: 8448 R:256 HW:0 WU: 569.3/m I:20
 GPU 1:                | 745.0K/757.6Kh/s | A:11520 R:  0 HW:0 WU: 667.5/m I:20

Any ideas?

Also, how to compile properly? If compiling I can't get a number of options like fan speed, etc... any ./configure tricks is missing?


Title: Re: cgminer won't show temperature
Post by: pontiacg5 on January 06, 2014, 04:19:32 PM
Which cards are they?? What does this command display?

sudo aticonfig --adapter=all --odgt


Title: Re: cgminer won't show temperature
Post by: sammy007 on January 06, 2014, 04:25:09 PM
Which cards are they?? What does this command display?

sudo aticonfig --adapter=all --odgt


ERROR - X needs to be running to perform AMD Overdrive(TM) commands

Gigabyte R9 290. Also, my hashrate sucks.


Title: Re: cgminer won't show temperature
Post by: pontiacg5 on January 06, 2014, 04:27:45 PM
I remember that same error when I was setting up 280x cards on xubuntu. I'm not very good with linux, so hopefully someone else steps in with tips...

If you are trying to launch over ssh, try locally first. Otherwise, this thread might be more help.

https://bitcointalk.org/index.php?topic=179845.0

This post might be of help, I know my desktop does the "loop" problem he is talking about

"Ran into the same problem, but typing xinit into a terminal yielded no joy, just the message:

Fatal server error:
Server is already active for display 0
   If this server is no longer running, remove /tmp/.X0-lock
   and start again.

I'm running Ubuntu 12.04.2 desktop (64 bit)

After a while of struggling with it I've got it to display the temperatures of my GPUs. I did the following:


sudo apt-get install fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev


I then downloaded AMD-APP-SDK and followed step 12) in this guide: https://github.com/kanoi/linux-usb-cgminer/blob/master/linux-usb-cgminer#L117 to enable OpenCL.

Unfortunately Ive now got a problem with the display - the right hand side of the screen wraps back round to the left (but not he other way around) This isn't much of an issue, it just mildly irritating. I have a feeling it can be fixed by manually altering the xorg.conf but I don't wanna mess with it anymore."





Title: Re: cgminer won't show temperature
Post by: sammy007 on January 06, 2014, 04:42:06 PM
Well, I started xorg and now it shows C and RPM, but C only for first card.


Title: Re: cgminer won't show temperature
Post by: pontiacg5 on January 06, 2014, 04:47:03 PM
I was afraid of that. You are using export display=:0 somewhere right?

I've not had a 290 working on linux and I know they behave differently than 280x cards. You are using a monitor on the card that displays temp, right? There's no way to dummy plug a 290 that I know of...

Until I have a chance to get home and play with these new 290's I just got I won't be much help, sorry!


Title: Re: cgminer won't show temperature
Post by: sammy007 on January 06, 2014, 05:29:19 PM
Until I have a chance to get home and play with these new 290's I just got I won't be much help, sorry!

Also can't play until I have a chance to hard reset crashed box due to xorg. Damn, I am out of business for 12+ hours.


Title: Re: cgminer won't show temperature
Post by: pontiacg5 on January 07, 2014, 01:39:45 AM
Until I have a chance to get home and play with these new 290's I just got I won't be much help, sorry!

Also can't play until I have a chance to hard reset crashed box due to xorg. Damn, I am out of business for 12+ hours.

I hate that! Seriously considered little servos and some kind of control for a "hard" remote reset switch  ;D

Alright, so I've learned a bit more. The 290 comes with a new version of AMD overdrive, that is it's ADL library is different than the older cards.

Apparently it's possible to fix by tweaking some of the ADL calls in cgminer. I guess this is done by recompiling it?
http://www.ohmpie.com/mining-on-an-r9-290-in-linux/


FWIW I do have a single 290x that is watercooled and running in windows. If I don't plug the fan in at some point after a restart cgminer will NEVER start, or hang, or do much of anything. Oddly, if I plug the GPU fan back in it fires right up and takes off mining as if nothing is wrong. I don't even have to have the fan plugged in while starting cgminer, just has to have been plugged in and removed at some point before starting mining. After the fan's been plugged in I can close and restart cgminer as often as I need to, without touching the fan again. If you look, the fan has a lot bigger role in the new AMD overdrive  :-\
So, seems there might be something to this ADL recompile...

And my 290's came  :D




Title: Re: cgminer won't show temperature
Post by: sammy007 on January 07, 2014, 09:43:34 AM
You are right, dude. Just followed a guide http://www.ohmpie.com/mining-on-an-r9-290-in-linux/ and it works like a hell! Patching cgminer, etc... othrwise it will crush on cgminer exit like last night and all GPUs will continue to go like no tomorrow without any profit because it does not release them and lost ssh connection. oh, hell, it was long... too much headaches to finally get it working.


Title: Re: cgminer won't show temperature
Post by: sammy007 on January 07, 2014, 11:41:24 AM
Damn, now 1st card shows 0 Kh/s just temp and fan speed and cgminer won't shutdown. Just after reboot to make sure that everything is ok.


Title: Re: cgminer won't show temperature
Post by: sammy007 on January 09, 2014, 01:24:19 PM
Finally get them all functioning @870 Khash/s.

-I 20 -g 1 --lookup-gap 2 -v 1 --thread-concurrency 32765 --no-submit-stale --shaders 2560 --gpu-fan 60-95 --auto-fan --temp-cutoff 80 --gpu-engine 1000 --gpu-memclock 1500 -w 256

I realized, that my gig required total poweroff instead of reboot if something went wrong with tuning to get normal hashrate back. I am wondering is there a workaround?


Title: Re: cgminer won't show temperature
Post by: poolerMF on January 09, 2014, 02:37:47 PM
in windows ... when I use remote desktop ... I got this error too ...

SOLUTION? just do not use remote desktop ... use TeamViewer for example


Title: Re: cgminer won't show temperature
Post by: pontiacg5 on January 09, 2014, 05:43:47 PM
Finally get them all functioning @870 Khash/s.

-I 20 -g 1 --lookup-gap 2 -v 1 --thread-concurrency 32765 --no-submit-stale --shaders 2560 --gpu-fan 60-95 --auto-fan --temp-cutoff 80 --gpu-engine 1000 --gpu-memclock 1500 -w 256

I realized, that my gig required total poweroff instead of reboot if something went wrong with tuning to get normal hashrate back. I am wondering is there a workaround?

Due to the whacked out ADL library of the 290, it doesn't "release" clock settings when you exit cgminer as it should.

Unfortunately, for now, you'll probably need to continue rebooting to clear old clock settings.

The only advice I can give is make sure to delete the .bin files that cgminer makes on every successful start. Sometimes old bin files can interfere with new settings, so just delete them. They are generated in the cgminer directory.

RDC hasn't been able to start GPU mining forever AFAIK, windows will not use AMD drivers for RDC so cgminer will never find opencl devices. USB, maybe? Never bothered to find out.

Teamviewer will not restart the AMD driver on boot if it crashed previously, the solution is keeping a dummy plug in one GPU. Then you can RDC around dead/crashed vid drivers in teamviewer, call for a restart, then windows loads AMD drivers because of the dummy plug. Next, auto start or teamview in and you'll be rolling again.


Title: Re: cgminer won't show temperature
Post by: foodies123 on January 09, 2014, 06:31:48 PM
you didn't by any chance install the driver via apt-get did you ? if you did that's the problem.


Title: Re: cgminer won't show temperature
Post by: sammy007 on January 28, 2014, 06:40:56 PM
aticonfig --odgt --adapter=all

Default Adapter - AMD Radeon R9 290 Series
    Sensor: Temperature - 74.00 C

Default Adapter - AMD Radeon R9 290 Series
    Sensor: Temperature - 74.00 C

Default Adapter - AMD Radeon R9 290 Series
    Sensor: Temperature - 74.00 C

Why so? It showing the same card 3 times. Actually I have 3xR9 290. 2 are mining, 1 is OFF in cgminer (I used -d 0-1).