Linux Games with Open GL do not start

Dear all,
I am a complete newbie to Linux.
I have downloaded some of the programs from the games section.

  • gl-117
  • Brutalchess
  • Search and Rescue.

When I execute them (not via console) the cursor changes, a corresponding tab on the bottom is created but both effects vanish after a few seconds and nothing happens.

Ok, so I downloaded the drivers from the ATI website:
ati-driver-installer-9-12-x86_64.run.

I executed it with
sudo sh ./ati-driver-installer-9-12-x86_64.run
and it seemed to install ok.

Now, the games still don’t run and scrolling in Firefox has become painfully slow.

Can I get some error protocols somewhere that may help to find what is missing?

I have Suse 11.2 64Bit, and AMD 64 Bit processor and a Radeon 4870.

(It is hard to replicate for me, but I used some one-click install from the SUSE websites which keeps failing with dozens error messages, if it helps I can try to use this install method again and copy big list, but I do not really expect this will be of help and only confuse matters…)

Open a terminal window, type in the commands for those games, and tell us what (if anything) you get back.

Thanks a lot.
Here is what Search and Rescue says:

axel@linux-q52q:/usr/games> SearchAndRescue                                                                                                                                  
X Server error #17:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #18:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #19:  type: BadRequest  major_op_code: 135  minor_op_code: 14                                                                                                 
Warning: Unable to find glX, this is used for X and OpenGL communications.                                                                                                   
X Server error #24:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #25:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #26:  type: BadRequest  major_op_code: 135  minor_op_code: 14                                                                                                 
X Server error #31:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #32:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #33:  type: BadRequest  major_op_code: 135  minor_op_code: 14                                                                                                 
X Server error #38:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #39:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #40:  type: BadRequest  major_op_code: 135  minor_op_code: 14                                                                                                 
X Server error #45:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #46:  type: BadRequest  major_op_code: 135  minor_op_code: 19                                                                                                 
X Server error #47:  type: BadRequest  major_op_code: 135  minor_op_code: 14                                                                                                 
Unable to find a suitable X Visual.                                                                                                                                          

Please verify that you have an X Visual suitable for OpenGL rendering
by running "xdpyinfo". Also note that defining multiple Visuals      
may confuse the selection of a proper Visual (in which case try defining
only one Visual).                                                       

Your hardware may have a Visual that is not compatible with this program.
Search and Rescue triggered a segmentation fault.  

Ok, so I followed the instructions and executed xdpyinfo:

axel@linux-q52q:/usr/games> xdpyinfo                                     
name of display:    :0.0                                                 
version number:    11.0                                                  
vendor string:    The X.Org Foundation                                   
vendor release number:    10605000                                       
X.Org version: 1.6.5                                                     
maximum request size:  16777212 bytes                                    
motion buffer size:  256                                                 
bitmap unit, bit order, padding:    32, LSBFirst, 32                     
image byte order:    LSBFirst                                            
number of supported pixmap formats:    7                                 
supported pixmap formats:                                                
    depth 1, bits_per_pixel 1, scanline_pad 32                           
    depth 4, bits_per_pixel 8, scanline_pad 32                           
    depth 8, bits_per_pixel 8, scanline_pad 32                           
    depth 15, bits_per_pixel 16, scanline_pad 32                         
    depth 16, bits_per_pixel 16, scanline_pad 32                         
    depth 24, bits_per_pixel 32, scanline_pad 32                         
    depth 32, bits_per_pixel 32, scanline_pad 32                         
keycode range:    minimum 8, maximum 255                                 
focus:  window 0x120001c, revert to PointerRoot                          
number of extensions:    32                                              
    ATI-GLX                                                              
    ATIFGLEXTENSION                                                      
    ATIFGLRXDRI                                                          
    ATITVOUT                                                             
    BIG-REQUESTS                                                         
    Composite                                                            
    DAMAGE                                                               
    DOUBLE-BUFFER                                                        
    DPMS                                                                 
    DRI2                                                                 
    GLX                                                                  
    Generic Event Extension                                              
    MIT-SCREEN-SAVER                                                     
    MIT-SHM                                                              
    RANDR                                                                
    RECORD                                                               
    RENDER                                                               
    SECURITY                                                             
    SHAPE                                                                
    SYNC                                                                 
    X-Resource                                                           
    XC-MISC                                                              
    XFIXES                                                               
    XFree86-DGA                                                          
    XFree86-DRI                                                          
    XFree86-VidModeExtension                                             
    XINERAMA                                                             
    XInputExtension                                                      
    XKEYBOARD                                                            
    XTEST                                                                
    XVideo                                                               
    glesx                                                                
default screen number:    0                                              
number of screens:    1                                                  

screen #0:
  print screen:    no
  dimensions:    1600x1200 pixels (432x324 millimeters)
  resolution:    94x94 dots per inch                   
  depths (7):    24, 1, 4, 8, 15, 16, 32               
  root window id:    0x60                              
  depth of root window:    24 planes                   
  number of colormaps:    minimum 1, maximum 1         
  default colormap:    0x20                            
  default number of colormap cells:    256             
  preallocated pixels:    black 0, white 16777215      
  options:    backing-store NO, save-unders NO         
  largest cursor:    64x64                             
  current input event mask:    0xfac031                
    KeyPressMask             EnterWindowMask          LeaveWindowMask          
    KeymapStateMask          ExposureMask             StructureNotifyMask      
    SubstructureNotifyMask   SubstructureRedirectMask FocusChangeMask          
    PropertyChangeMask       ColormapChangeMask                                
  number of visuals:    9                                                      
  default visual id:  0x23                                                     
  visual:                                                                      
    visual id:    0x23                                                         
    class:    TrueColor                                                        
    depth:    24 planes                                                        
    available colormap entries:    256 per subfield                            
    red, green, blue masks:    0xff0000, 0xff00, 0xff                          
    significant bits in color specification:    8 bits                         
  visual:                                                                      
    visual id:    0x24                                                         
    class:    TrueColor                                                        
    depth:    24 planes                                                        
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x25
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x26
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x27
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x28
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x29
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x2a
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x5e
    class:    TrueColor
    depth:    32 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

Finally I also found the folder with Brutalchess:

axel@linux-q52q:/usr/share> brutalchess
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  135 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  18
  Current serial number in output stream:  18

and finally gl-117:

axel@linux-q52q:/usr/games> gl-117
Info: Found gl-117 data directory /usr/share/games/gl-117
Info: Startup gl-117, V1.3 ...
Info: Loading /home/axel/.gl-117/conf
Info: Saving /home/axel/.gl-117/conf
Info: Loading /home/axel/.gl-117/conf.interface
Info: Saving /home/axel/.gl-117/conf.interface
Warning: Could not load saves/pilots
Warning: Could not load pilot
Info: Using SDL and GLUT
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  135 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  18
  Current serial number in output stream:  18
Speicherzugriffsfehler

I hope this helps…
Like I said… I have no clue (yet)…:frowning:
Thanks a lot.

I have investigated a bit more.
I found some instruction under [-0"
Driver “fglrx”
BusID “PCI:1:0:0”
EndSection



And fglrxinfo leads to:

axel@linux-q52q:/etc/X11> fglrxinfo
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 135 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 17
Current serial number in output stream: 17



This however looks strangely similar to what the games said...]("http://wiki.ubuntuusers.de/Grafikkarten/ATI/fglrx")

Well… it seems like Open GL might be really messed up, could be a problem with the driver installation. Since I’m not using fglrx and don’t have a 64 bit system, I’m not entirely sure how you would go about fixing it.

Just to be sure it’s not working though, type “glxgears” in a terminal window. If OpenGL is working, a new window should pop up with spinning gears in it. If you get something else, let us know what it says.

looks quite the same as above:

axel@linux-q52q:~> glxgears
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  135 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  17
  Current serial number in output stream:  17

Which ATI card?

Try uninstalling the ATI driver then reinstalling being sure you have the correct one for your card.

I got a Radeon 4870.
Well… uninstalling the driver…
:
:shame:
How to do this?

I have tried it before with

Launch the Terminal Application/Window and navigate to the /usr/share/ati folder.
With superuser permissions, enter the command “sh ./fglrx-uninstall.sh”.
Reboot your system.

as described in the manual downloaded from Ati.

Do I need to do sthg in Yast as well?
Well, KDE didnt start anymore, so it can’t have been that bad.
However, I am no longer sure if the install routine really is ok… because it seems like I get kicked to a console without any linefeeds…
I will try to capture it next time…

it is cryptic, but there is a message like:
/ati-installer.sh line 41: 11821 aborted (Abgebrochen in my German edition)
But it also says “installation complete”

then I started aticonfig:

axel@linux-q52q:/usr/X11R6/bin> aticonfig --initial
Found fglrx primary device section
Using /etc/X11/xorg.conf
Saved back-up to /etc/X11/xorg.conf.fglrx-3
aticonfig: Writing to ‘/etc/X11/xorg.conf’ failed. Bad file descriptor.
axel@linux-q52q:/usr/X11R6/bin>

Hmmm something is messed.

try the one step install

ATI - openSUSE

I doubt that the driver is listed in Yast because you did a manual install. But you could check do a search for fglrx. The one step method will put it in the Yast list.

ok, it started installing after clicking the link, but then Yast reports:

the installation of the package
./x86_64/x11-video-fglrxG02-8.661-25.1.x86_64rpm has failed

i chose to show details:

Subprocess failed. Error: RPM fehlgeschlagen: rpmdb: PANIC: Invalid argument
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_put: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) storing record extensions into Basenames
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "fglrx_gamma.h" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "dri" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "fglrx_dri.so" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libAMDXvBA.cap" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libAMDXvBA.so.1.0" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libXvBAW.so.1.0" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libatiadlxx.so" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libaticalcl.so" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libaticaldd.so" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libaticalrt.so" records from Basenames index
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
error: error(-30977) getting "libfglrx_dm.a" records from Basenames index


(thew total error message is longer than I am allowed to post, so i cut the end…)

I got it!
My rpm database was totally messed up.
Sorry, I forgot the command I used, but it reset the package database.
Then I used zypper dup and zypper up and voila!
Now 3D games run.