Update: After playing around with some bash scripting to monitor temps and adjust clocks, I had a hunch. Tried running sgminer with sudo. Blamo! Now have temps and fan speed control in the miner!
Running as root doesn't seem like a long term solution though. Does it?
No clock adjustment support either
Also, now get this message on startup:
No sysfs pptable support for GPU0 ((null))
No sysfs pptable support for GPU1 ((null))
Good mining everybody!
So, I enabled debug and logging so I could see. And, yes the problem is with the opening of the /sys/bus/pci/... files. I don't have much to contribute, but I do know from some other forums on setting and monitoring with the new drivers that you have to be root to access these directories. Hence I can manually set the fan speed with "echo 80 > /sys/class/DRM/card1/device/hwmon/hwmon0/pwm1" when root, but not as user or sudo.
I tried recompiling both with and without the ADL headers. Still not seeing fan speed or temps. Without the ADL headers it does complain during compile. And, I have no gpu-powertune settings in my config.
So, for now have gone back to 5.5.4. Still works great and I can see my temps. Hopefully it'll get straightened out and I'll try again.
Thanks GM team!
After moving from 5.5.4 to 5.5.5, it no longer shows gpu temp or fan speed. This is on lubuntu 16.04, amdgpu-pro 16.40, AMDSDK 3.0. And yes, I did move the required files to ADL_SDK. Any thoughts?
Hi, the difference between 5.5.4 and 5.5.5 is that the sysfs files are now opened by using the PCIe topology, i.e. if the miner fails to open the required files, then it should output something like "Failed to open /sys/bus/pci/devices/..." during startup when debugging is enabled. This was necessary in order to have the correct mapping between one GPU and it's sysfs files. Maybe you disabled this kind of GPU control during startup, i.e. just don't use --no-adl or "no-adl": true as command line argument or in the config file, if you want to have this information.
Edit: The ADL headers are no longer needed, if the binaries are used together with the AMDGPU driver.
Edit2: I figured out that gpu-powertune needs to be removed from the config if you're not using kernel 4.9 or later.
Did you try the master branch? There is a fix for invalid settings, which kind of crash the kernel. Just try with a minimal config. Futhermore, sgminer compiles withouts ADL headers.