You are not logged in.

#1 2005-12-31 13:04:42

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

help with OpenGL

Hi,
I have a problem which I assume has to do with a badly configured GL rendering or something. If I run glxgears, I get c. 450 FPS, and the error message:

libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering

I guess something is wrong, but I don't know what. I know the machine (a compaq nx5000 laptop) is capable of a quicker rendering, because when I ran Mepis, it worked fine.
So, I need some advice on what to do, and how to do it.
1. How do I find out which drivers I need, if that's the problem?
2. Which settings do I need to do, and where? xorg.conf?
3. Anything else...?

Offline

#2 2005-12-31 14:13:53

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: help with OpenGL

first of all we need this:
- graphic-oriented infos of your xorg.conf
- kernel-modul
- output from: glxinfo | grep render
- added yourself to the video-group?

thx


sorry for my bad english smile

Offline

#3 2005-12-31 19:48:31

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: help with OpenGL

450 FPS? That's really weird, you should get 90-120 or thereabouts with software rendering.

What's the video hardware? Try 'hwd -s'...

Offline

#4 2005-12-31 22:18:03

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: help with OpenGL

Here's the output of hwd -s:

HARDWARE DETECT ver 4.7.1 (simple mode)
  Kernel     : 2.6.14-ARCH
  CPU & Cache: Processor 0 is Intel(R) Pentium(R) M processor 1500MHz 1495MHz, 1024 KB Cache

  ALSA(sound): Intel Corp.|ICH4 845G/GL Chipset AC'97 Audio Controller module: snd-intel8x0
  Video      : No X
  Mouse      : USB-PS/2 Optical Mouse xtype: IMPS2 module: usbhid device: /dev/input/mice

  Drive(ide) : IC25N040ATMR04-0 (HD) 40010MB / 1740KB cache device: /dev/hda
  Drive(ide) : HL-DT-STCD-RW/DVD DRIVE GCC-4241N (DVDROM) 0MB  device: /dev/hdc
  Swap       : Found 522072KB device: /dev/hda5
  Floppy     : Floppy drive(s): fd0 is 1.44M
  USB        : Intel Corp.|82801DB USB Controller module: uhci_hcd

  Ethernet   : Broadcom Corp.|BCM4401-B0 100Base-TX module: b44 device:   eth0
  eth1
  Network    : Intel Corp.|PRO/Wireless LAN 2200 module: ipw2200
  Modem      : Intel Corp.|82801DB AC module/info: slamr
  Firewire   : Texas Instruments|TSB43AB22 IEEE1394a-2000 OHCI PHY/Link-Layer Ctrlr module: ohci1394
  PCMCIA slot: Texas Instruments|PCI7420 CardBus Controller module: yenta_socket

Offline

#5 2006-01-01 00:16:54

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: help with OpenGL

Gullible Jones wrote:

450 FPS? That's really weird, you should get 90-120 or thereabouts with software rendering.

Nah man, I get around 380fps with software rendering... you running a 486 GJ? tongue


.oO Komodo Dave Oo.

Offline

#6 2006-01-01 00:39:30

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: help with OpenGL

No, Sempron 2200.

eyolf wrote:

Here's the output of hwd -s:
<snip>

Argh! Forgot that HWD doesn't recognize the new version of X... Blegh.

Try 'lshwd'. With the new version of xorg, it won't give you the right module, but it should tell you what your hardware is.

Offline

#7 2006-01-01 02:51:46

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: help with OpenGL

- graphic-oriented infos of your xorg.conf - see below

- kernel-modul - kernel 2.6.14_ARCH
Modul? I know this is overkill, but I have pasted the entire output from lsmod below.

- output from: glxinfo | grep render

glxinfo |grep render                              Sun 01 Jan 02:05:10
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect

- added yourself to the video-group?
yes - now, but no effect

from lshwd:

00:00.0 Host bridge: Intel Corp.|852GM Host-Hub Interface Bridge (intel-agp)
00:00.1 System peripheral: Intel Corp.|852GM System Memory Controller (unknown)
00:00.3 System peripheral: Intel Corp.|852GM Configuration Process (unknown)
00:02.0 VGA compatible controller: Intel Corp.|852GM/852GME/855GM/855GME Chipset Graphics Controller (i810)
00:02.1 Display controller: Intel Corp.|852GM/852GME/855GM/855GME Chipset Graphics Controller (i810)

________________________

xorg.conf:

       Load  "ddc"  # ddc probing of monitor
    Load  "GLcore"
    Load  "dbe"
    Load  "dri"
    Load  "extmod"
    Load  "glx"
        Load  "bitmap" # bitmap-fonts
    Load  "type1"
    Load  "freetype"
    Load  "record"
EndSection

Section "InputDevice"
...
EndSection

# Auto-generated by Archie mkxcfg

Section "Monitor"
    Identifier "Monitor0"
        Option "DPMS" "true"
        <then all the h/vsync lines>
EndSection

# Auto-generated by Archie mkxcfg

Section "Device"
    Identifier  "Card0"
    Driver      "i810"
    VendorName  "All"
    BoardName   "All"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultColorDepth 16
    SubSection "Display"
        Depth     1
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     4
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     8
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     15
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     16
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     24
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth     32
        Modes "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "DRI"
    Mode 0666
EndSection

lsmod:

lsmod                                             Sun 01 Jan 02:05:30
Module                  Size  Used by
ohci_hcd               20228  0
ipw2200                71720  0
i810                   21760  0
i915                   18304  1
drm                    67348  3 i810,i915
hci_usb                14608  0
bluetooth              45444  1 hci_usb
sbp2                   22148  0
ohci1394               33588  0
eth1394                18568  0
ieee1394               91480  3 sbp2,ohci1394,eth1394
uhci_hcd               31888  0
ehci_hcd               33416  0
usbhid                 48672  0
usblp                  11904  0
usb_storage            76864  0
yenta_socket           25228  0
rsrc_nonstatic         12288  1 yenta_socket
pcmcia_core            37528  2 yenta_socket,rsrc_nonstatic
ipw2100                83124  0
ieee80211              21576  2 ipw2200,ipw2100
ieee80211_crypt         4612  1 ieee80211
irtty_sir               5632  0
sir_dev                14924  1 irtty_sir
irda                  127928  1 sir_dev
b44                    21636  0
mii                     4992  1 b44
snd_intel8x0m          15940  0
snd_intel8x0           31456  2
snd_ac97_codec         95612  2 snd_intel8x0m,snd_intel8x0
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm_oss            50848  0
snd_pcm                84484  4 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              22276  1 snd_pcm
snd_page_alloc          8840  3 snd_intel8x0m,snd_intel8x0,snd_pcm
snd_mixer_oss          18048  1 snd_pcm_oss
snd                    49252  11 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8160  1 snd
crc_ccitt               2176  1 irda
pci_hotplug            26692  0
serio_raw               6148  0
pcspkr                  3688  0
evdev                   7936  0
tpm_nsc                 6016  0
tpm_infineon            8336  0
tpm_atmel               4992  0
tpm                     8480  3 tpm_nsc,tpm_infineon,tpm_atmel
rtc                    10936  0
ppdev                   7812  0
lp                      9860  0
intel_agp              21404  1
agpgart                30032  3 drm,intel_agp
parport_pc             26436  1
cpufreq_powersave       1792  0
cpufreq_ondemand        6552  0
speedstep_centrino      6868  1
freq_table              3984  1 speedstep_centrino
usbcore               115328  8 ohci_hcd,hci_usb,uhci_hcd,ehci_hcd,usbhid,usblp,usb_storage
ntfs                  206992  1
nls_cp437               5760  1
vfat                   11904  1
fat                    48284  1 vfat
xfs                   561952  0
reiserfs              269680  0
jfs                   192892  0
ext3                  133384  6
jbd                    58132  1 ext3
sata_qstor              7556  0
sata_promise            8964  0
sata_nv                 7044  0
sata_mv                 7300  0
sata_vsc                5764  0
sata_via                6276  0
sata_uli                4864  0
sata_svw                5764  0
sata_sx4               12164  0
sata_sis                5632  0
sata_sil                6788  0
mptfc                   5508  0
mptspi                  6408  0
mptsas                 11532  0
mptctl                 22912  0
mptscsih               33428  3 mptfc,mptspi,mptsas
mptbase                46048  5 mptfc,mptspi,mptsas,mptctl,mptscsih
megaraid_mbox          32400  0
megaraid_sas           25644  0
megaraid_mm            10020  1 megaraid_mbox
ata_piix                7684  0
osst                   54944  0
sym53c8xx              82324  0
atp870u                30208  0
aha152x                37712  0
aic79xx               271704  0
aic7xxx               182324  0
ahci                    9988  0
libata                 44680  13 sata_qstor,sata_promise,sata_nv,sata_mv,sata_vsc,sata_via,sata_uli,sata_svw,sata_sx4,sata_sis,sata_sil,ata_piix,ahci
raid_class              4224  0
nsp32                  26132  0
aacraid                56576  0
ipr                    53024  0
imm                    12040  0
parport                33736  4 ppdev,lp,parport_pc,imm
3w_xxxx                27680  0
tmscsim                21696  0
dc395x                 36364  0
3w_9xxx                32388  0
a100u2w                10304  0
BusLogic               24756  0
sr_mod                 15652  0
qlogicfas408            6792  0
st                     39072  0
sg                     31776  0
dmx3191d               14080  0
qla6312               115072  0
qla2322               134144  0
qla2300               124416  0
qla2200                87168  0
qla2100                79488  0
qla2xxx               127964  5 qla6312,qla2322,qla2300,qla2200,qla2100
lpfc                  153276  0
scsi_transport_sas     12928  1 mptsas
qla1280               119436  0
sd_mod                 15488  0
ide_floppy             18176  0
ide_cd                 39812  0
cdrom                  38688  2 sr_mod,ide_cd
ide_disk               16128  10
via82cxxx              13468  0 [permanent]
trm290                  4228  0 [permanent]
triflex                 3456  0 [permanent]
slc90e66                5376  0 [permanent]
sis5513                15624  0 [permanent]
siimage                11264  0 [permanent]
serverworks             8840  0 [permanent]
sc1200                  6784  0 [permanent]
rz1000                  2560  0 [permanent]
piix                    9732  0 [permanent]
pdc202xx_old           10240  0 [permanent]
pdc202xx_new            8704  0 [permanent]
ns87415                 4040  0 [permanent]
it821x                  8196  0 [permanent]
hpt366                 18688  0 [permanent]
hpt34x                  4736  0 [permanent]
generic                 4356  0 [permanent]
cy82c693                4356  0 [permanent]
cs5530                  5120  0 [permanent]
cmd64x                 11164  0 [permanent]
atiixp                  5520  0 [permanent]
amd74xx                14364  0 [permanent]
alim15x3               11276  0 [permanent]
aec62xx                 6912  0 [permanent]
ide_core              119248  28 usb_storage,ide_floppy,ide_cd,ide_disk,via82cxxx,trm290,triflex,slc90e66,sis5513,
siimage,serverworks,sc1200,rz1000,piix,pdc202xx_old,pdc202xx_new,ns87415,it821x,
hpt366,hpt34x,generic,cy82c693,cs5530,cmd64x,atiixp,amd74xx,alim15x3,aec62xx


Hope this helps (me...)

Offline

#8 2006-01-01 04:06:42

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: help with OpenGL

Hmm... I'm pretty sure you're not supposed to have both the i810 and i915 modules loaded.

(BTW, you should probably enable AUTODETECT and specify your filesystem modules in mkinitrd.conf and make a new initrd.)

Edit: Aha... The Wiki's got it.

Anyway, try just loading the i810 module. If that doesn't work, try using only i915... But remember that *both* modules are to be used with Xorg's i810 driver.

Offline

#9 2006-01-01 18:31:16

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: help with OpenGL

Thanks - that worked. I don't quite understand why, though - I changed the xorg.conf according to the info in the wiki link. Here's the old (commented out) and the new settings: 

#Section "Device"
#    Identifier  "Card0"
#    Driver      "i810"
#    VendorName  "All"
#    BoardName   "All"
#EndSection

Section "Device"
   Identifier  "device0"
   VendorName  "Intel Corp."
   BoardName  "Unknown Board"
   Driver      "i810"
   BusID "PCI:0:2:0" #may vary?
EndSection

So the changes are: the identifier (which I then changed accordingly in the Section "Screen"), the Vendor and BoardName, and the extra line BusID. Is that what did it?

Offline

#10 2006-01-01 18:59:25

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: help with OpenGL

eyolf wrote:

and the extra line BusID. Is that what did it?

Yep smile


.oO Komodo Dave Oo.

Offline

#11 2006-01-01 19:12:47

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: help with OpenGL

eyolf wrote:

and the extra line BusID. Is that what did it?

EDIT: Wow, I double posted! Does that mean I'm not a virgin anymore?  :shock:


.oO Komodo Dave Oo.

Offline

#12 2006-01-02 01:37:02

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: help with OpenGL

Hm. OK. May I ask one more question, cause this is beginning to look like another one of those: "Arch is great, but sometimes - just sometimes - I'd consider accepting a few seconds extra boot time for the comfort of a "find-all-for-ya" distro like Mepis or knoppix" cases for me.
So, is this something chipset specific, is it something that another xorg-conf-generator than hwd would have found for me, is it something every linux user but me naturally knows (I doubt it, because I haven't seen it mentioned anywhere), and (yes, I know I asked for ONE more, but hey, it's new year...!) what is this BusID anyway? 
(I should also say that despite my occasional feeling of "I want this to JUST WORK", "I wanna go back to Mepis", this forum is and has been a great help, both through direct answers to my questions, and for the previous answers, which have helped me on numerous occasions)

Offline

#13 2006-01-02 21:15:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: help with OpenGL

The busid tells Xorg where your videocard can be found.

I think this is chipset related, but you could always try one of those find-all distros and copy the relevant part from their xorg.conf to yours.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#14 2006-01-02 21:23:55

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: help with OpenGL

Lone_Wolf wrote:

The busid tells Xorg where your videocard can be found.

Expanding on Lone_Wolf's comment, here's a chunk from the xorg.conf commentary. Comments are worth reading eyolf, as they will answer many of your questions - I'm not trying to sound sarcastic when I say that. This particular chunk below is in the VGA section of xorg.conf:

# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# installed.

.oO Komodo Dave Oo.

Offline

#15 2006-01-03 04:20:51

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: help with OpenGL

Point taken,  and I do read all those comments, the man files, the wikis and whatnot, and I have found those an invaluable resource in the Arch installation. In this particular case, there are no such comments in my xorg.conf file, however. This is probably due to the fact that I initially used the recommended hwd -x routine to generate the file, and replaced the original. If that is the problem, there should probably be a line in the wiki to  recommend keeping the default xorg.conf for future reference, because (etc.)

Offline

#16 2006-01-03 09:32:30

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: help with OpenGL

eyolf wrote:

In this particular case, there are no such comments in my xorg.conf file, however. This is probably due to the fact that I initially used the recommended hwd -x routine to generate the file

I suspected this might be the case; that's understandable then.


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB