1 |
I can't use opengl direct rendering as a normal user, but it does work |
2 |
via "sudo": |
3 |
|
4 |
$ sudo glxinfo | head -n15 |
5 |
Password: |
6 |
name of display: :0 |
7 |
display: :0 screen: 0 |
8 |
direct rendering: Yes |
9 |
server glx vendor string: SGI |
10 |
server glx version string: 1.4 |
11 |
server glx extensions: |
12 |
GLX_ARB_create_context, GLX_ARB_create_context_profile, |
13 |
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, |
14 |
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, |
15 |
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, |
16 |
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, |
17 |
GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, |
18 |
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, |
19 |
GLX_SGIX_visual_select_group, GLX_SGI_make_current_read |
20 |
client glx vendor string: Mesa Project and SGI |
21 |
|
22 |
$ glxinfo |
23 |
name of display: :0 |
24 |
libGL error: unable to load driver: swrast_dri.so |
25 |
libGL error: failed to load driver: swrast |
26 |
libGL error: unable to load driver: swrast_dri.so |
27 |
libGL error: failed to load driver: swrast |
28 |
libGL error: unable to load driver: i965_dri.so |
29 |
libGL error: driver pointer missing |
30 |
libGL error: failed to load driver: i965 |
31 |
libGL error: unable to load driver: swrast_dri.so |
32 |
libGL error: failed to load driver: swrast |
33 |
X Error of failed request: GLXBadContext |
34 |
Major opcode of failed request: 152 (GLX) |
35 |
Minor opcode of failed request: 6 (X_GLXIsDirect) |
36 |
Serial number of failed request: 71 |
37 |
Current serial number in output stream: 70 |
38 |
|
39 |
The .so files mentioned above all seem to be world-read/execute: |
40 |
|
41 |
$ find /usr/lib64 -name '*dri.so' -ls |
42 |
2621601 0 lrwxrwxrwx 1 root root 23 Oct 22 19:52 /usr/lib64/libxcb-xf86dri.so -> libxcb-xf86dri.so.0.0.0 |
43 |
1370135 6260 -rwxr-xr-x 3 root root 6407064 Oct 22 20:06 /usr/lib64/mesa/i965_dri.so |
44 |
1370132 5908 -rwxr-xr-x 3 root root 6047576 Oct 22 20:06 /usr/lib64/mesa/i915g_dri.so |
45 |
1370135 6260 -rwxr-xr-x 3 root root 6407064 Oct 22 20:06 /usr/lib64/mesa/i915_dri.so |
46 |
1370132 5908 -rwxr-xr-x 3 root root 6047576 Oct 22 20:06 /usr/lib64/mesa/kms_swrast_dri.so |
47 |
1370132 5908 -rwxr-xr-x 3 root root 6047576 Oct 22 20:06 /usr/lib64/mesa/swrastg_dri.so |
48 |
1370135 6260 -rwxr-xr-x 3 root root 6407064 Oct 22 20:06 /usr/lib64/mesa/swrast_dri.so |
49 |
3146477 0 lrwxrwxrwx 1 root root 19 Feb 24 2014 /usr/lib64/dri/i965_dri.so -> ../mesa/i965_dri.so |
50 |
3146472 0 lrwxrwxrwx 1 root root 20 Oct 22 20:06 /usr/lib64/dri/i915g_dri.so -> ../mesa/i915g_dri.so |
51 |
3146476 0 lrwxrwxrwx 1 root root 20 Feb 24 2014 /usr/lib64/dri/i915_dri.so -> ../mesa/i915g_dri.so |
52 |
3146475 0 lrwxrwxrwx 1 root root 25 Oct 22 20:06 /usr/lib64/dri/kms_swrast_dri.so -> ../mesa/kms_swrast_dri.so |
53 |
3146369 0 lrwxrwxrwx 1 root root 22 Oct 22 20:06 /usr/lib64/dri/swrastg_dri.so -> ../mesa/swrastg_dri.so |
54 |
3146478 0 lrwxrwxrwx 1 root root 22 Feb 24 2014 /usr/lib64/dri/swrast_dri.so -> ../mesa/swrastg_dri.so |
55 |
|
56 |
|
57 |
This always used to be cured by adding the user to the "video" group, |
58 |
but I'm already a member of the "video" group: |
59 |
|
60 |
$ groups |
61 |
wheel floppy uucp cron audio cdrom video games cdrw usb users vboxusers wireshark |
62 |
|
63 |
$ ls -l /dev/dri |
64 |
total 0 |
65 |
crw-rw---- 1 root video 226, 0 Nov 1 15:00 card0 |
66 |
crw-rw---- 1 root video 226, 1 Nov 1 15:00 card1 |
67 |
crw-rw---- 1 root video 226, 64 Nov 1 15:00 controlD64 |
68 |
crw-rw---- 1 root video 226, 128 Nov 1 15:00 renderD128 |
69 |
|
70 |
|
71 |
According to https://wiki.gentoo.org/wiki/Xorg/Hardware_3D_acceleration_guide: |
72 |
|
73 |
Hopefully just adding your user to the video group is sufficient to |
74 |
enable direct rendering. However, you may also need to create a file |
75 |
in /etc/X11/xorg.conf.d/. You can name it anything you like; just make |
76 |
sure it ends in .conf. Open up your favorite text editor and create a |
77 |
file with this inside it: FILE /etc/X11/xorg.conf.d/10-dri.conf |
78 |
|
79 |
Section "Device" |
80 |
Driver "radeon" |
81 |
EndSection |
82 |
Section "dri" |
83 |
Mode 0666 |
84 |
EndSection |
85 |
|
86 |
Replace radeon with the name of your driver. |
87 |
|
88 |
Why the "Device" section? |
89 |
|
90 |
Which which of my two drivers am I supposed to specify? |
91 |
|
92 |
I already have three "Device" sections (one for each devices) in the |
93 |
main xorg.conf file. Am I really supposed to create another file with |
94 |
an extra "Device" section in it? |
95 |
|
96 |
I tried adding a single "dri" section to xorg.conf, but it didn't |
97 |
help. |
98 |
|
99 |
Any ideas? |
100 |
|
101 |
-- |
102 |
Grant Edwards grant.b.edwards Yow! Should I do my BOBBIE |
103 |
at VINTON medley? |
104 |
gmail.com |