OpenGL won't work with ATI (fglrx) driver

I have the fglrx driver installed and running. They were installed from ATI’s YaST repo. The driver works fine, but OpenGL will not work.

fglrxinfo:


jason@jason-laptop:~> fglrxinfo
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  14
  Current serial number in output stream:  14

xorg.conf:


# /.../
# SaX generated X11 config file
# Created on: 2009-01-28T01:17:47-0600.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection

Section "ServerFlags"
  Option       "AllowMouseOpenFail" "on"
  Option       "ZapWarning" "on"
EndSection

Section "Module"
  Load         "dri"
  Load         "dbe"
  Load         "freetype"
  Load         "extmod"
  Load         "glx"
  #Load	       "GLcore"
EndSection

Section "InputDevice"
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "microsoftpro"
  Option       "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver       "synaptics"
  Identifier   "Mouse[1]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Emulate3Buttons" "on"
  Option       "HorizScrollDelta" "0"
  Option       "InputFashion" "Mouse"
  Option       "Name" "Synaptics;Touchpad"
  Option       "Protocol" "explorerps/2"
  Option       "SHMConfig" "on"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[3]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "ImPS/2 Generic Wheel Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
  DisplaySize  367 230
  HorizSync    30-70
  Identifier   "Monitor[0]"
  ModelName    "LGPHILIPSLCD LCD MONITOR"
  Option       "DPMS"
  Option       "PreferredMode" "1440x900"
  VendorName   "LPL"
  VertRefresh  43-60
  UseModes     "Modes[0]"
EndSection


Section "Modes"
  Identifier   "Modes[0]"
  Modeline 	"1440x900" 106.47 1440 1520 1672 1904 900 901 904 932
  Modeline 	"1440x900" 87.25 1440 1488 1520 1600 900 903 909 926 +HSync -Vsync
EndSection


Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1440x900" 
    Virtual    3840 1200
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1440x900" 
    Virtual    3840 1200
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1440x900" 
    Virtual    3840 1200
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1440x900" 
    Virtual    3840 1200
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection


Section "Device"
  BoardName    "ATI Radeon HD 3200 Graphics"
  #Driver	"fglrx"
  Driver       "radeonhd"
  Identifier   "Device[0]"
  Option       "monitor-PANEL" "Monitor[0]"
  #Option       "DRI" "1"
  VendorName   "ATI"
EndSection



Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  InputDevice  "Mouse[3]" "SendCoreEvents"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection


Section "DRI"
    Group      "video"
    Mode       0660
EndSection

Section "Extensions"
  #Option     "Composite"  "Enable"
EndSection


lsmod:


jason-laptop:~ # lsmod
Module                  Size  Used by
xt_tcpudp               3608  1      
xt_pkttype              2152  3      
ipt_LOG                 6812  8      
xt_limit                3180  8      
af_packet              20728  4      
binfmt_misc            10260  1      
snd_pcm_oss            48896  0      
snd_mixer_oss          16808  1 snd_pcm_oss
snd_seq                61968  0            
snd_seq_device          8604  1 snd_seq    
vboxnetflt             96268  0            
vboxdrv              1692012  1 vboxnetflt 
xt_NOTRACK              2152  2            
ipt_REJECT              3480  3            
xt_state                2568  4            
iptable_raw             2760  1            
iptable_filter          3400  1            
nf_conntrack_netbios_ns     2840  0        
nf_conntrack_ipv4      12792  4            
nf_conntrack           80480  4 xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4                                                                                           
ip_tables              19464  2 iptable_raw,iptable_filter                                  
ip6_tables             21048  0                                                             
x_tables               23376  9 xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,xt_NOTRACK,ipt_REJECT,xt_state,ip_tables,ip6_tables                                                               
cpufreq_conservative     8272  0                                                            
cpufreq_userspace       4204  0                                                             
cpufreq_powersave       2248  0                                                             
powernow_k8            15580  0                                                             
fuse                   61088  7                                                             
loop                   17924  0                                                             
dm_mod                 73952  0                                                             
arc4                    2216  2                                                             
snd_hda_intel         545508  5                                                             
uvcvideo               56240  0                                                             
sdhci_pci               9176  0                                                             
snd_pcm                95440  2 snd_pcm_oss,snd_hda_intel                                   
rtc_cmos               13960  0                                                             
ecb                     3464  2                                                             
snd_timer              26664  2 snd_seq,snd_pcm                                             
rtc_core               22420  1 rtc_cmos                                                    
crypto_blkcipher       19372  1 ecb                                                         
sdhci                  20716  1 sdhci_pci                                                   
snd_page_alloc          9816  2 snd_hda_intel,snd_pcm                                       
rtc_lib                 3560  1 rtc_core                                                    
ath9k                 269144  0                                                             
compat_ioctl32          8536  1 uvcvideo                                                    
i2c_piix4              12376  0                                                             
fglrx                2246200  0                                                             
jmb38x_ms              15724  0                                                             
snd_hwdep               9072  1 snd_hda_intel                                               
i2c_core               35280  1 i2c_piix4                                                   
videodev               35328  2 uvcvideo,compat_ioctl32                                     
shpchp                 32244  0                                                             
mmc_core               65216  1 sdhci                                                       
r8169                  31388  0                                                             
wmi                     8160  0                                                             
video                  24124  0                                                             
battery                13840  0                                                             
sr_mod                 16196  0                                                             
snd                    74632  18 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep                                                             
mac80211              242320  1 ath9k                                                       
memstick               14176  1 jmb38x_ms                                                   
pci_hotplug            31864  1 shpchp                                                      
button                  8328  0                                                             
ac                      5776  0                                                             
mii                     6024  1 r8169                                                       
v4l1_compat            14220  2 uvcvideo,videodev                                           
joydev                 12112  0                                                             
soundcore               8816  1 snd                                                         
output                  3672  1 video                                                       
sg                     35344  0                                                             
cdrom                  36200  1 sr_mod                                                      
cfg80211               28200  1 mac80211                                                    
ehci_hcd               55348  0                                                             
ohci_hcd               36548  0                                                             
usbcore               198656  4 uvcvideo,ehci_hcd,ohci_hcd                                  
sd_mod                 35064  6                                                             
crc_t10dif              2152  1 sd_mod                                                      
edd                    10272  0                                                             
ext3                  141912  2                                                             
mbcache                10412  1 ext3                                                        
jbd                    68824  1 ext3
fan                     6016  0
ide_pci_generic         4652  0
atiixp                  4476  0
ide_core              118012  2 ide_pci_generic,atiixp
ata_generic             6044  0
pata_atiixp             6072  0
ahci                   34628  5
libata                183376  3 ata_generic,pata_atiixp,ahci
scsi_mod              179144  4 sr_mod,sg,sd_mod,libata
dock                   14564  1 libata
thermal                24232  0
processor              49904  2 powernow_k8,thermal
thermal_sys            14336  4 video,fan,thermal,processor
hwmon                   4040  1 thermal_sys

libGL.so:


jason-laptop:~ # ls /usr/lib64 | grep libGL
libGL.so
libGL.so.1
libGL.so.1.2
libGLU.so
libGLU.so.1
libGLU.so.1.3.070200

Any help would be appreciated.

Have you had a look at /var/log/Xorg.0.log for errors

Uh, here’s the file. It never mentions any errors when loading GLX.

2shared - download Xorg.0.log

I’ve tried reinstalling the driver but that hasn’t helped anything. I’ve tried downloading the .RUN file from their site, but that messed up X…I fixed X, only to have those drivers not completely fail with OpenGL too. So now I’m back to the drivers from the repo.

Try this:
sudo rm /usr/lib/dri/fglrx_dri.so # Or move it to another place
sudo ln -s /usr/lib64/dri/fglrx_dri.so /usr/lib/dri/fglrx_dri.so

Linking fglrx_dri to its 64-bit counterpart did nothing. I also tried linking /usr/lib/dri/dri to /usr/lib64/dri, which did nothing.

God, I’m stupid. I had Xorg.conf loading radeonhd rather than fglrx. It’s working great now, though! But why the hell did fglrx load along with radeonhd anyway?

OK, so maybe it isn’t working so great after all.

-The screen defaults to some ridiculous 3000 pixel resolution, and I have to change it every time I reboot.

-If I try to log out, I get a garbled black screen, forcing me to reboot

-When desktop compositing is enabled, trying to play a video with mplayer or vlc will cause that window to become all black

Just a guess, but I think that ATI could stand to improve their drivers a little.

Hello,
i think i have a similar problem
installed ati drivers from ati website (ver 9.2 if I remember right)
after writing fglrxinfo in terminal:

X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 156 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 12
Current serial number in output stream: 12

glxinfo:

name of display: :0.0
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 156 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 12
Current serial number in output stream: 12

xorg.conf file:

/…/

SaX generated X11 config file

Created on: 2009-02-27T18:35:57+0200.

Version: 8.1

Contact: Marcus Schaefer <sax@suse.de>, 2005

Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users&gt;

Automatically generated by [ISaX] (8.1)

PLEASE DO NOT EDIT THIS FILE!

Section “ServerLayout”
Identifier “Layout[all]”
Screen 0 “aticonfig-Screen[0]-0” 0 0
InputDevice “Keyboard[0]” “CoreKeyboard”
InputDevice “Mouse[1]” “CorePointer”
Option “Clone” “off”
Option “Xinerama” “off”
EndSection

Section “Files”
InputDevices “/dev/gpmdata”
InputDevices “/dev/input/mice”
FontPath “/usr/share/fonts/misc:unscaled”
FontPath “/usr/share/fonts/local”
FontPath “/usr/share/fonts/75dpi:unscaled”
FontPath “/usr/share/fonts/100dpi:unscaled”
FontPath “/usr/share/fonts/Type1”
FontPath “/usr/share/fonts/URW”
FontPath “/usr/share/fonts/Speedo”
FontPath “/usr/share/fonts/PEX”
FontPath “/usr/share/fonts/cyrillic”
FontPath “/usr/share/fonts/latin2/misc:unscaled”
FontPath “/usr/share/fonts/latin2/75dpi:unscaled”
FontPath “/usr/share/fonts/latin2/100dpi:unscaled”
FontPath “/usr/share/fonts/latin2/Type1”
FontPath “/usr/share/fonts/latin7/75dpi:unscaled”
FontPath “/usr/share/fonts/baekmuk:unscaled”
FontPath “/usr/share/fonts/japanese:unscaled”
FontPath “/usr/share/fonts/kwintv”
FontPath “/usr/share/fonts/truetype”
FontPath “/usr/share/fonts/uni:unscaled”
FontPath “/usr/share/fonts/CID”
FontPath “/usr/share/fonts/ucs/misc:unscaled”
FontPath “/usr/share/fonts/ucs/75dpi:unscaled”
FontPath “/usr/share/fonts/ucs/100dpi:unscaled”
FontPath “/usr/share/fonts/hellas/misc:unscaled”
FontPath “/usr/share/fonts/hellas/75dpi:unscaled”
FontPath “/usr/share/fonts/hellas/100dpi:unscaled”
FontPath “/usr/share/fonts/hellas/Type1”
FontPath “/usr/share/fonts/misc/sgi:unscaled”
FontPath “/usr/share/fonts/xtest”
FontPath “/opt/kde3/share/fonts”
EndSection

Section “Module”
Load “freetype”
Load “glx”
Load “dbe”
Load “extmod”
Load “dri”
EndSection

Section “ServerFlags”
Option “AIGLX” “on”
Option “AllowMouseOpenFail” “on”
Option “IgnoreABI” “on”
Option “ZapWarning” “on”
EndSection

Section “InputDevice”
Identifier “Keyboard[0]”
Driver “kbd”
Option “Protocol” “Standard”
Option “XkbLayout” “undef”
Option “XkbModel” “undef”
Option “XkbRules” “xfree86”
EndSection

Section “InputDevice”
Identifier “Mouse[1]”
Driver “mouse”
Option “Buttons” “5”
Option “Device” “/dev/input/mice”
Option “Name” “Creative Optical Mouse”
Option “Protocol” “explorerps/2”
Option “Vendor” “Sysp”
Option “ZAxisMapping” “4 5”
EndSection

Section “Modes”
Identifier “Modes[0]”
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

Section “DRI”
Group “video”
Mode 0660
EndSection

Section “Extensions”
Option “Composite” “on”
EndSection

tried
rm /usr/lib/dri/fglrx_dri.so #wer
ln -s /usr/lib64/dri/fglrx_dri.so /usr/lib/dri/fglrx_dri.so
and nothing helps ^^’
I’m still new to linux… sorry for my english
p.s.
openSuSe 11.1, ati radeon 9550