Hi! I'm having trouble getting cgminer to do GPU mining on my headless Ubuntu 12.04.2 box. I started mining just 2 weeks ago, and it worked. Now it broke, perhaps because of a kernel upgrade and/or reboot in the meantime. Following instructions on the README, I purged and re-installed the AMD-APP-SDK and then rebooted; also I have said "make clean" and "sudo make install" a few times in the cgminer source directory itself. Compilation seems to work. It says GPU mining is enabled. To make extra sure that there are no problems with permissions, I made the /usr/local/bin/cgminer a "setuid" executable file.
According to "ps aux | grep X" there *is* an X server running on display ":0". I can't see what is being sent there, because the machine is in a dark tiny closet under the stairs (Harry Potter moved out a few years back). Could my problem be related somehow to this setup?
To get "All devices disabled, cannot mine!" I say "DISPLAY=:0 cgminer". My other option is "segfault": to get that, I say "sudo su" to become root, then issue "DISPLAY=:0 xauth +" to make sure any user can do whatever they like to the X server. Then cgminer just breaks (with DISPLAY=:0) no matter who runs it.
In case the commands below are helpful, here are some things I tried:
$ cat /etc/issue
Ubuntu 12.04.2 LTS
$ uname -a
Linux ninja 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ ps aux | grep Xorg
root 3474 0.0 0.5 165704 40936 tty8 Ss+ 08:12 0:00 /usr/bin/Xorg :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-yGC0Kn/database -nolisten tcp
$ lsmod | grep fglrx
fglrx 3264017 49
$ sudo DISPLAY=:0 fglrxinfo
display: :0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 5450
OpenGL version string: 4.2.11627 Compatibility Profile Context
$ DISPLAY=:0 cgminer -n
No protocol specified
No protocol specified
[2013-04-13 09:05:04] CL Platform 0 vendor: Advanced Micro Devices, Inc.
[2013-04-13 09:05:04] CL Platform 0 name: AMD Accelerated Parallel Processing
[2013-04-13 09:05:04] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.5 (684.213)
[2013-04-13 09:05:04] Error -1: Getting Device IDs (num)
[2013-04-13 09:05:04] clDevicesNum returned error, no GPUs usable
[2013-04-13 09:05:04] 0 GPU devices max detected
This last one is a bit long. Thanks for any hints you can provide!
$ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection
Section "Module"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
[\code]