Some help with xorg please

Soldato
Joined
22 Dec 2008
Posts
10,369
Location
England
edit: The rest of this remains valid, any attempt I make to persuade X to work goes wrong. However I have manged to get both gpus and the cpu folding without X. This will do for tonight.

Hey all. I'm trying to get two 8800gt's to run folding under linux. After following the guide online to the letter on a fresh install (my variations didn't work out so well) I've managed to get one of them folding peacefully enough from the command line. If I try to use X with it in a terminal window, it all goes a bit wrong. Graphical corruption (black screen, except where I move the mouse pointer draws itself normally) and it complains that the machine is unstable. I'm pretty sure this is an xorg problem.

System is at stock and otherwise stable.

The second gpu is a bit odd. Navigating to a separate folder with the required four files in and trying to run the relevant one with wine produces a lot of text (I'm limited to what I can see on screen), which is some numbers followed by

Code:
0000021 (D) Z:\home\jon\folding\bfg\[email protected]
0000022 0 <==
Backtrace
=>1 0x7ed9b024 in d3d9 (+0xb024) (0x0032f530)
2 ox0040e872 in folding@home-win32-gpu (+0xe872) (0x0032f9cc)
3 etc...[code]

I'm guessing this is an objection based on folding@home already running, or a complaint that there's only one card. ls /dev/nv* shows up nvidia0, nvidia1, nvidiactl which I believe is correct. 

[code]cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Mon May 11 15:57:20 PDT 2009

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Vendorname "NVIDIA Corporation"
Boardname "EVGA 8800GT"
Option "Coolbits" "1"
Option "NoLogo" "False"
Option "SLI" "auto"
BusID "2:0:0"
EndSection

Identifier "videocard1"
Driver "nvidia"
Vendorname "NVIDIA Corporation"
Boardname "BFG 8800GT"
Option "Coolbits" "1"
Option "NoLogo" "False"
Option "SLI" "auto"
BusID "3:0:0"
EndSection


Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

So far I'm working from the nvidia-xconfig output and editing by trial and error. Using Ubuntu 8.04 server with ubuntu-desktop installed over the top. Ubuntu complains that it's running in low graphics mode whenever it reboots.

Any advice welcome, I've spent the last 12 hours on this bloody thing.

Thought I'd post the error messages in full just for the hell of it.
Under gnome, evga card first
Code:
Launch directory: Z:\home\jon\folding\evga
Executable: [email protected]
Arguments: -forcegpu nvidia_g80 -gpu 0 

[02:33:18] - Ask before connecting: No
[02:33:18] - User name: JonJ (Team 10)
[02:33:18] - User ID: 35C3617424674DFD
[02:33:18] - Machine ID: 2
[02:33:18] 
[02:33:18] Loaded queue successfully.
[02:33:18] 
[02:33:18] + Processing work unit
[02:33:18] Core required: FahCore_11.exe
[02:33:18] Core found.
[02:33:18] Working on queue slot 01 [February 9 02:33:18 UTC]
[02:33:18] + Working ...
[02:33:18] 
[02:33:18] *------------------------------*
[02:33:18] Folding@Home GPU Core
[02:33:18] Version 1.31 (Tue Sep 15 10:57:42 PDT 2009)
[02:33:18] 
[02:33:18] Compiler  : Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 
[02:33:18] Build host: amoeba
[02:33:18] Board Type: Nvidia
[02:33:18] Core      : 
[02:33:18] Preparing to commence simulation
[02:33:18] - Looking at optimizations...
[02:33:18] - Files status OK
[02:33:18] - Expanded 46674 -> 252912 (decompressed 541.8 percent)
[02:33:18] Called DecompressByteArray: compressed_data_size=46674 data_size=252912, decompressed_data_size=252912 diff=0
[02:33:18] - Digital signature verified
[02:33:18] 
[02:33:18] Project: 5768 (Run 10, Clone 143, Gen 1125)
[02:33:18] 
[02:33:18] Assembly optimizations on if available.
[02:33:18] Entering M.D.
Reading file work/wudata_01.tpr, VERSION 3.1.4 (single precision)
Reading file work/wudata_01.tpr, VERSION 3.1.4 (single precision)
Reading sasa-enabled ir 0 0
[02:33:24] Will resume from checkpoint file
[02:33:24] Tpr hash work/wudata_01.tpr:  1151303060 1179564584 1795506272 1872731227 3648335265
[02:33:24] 
[02:33:24] Calling fah_main args: 14 usage=100
[02:33:24] 
Initializing Nvidia gpu library
NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory).
cudaMalloc CUDAStream::Allocate failed initialization error
[02:33:25] mdrun_gpu returned 
[02:33:25] Going to send back what have done -- stepsTotalG=0
[02:33:25] Work fraction=0.0000 steps=0.
[02:33:29] logfile size=12310 infoLength=12310 edr=0 trr=25
[02:33:29] + Opened results file
[02:33:29] - Writing 12848 bytes of core data to disk...
[02:33:29] Done: 12336 -> 4271 (compressed to 34.6 percent)
[02:33:29]   ... Done.
[02:33:29] DeleteFrameFiles: successfully deleted file=work/wudata_01.ckp
[02:33:29] 
[02:33:29] Folding@home Core Shutdown: UNSTABLE_MACHINE
[02:33:32] CoreStatus = 7A (122)
[02:33:32] Sending work to server
[02:33:32] Project: 5768 (Run 10, Clone 143, Gen 1125)
[02:33:32] - Read packet limit of 540015616... Set to 524286976.


[02:33:32] + Attempting to send results [February 9 02:33:32 UTC]
[02:33:33] + Results successfully sent
[02:33:33] Thank you for your contribution to Folding@Home.
[02:33:37] - Preparing to get new work unit...
[02:33:37] + Attempting to get work packet
[02:33:37] - Connecting to assignment server
[02:33:38] - Successful: assigned to (171.67.108.11).
[02:33:38] + News From Folding@Home: Welcome to Folding@Home
[02:33:38] Loaded queue successfully.
[02:33:39] + Closed connections
[02:33:44] 
[02:33:44] + Processing work unit
[02:33:44] Core required: FahCore_11.exe
[02:33:44] Core found.
[02:33:44] Working on queue slot 02 [February 9 02:33:44 UTC]
[02:33:44] + Working ...
[02:33:44] 
[02:33:44] *------------------------------*
[02:33:44] Folding@Home GPU Core
[02:33:44] Version 1.31 (Tue Sep 15 10:57:42 PDT 2009)
[02:33:44] 
[02:33:44] Compiler  : Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 
[02:33:44] Build host: amoeba
[02:33:44] Board Type: Nvidia
[02:33:44] Core      : 
[02:33:44] Preparing to commence simulation
[02:33:44] - Looking at optimizations...
[02:33:44] DeleteFrameFiles: successfully deleted file=work/wudata_02.ckp
[02:33:44] - Created dyn
[02:33:44] - Files status OK
[02:33:44] - Expanded 46636 -> 252912 (decompressed 542.3 percent)
[02:33:44] Called DecompressByteArray: compressed_data_size=46636 data_size=252912, decompressed_data_size=252912 diff=0
[02:33:44] - Digital signature verified
[02:33:44] 
[02:33:44] Project: 5766 (Run 7, Clone 363, Gen 786)
[02:33:44] 
[02:33:44] Assembly optimizations on if available.
[02:33:44] Entering M.D.
Reading file work/wudata_02.tpr, VERSION 3.1.4 (single precision)
Reading file work/wudata_02.tpr, VERSION 3.1.4 (single precision)
Reading sasa-enabled ir 0 0
Initializing Nvidia gpu library
NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory).
cudaMalloc CUDAStream::Allocate failed initialization error
[02:33:50] Tpr hash work/wudata_02.tpr:  1362524593 637642711 4116226190 2075408660 2362482208
[02:33:50] 
[02:33:50] Calling fah_main args: 14 usage=100
[02:33:50] 
[02:33:50] mdrun_gpu returned 
[02:33:50] Going to send back what have done -- stepsTotalG=0
[02:33:50] Work fraction=0.0000 steps=0.
[02:33:54] logfile size=4945 infoLength=4945 edr=0 trr=25
[02:33:54] + Opened results file
[02:33:54] - Writing 5483 bytes of core data to disk...
[02:33:54] Done: 4971 -> 1860 (compressed to 37.4 percent)
[02:33:54]   ... Done.
[02:33:54] DeleteFrameFiles: successfully deleted file=work/wudata_02.ckp
[02:33:54] 
[02:33:54] Folding@home Core Shutdown: UNSTABLE_MACHINE


And the bfg one
Code:
jon@jon-svr:~/folding/bfg$ nice wine [email protected]  -configonly

Note: Please read the license agreement ([email protected] -license). Further 
use of this software requires that you have read and accepted this agreement.

Folding@Home User Configuration

err:wgl:get_render_type_from_fbconfig Unknown render_type: 0
err:wgl:get_render_type_from_fbconfig Unknown render_type: 0
err:wgl:get_render_type_from_fbconfig Unknown render_type: 0
err:wgl:get_render_type_from_fbconfig Unknown render_type: 0
err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:wine_d3d:WineDirect3DCreate Direct3D9 is not available without opengl
wine: Unhandled page fault on read access to 0x00000000 at address 0x7ed91024 (thread 0022), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x7ed91024).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7ed91024 ESP:0032f4d8 EBP:0032f530 EFLAGS:00010206(   - 00      - RIP1)
 EAX:0032f4fc EBX:7eda4678 ECX:7eda4e80 EDX:00000000
 ESI:7ffdf000 EDI:7eda4e7c
Stack dump:
0x0032f4d8:  7eda4e7c 0032f50c 7ed454f0 00000001
0x0032f4e8:  7ed718c4 7ed6b6c4 7ed6a9f4 00000009
0x0032f4f8:  0032f550 0032f548 0032f748 0032f948
0x0032f508:  0032f968 0032f970 0032f974 0032f978
0x0032f518:  0032f97c 0032f980 0032f990 7b8b3884
0x0032f528:  7ffdf000 00424645 0032f9a0 0040e872
Backtrace:
=>1 0x7ed91024 in d3d9 (+0x11024) (0x0032f530)
  2 0x0040e872 in folding@home-win32-gpu (+0xe872) (0x0032f9a0)
  3 0x0040314a in folding@home-win32-gpu (+0x314a) (0x0032f9cc)
  4 0x0040c154 in folding@home-win32-gpu (+0xc154) (0x0032fe9c)
  5 0x0040ea76 in folding@home-win32-gpu (+0xea76) (0x0032fec0)
  6 0x004245ee in folding@home-win32-gpu (+0x245ee) (0x0032ff08)
  7 0x7b877b27 in kernel32 (+0x57b27) (0x0032ffe8)
0x7ed91024: movl	0x0(%edx),%ecx
Modules:
Module	Address			Debug info	Name (59 modules)
PE	  400000-  473000	Export          folding@home-win32-gpu
ELF	7b800000-7b92d000	Export          kernel32<elf>
  \-PE	7b820000-7b92d000	\               kernel32
ELF	7bc00000-7bca4000	Deferred        ntdll<elf>
  \-PE	7bc10000-7bca4000	\               ntdll
ELF	7bf00000-7bf03000	Deferred        <wine-loader>
ELF	7d73c000-7e654000	Deferred        libglcore.so.1
ELF	7e654000-7e70e000	Deferred        libgl.so.1
ELF	7e746000-7e74f000	Deferred        libxcursor.so.1
ELF	7e74f000-7e754000	Deferred        libxfixes.so.3
ELF	7e754000-7e757000	Deferred        libxcomposite.so.1
ELF	7e757000-7e75d000	Deferred        libxrandr.so.2
ELF	7e75d000-7e765000	Deferred        libxrender.so.1
ELF	7e765000-7e768000	Deferred        libxinerama.so.1
ELF	7e768000-7e788000	Deferred        imm32<elf>
  \-PE	7e770000-7e788000	\               imm32
ELF	7e788000-7e78d000	Deferred        libxdmcp.so.6
ELF	7e78d000-7e7a5000	Deferred        libxcb.so.1
ELF	7e7a5000-7e7a7000	Deferred        libxcb-xlib.so.0
ELF	7e7a7000-7e7aa000	Deferred        libxau.so.6
ELF	7e7aa000-7e891000	Deferred        libx11.so.6
ELF	7e891000-7e89f000	Deferred        libxext.so.6
ELF	7e89f000-7e8a4000	Deferred        libxxf86vm.so.1
ELF	7e8b0000-7e8b2000	Deferred        libnvidia-tls.so.1
ELF	7e8b4000-7e94b000	Deferred        winex11<elf>
  \-PE	7e8c0000-7e94b000	\               winex11
ELF	7e962000-7e983000	Deferred        libexpat.so.1
ELF	7e983000-7e9ad000	Deferred        libfontconfig.so.1
ELF	7e9ad000-7e9c2000	Deferred        libz.so.1
ELF	7e9c2000-7ea2f000	Deferred        libfreetype.so.6
ELF	7ea2f000-7ea90000	Deferred        rpcrt4<elf>
  \-PE	7ea40000-7ea90000	\               rpcrt4
ELF	7ea90000-7eb2b000	Deferred        gdi32<elf>
  \-PE	7eaa0000-7eb2b000	\               gdi32
ELF	7eb2b000-7ec72000	Deferred        user32<elf>
  \-PE	7eb50000-7ec72000	\               user32
ELF	7ec72000-7ed75000	Deferred        wined3d<elf>
  \-PE	7ec90000-7ed75000	\               wined3d
ELF	7ed75000-7eda5000	Export          d3d9<elf>
  \-PE	7ed80000-7eda5000	\               d3d9
ELF	7eda5000-7edf7000	Deferred        advapi32<elf>
  \-PE	7edb0000-7edf7000	\               advapi32
ELF	7edf7000-7ee0a000	Deferred        libresolv.so.2
ELF	7ee1a000-7ee38000	Deferred        iphlpapi<elf>
  \-PE	7ee20000-7ee38000	\               iphlpapi
ELF	7ee38000-7ee64000	Deferred        ws2_32<elf>
  \-PE	7ee40000-7ee64000	\               ws2_32
ELF	7ee64000-7ee7e000	Deferred        wsock32<elf>
  \-PE	7ee70000-7ee7e000	\               wsock32
ELF	7ef9e000-7efa9000	Deferred        libnss_files.so.2
ELF	7efa9000-7efb3000	Deferred        libnss_nis.so.2
ELF	7efb3000-7efcb000	Deferred        libnsl.so.1
ELF	7efcb000-7eff0000	Deferred        libm.so.6
ELF	7eff7000-7f000000	Deferred        libnss_compat.so.2
ELF	f7d28000-f7d2c000	Deferred        libdl.so.2
ELF	f7d2c000-f7e7b000	Deferred        libc.so.6
ELF	f7e7c000-f7e94000	Deferred        libpthread.so.0
ELF	f7ea4000-f7fda000	Deferred        libwine.so.1
ELF	f7fdc000-f7ffb000	Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 
	00000019    0
	00000018    0
	00000017    0
	00000009    0
0000000c 
	00000014    0
	00000013    0
	00000012    0
	0000000e    0
	0000000d    0
0000000f 
	00000016    0
	00000015    0
	00000011    0
	00000010    0
00000021 (D) Z:\home\jon\folding\bfg\[email protected]
	00000022    0 <==
00000026 
	00000027    0
Backtrace:
=>1 0x7ed91024 in d3d9 (+0x11024) (0x0032f530)
  2 0x0040e872 in folding@home-win32-gpu (+0xe872) (0x0032f9a0)
  3 0x0040314a in folding@home-win32-gpu (+0x314a) (0x0032f9cc)
  4 0x0040c154 in folding@home-win32-gpu (+0xc154) (0x0032fe9c)
  5 0x0040ea76 in folding@home-win32-gpu (+0xea76) (0x0032fec0)
  6 0x004245ee in folding@home-win32-gpu (+0x245ee) (0x0032ff08)
  7 0x7b877b27 in kernel32 (+0x57b27) (0x0032ffe8)
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7e6cdc58
 
Last edited:
Hi Jon, I can't really help too much here as I've never really tried this.

The first and third errors are quite clearly a wine/dx9 error, the second one looks like it's an issue with xorg finding your card. It does look also like you don't have 3d enabled (third error, although this may be the root of your problem).

First off, I assume you're using the correct version of the nvidia driver for this? (I think it's 185.something beta) and you've not just installed the restricted driver from the ubuntu repositories?

Try
Code:
$ glxinfo grep direct rendering
If that returns a "direct rendering: yes", then try:
Code:
$ glxgears
The latter should open a windows with some multi-coloured 3d gears in it. I would expect you to be getting over 25k frames per second.

Other than that, there's a bit of a lack of info there, you should be able to get more info from your xorg logs
Code:
# cat /var/log/xorg.log | grep EE
or
# cat /var/log/xorg.log | grep WW
The first looks for errors, the second looks for warnings.
 
Cheers for the hints, I'll have another go at this.

Ive been using 180.60 which I believe should be fine, I think it's my implementation of it which is lacking.


Think I've got this. Gave up on ubuntu, moved to debian. Also had issues with this, but eventually ran into
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421028
which appears to have been the source of the problem. Having extracted the required file and set "nvidia" in xorg, I appear to be up and running,
 
Last edited:
Back
Top Bottom