View previous topic :: View next topic |
Author |
Message |
schiotz Apprentice

Joined: 20 Jan 2004 Posts: 206 Location: Denmark
|
Posted: Wed Feb 14, 2007 12:02 pm Post subject: [solv] libGL error: failed to open DRM: Operation not perm.. |
|
|
When I start glxgears, I get the error in the title. I am using a Radeon Mobility X1400 card on a ThinkPad T60 with the ATI drivers. Undoubtedly I have configured something wrong, any guesses?
Code: | schiotz@newdemokrit ~ $ glxgears
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
2188 frames in 5.2 seconds = 418.432 FPS
2160 frames in 5.3 seconds = 411.195 FPS
schiotz@newdemokrit ~ $ eselect opengl list
Available OpenGL implementations:
[1] ati *
[2] xorg-x11
|
Last edited by schiotz on Thu Feb 15, 2007 8:53 am; edited 1 time in total |
|
Back to top |
|
 |
mark_alec Bodhisattva


Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Wed Feb 14, 2007 12:23 pm Post subject: |
|
|
If you try running glxgears as root, do you get that error? If not, try adding yourself to the video group `gpasswd -a schiotz video` to see if that fixes it. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
 |
tdennist Tux's lil' helper


Joined: 11 May 2004 Posts: 145
|
Posted: Wed Feb 14, 2007 12:57 pm Post subject: |
|
|
To get some more verbose error messages, try this:
Code: |
$ LIBGL_DEBUG=verbose glxinfo
|
And tell us what that says. _________________ Registered Linux user #356840
Fleens??! YOU'RE not FLEENS! Well, whatever you are....MAKE ME A PIZZA!!? |
|
Back to top |
|
 |
schiotz Apprentice

Joined: 20 Jan 2004 Posts: 206 Location: Denmark
|
Posted: Wed Feb 14, 2007 2:31 pm Post subject: |
|
|
Thanks for the replies! I get no error as root. I ran the suggested debugging command as myself and as root, and compared the results. This indicates that the problem is permissions on /dev/dri/card0:
Code: | schiotz@newdemokrit ~ $ LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 8.32.5 fglrx (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
libGL error: dlopen /usr/lib/dri/fglrx_dri.so failed (/usr/lib/dri/fglrx_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
libGL error: dlopen /usr/lib/dri/fglrx_dri.so failed (/usr/lib/dri/fglrx_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/dri/fglrx_dri.so
libGL error: dlopen /usr/lib64/dri/fglrx_dri.so failed (/usr/lib64/dri/fglrx_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri//fglrx_dri.so
libGL error: dlopen /usr/lib32/xorg/modules/dri//fglrx_dri.so failed (/usr/lib32/xorg/modules/dri//fglrx_dri.so: wrong ELF class: ELFCLASS32)
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/fglrx_dri.so
libGL: XF86DRIGetClientDriverName: 8.32.5 fglrx (screen 0)
drmOpenByBusid: busid is PCI:1:0:0
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -13
....
|
Note that alll the first error until the drmOpenByBusid line also occur for root, so it is apparently not a real problem
Code: | ls -l /dev/dri/card0
crw-rw---- 1 root root 226, 0 2007-02-14 11:04 /dev/dri/card0
|
Should the group be video? If so, what causes this problem?
Best regards
Jakob |
|
Back to top |
|
 |
madisonicus Veteran


Joined: 20 Sep 2006 Posts: 1130
|
Posted: Wed Feb 14, 2007 4:04 pm Post subject: |
|
|
Do you have Code: | Section "dri"
Mode 0666
EndSection | In your xorg.conf? _________________ Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC |
|
Back to top |
|
 |
tdennist Tux's lil' helper


Joined: 11 May 2004 Posts: 145
|
Posted: Wed Feb 14, 2007 9:35 pm Post subject: |
|
|
Actually, I believe the problem lies in this line:
Code: | libGL error: dlopen /usr/lib/dri/fglrx_dri.so failed (/usr/lib/dri/fglrx_dri.so: cannot open shared object file: No such file or directory) |
If it can't find the driver file, obviously it can't load it :p. I had the a very similar problem, and resolved it by doing Code: | # find / | grep -i fglrx_dri | and then symlinking it to /usr/lib/xorg/modules/fglrx_dri.so.
Hope this helps!
Also, see this thread: https://forums.gentoo.org/viewtopic-t-520835.html specifically page 2. _________________ Registered Linux user #356840
Fleens??! YOU'RE not FLEENS! Well, whatever you are....MAKE ME A PIZZA!!? |
|
Back to top |
|
 |
schiotz Apprentice

Joined: 20 Jan 2004 Posts: 206 Location: Denmark
|
Posted: Thu Feb 15, 2007 8:54 am Post subject: |
|
|
madisonicus wrote: | Do you have Code: | Section "dri"
Mode 0666
EndSection | In your xorg.conf? |
Thanks! That was the problem!
/Jakob |
|
Back to top |
|
 |
|