1 |
Olá, |
2 |
|
3 |
Tenho uma placa mãe Asus P5PE-VM com vídeo onboard (Intel 82865G). |
4 |
|
5 |
Aparentemente tá tudo configurado certo e funcionando, aceleração de |
6 |
hardware etc. |
7 |
|
8 |
Só tem um pequeno probleminha, quando tento abrir um programa que usa DRM |
9 |
com um usuário normal (que está no grupo video), aparece o seguinte erro: |
10 |
|
11 |
$ glxinfo | grep rendering |
12 |
libGL error: open DRM failed (Operation not permitted) |
13 |
libGL error: reverting to (slow) indirect rendering |
14 |
direct rendering: No |
15 |
|
16 |
Eu consegui resolver "na mão": |
17 |
|
18 |
# ls -l /dev/dri/card0 |
19 |
crw-rw---- 1 root root 226, 0 Dec 6 04:39 /dev/dri/card0 |
20 |
# chgrp video /dev/dri/card0 |
21 |
# ls -l /dev/dri/card0 |
22 |
crw-rw---- 1 root video 226, 0 Dec 6 04:39 /dev/dri/card0 |
23 |
|
24 |
Então, com um usuário normal: |
25 |
|
26 |
$ glxinfo | grep rendering |
27 |
direct rendering: Yes |
28 |
|
29 |
Mudando o grupo do dispositivo pra video resolve o problema, mas, |
30 |
temporariamente. |
31 |
Quando reinicia o linux, volta pro grupo root. Acredito que seja por causa |
32 |
do udev. |
33 |
|
34 |
Umas das soluções que eu pensei foi ativar a opção RC_DEVICE_TARBALL no |
35 |
arquivo /etc/conf.d/rc, mas isso tá meio com cara de xunxo, não? idéias? |
36 |
|
37 |
-- |
38 |
Fabiano. |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
# emerge --info |
44 |
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, |
45 |
2.6.17-gentoo-r8-f1 i686) |
46 |
================================================================= |
47 |
System uname: 2.6.17-gentoo-r8-f1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz |
48 |
Gentoo Base System version 1.12.6 |
49 |
Last Sync: Sat, 02 Dec 2006 04:50:01 +0000 |
50 |
ccache version 2.3 [enabled] |
51 |
app-admin/eselect-compiler: [Not Present] |
52 |
dev-java/java-config: 1.3.7, 2.0.30 |
53 |
dev-lang/python: 2.4.3-r4 |
54 |
dev-python/pycrypto: 2.0.1-r5 |
55 |
dev-util/ccache: 2.3 |
56 |
dev-util/confcache: [Not Present] |
57 |
sys-apps/sandbox: 1.2.17 |
58 |
sys-devel/autoconf: 2.13, 2.60 |
59 |
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 |
60 |
sys-devel/binutils: 2.16.1-r3 |
61 |
sys-devel/gcc-config: 1.3.13-r4 |
62 |
sys-devel/libtool: 1.5.22 |
63 |
virtual/os-headers: 2.6.17-r1 |
64 |
ACCEPT_KEYWORDS="x86" |
65 |
AUTOCLEAN="yes" |
66 |
CBUILD="i686-pc-linux-gnu" |
67 |
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" |
68 |
CHOST="i686-pc-linux-gnu" |
69 |
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config |
70 |
/usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb |
71 |
/usr/share/config" |
72 |
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf |
73 |
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" |
74 |
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" |
75 |
DISTDIR="/dados/portage/distfiles" |
76 |
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer |
77 |
parallel-fetch sandbox sfperms strict" |
78 |
GENTOO_MIRRORS="http://distfiles.gentoo.org |
79 |
http://distro.ibiblio.org/pub/linux/distributions/gentoo" |
80 |
LANG="pt_BR.iso8859-1 pt_BR pt-BR" |
81 |
LC_ALL="pt_BR" |
82 |
LINGUAS="pt_BR.iso8859-1 pt_BR pt-BR" |
83 |
MAKEOPTS="-j6" |
84 |
PKGDIR="/dados/portage/packages" |
85 |
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times |
86 |
--compress --force --whole-file --delete --delete-after --stats |
87 |
--timeout=180 --exclude='/distfiles' --exclude='/local' |
88 |
--exclude='/packages'" |
89 |
PORTAGE_TMPDIR="/dados/portage/tmp" |
90 |
PORTDIR="/usr/portage" |
91 |
PORTDIR_OVERLAY="/usr/local/portage" |
92 |
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage" |
93 |
USE="x86 X alsa amuled apache2 bash-completion berkdb bitmap-fonts bzip2 |
94 |
ccache cdr cli cracklib crypt cscope cups demo dga dlloader doc doomsday dri |
95 |
dvd dvdr dvdread elibc_glibc encode fam ffpmeg fortran gdbm gnome gpm gtk |
96 |
gtk2 iconv imagemagick input_devices_keyboard input_devices_mouse isdnlog |
97 |
java jpeg jpeg2k kde kernel_linux lame lcms libg++ linguas_pt-BR |
98 |
linguas_pt_BR linguas_pt_BR.iso8859-1 lua mmx mozilla mp3 mysql ncurses nls |
99 |
nptl nptlonly nsplugin openal opengl pcre pdf perl png ppds pppd python |
100 |
readline reflection samba sdl sdl-sound sdlaudio session spl sse ssl stats |
101 |
tcltk tcpd threads tiff truetype-fonts type1-fonts udev unicode userland_GNU |
102 |
userlocales vcd video_cards_fbdev video_cards_i810 video_cards_vesa |
103 |
video_cards_vga vim vim-pager vim-syntax vim-with-x vorbis wmf xine xorg xv |
104 |
xvid zlib" |
105 |
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, |
106 |
PORTAGE_RSYNC_EXTRA_OPTS |
107 |
|
108 |
|
109 |
# eix -C -I 'x11-(libs|base|drivers)' -c |
110 |
[I] x11-base/xorg-server (1.1.1-r1): X.Org X servers |
111 |
[I] x11-base/xorg-x11 (7.1): An X11 implementation maintained by the |
112 |
X.OrgFoundation (meta package) |
113 |
[I] x11-drivers/xf86-input-keyboard (1.1.0): Keyboard input driver |
114 |
[I] x11-drivers/xf86-input-mouse (1.1.1): X.Org driver for mouse input |
115 |
devices |
116 |
[I] x11-drivers/xf86-video-fbdev (0.3.0): video driver for framebuffer |
117 |
device |
118 |
[I] x11-drivers/xf86-video-i810 (1.7.2-r1): X.Org driver for Intel cards |
119 |
[I] x11-drivers/xf86-video-mga (1.4.2): Matrox video driver |
120 |
[I] x11-drivers/xf86-video-vesa (1.2.1): Generic VESA video driver |
121 |
[I] x11-drivers/xf86-video-vga (4.1.0): Generic VGA video driver |
122 |
[I] x11-libs/Xaw3d (1.5-r1): drop-in 3D replacement of the Xaw widget set |
123 |
which comes with X |
124 |
[I] x11-libs/cairo (1.2.4): A vector graphics library with cross-device |
125 |
output support |
126 |
[I] x11-libs/gtk+ (1.2.10-r12 2.10.6): Gimp ToolKit + |
127 |
[I] x11-libs/gtkglarea (1.99.0): GL extensions for gtk+ |
128 |
[I] x11-libs/libICE (1.0.1): X.Org ICE library |
129 |
[I] x11-libs/libSM (1.0.1): X.Org SM library |
130 |
[I] x11-libs/libX11 (1.0.3): X.Org X11 library |
131 |
[I] x11-libs/libXScrnSaver (1.1.0): X.Org XScrnSaver library |
132 |
[I] x11-libs/libXau (1.0.2): X.Org Xau library |
133 |
[I] x11-libs/libXaw (1.0.2): X.Org Xaw library |
134 |
[I] x11-libs/libXcomposite (0.3): X.Org Xcomposite library |
135 |
[I] x11-libs/libXcursor (1.1.7): X.Org Xcursor library |
136 |
[I] x11-libs/libXdamage (1.0.3): X.Org Xdamage library |
137 |
[I] x11-libs/libXdmcp (1.0.1): X.Org Xdmcp library |
138 |
[I] x11-libs/libXext (1.0.1): X.Org Xext library |
139 |
[I] x11-libs/libXfixes (4.0.1): X.Org Xfixes library |
140 |
[I] x11-libs/libXfont (1.2.2): X.Org Xfont library |
141 |
[I] x11-libs/libXft (2.1.10): X.Org Xft library |
142 |
[I] x11-libs/libXi (1.0.1): X.Org Xi library |
143 |
[I] x11-libs/libXinerama (1.0.1): X.Org Xinerama library |
144 |
[I] x11-libs/libXmu (1.0.2): X.Org Xmu library |
145 |
[I] x11-libs/libXp (1.0.0): X.Org Xp library |
146 |
[I] x11-libs/libXpm (3.5.5): X.Org Xpm library |
147 |
[I] x11-libs/libXrandr (1.1.1): X.Org Xrandr library |
148 |
[I] x11-libs/libXrender (0.9.1): X.Org Xrender library |
149 |
[I] x11-libs/libXres (1.0.1): X.Org XRes library |
150 |
[I] x11-libs/libXt (1.0.2): X.Org Xt library |
151 |
[I] x11-libs/libXtst (1.0.1): X.Org Xtst library |
152 |
[I] x11-libs/libXv (1.0.1): X.Org Xv library |
153 |
[I] x11-libs/libXvMC (1.0.2): X.Org XvMC library |
154 |
[I] x11-libs/libXxf86dga (1.0.1): X.Org Xxf86dga library |
155 |
[I] x11-libs/libXxf86misc (1.0.1): X.Org Xxf86misc library |
156 |
[I] x11-libs/libXxf86vm (1.0.1): X.Org Xxf86vm library |
157 |
[I] x11-libs/libdmx (1.0.2): X.Org dmx library |
158 |
[I] x11-libs/libdrm (2.0.2): X.Org libdrm library |
159 |
[I] x11-libs/libfontenc (1.0.2): X.Org fontenc library |
160 |
[I] x11-libs/liblbxutil (1.0.1): X.Org lbxutil library |
161 |
[I] x11-libs/libxkbfile (1.0.3): X.Org xkbfile library |
162 |
[I] x11-libs/libxkbui (1.0.2): X.Org xkbui library |
163 |
[I] x11-libs/motif-config (0.9): Utility to change the default Motif library |
164 |
[I] x11-libs/openmotif (2.2.3-r9): Open Motif |
165 |
[I] x11-libs/pango (1.14.7): Text rendering and layout library |
166 |
[I] x11-libs/qt (3.3.6-r4): The Qt toolkit is a comprehensive C++ |
167 |
application development framework. |
168 |
[I] x11-libs/startup-notification (0.8): Application startup notification |
169 |
and feedback library |
170 |
[I] x11-libs/wxGTK (2.6.3.3): GTK+ version of wxWidgets, a cross-platform |
171 |
C++ GUI toolkit and wxbase non-gui library |
172 |
[I] x11-libs/xtrans (1.0.1): X.Org xtrans library |
173 |
Found 55 matches. |
174 |
|
175 |
|
176 |
# cat /etc/X11/xorg.conf | egrep -v '^( |\t)*(#|$)' |
177 |
Section "ServerLayout" |
178 |
Identifier "X.org Configured" |
179 |
Screen 0 "Screen0" 0 0 |
180 |
InputDevice "Mouse0" "CorePointer" |
181 |
InputDevice "Keyboard0" "CoreKeyboard" |
182 |
EndSection |
183 |
Section "Files" |
184 |
RgbPath "/usr/share/X11/rgb" |
185 |
ModulePath "/usr/lib/xorg/modules" |
186 |
FontPath "/usr/share/fonts/misc/" |
187 |
FontPath "/usr/share/fonts/TTF/" |
188 |
FontPath "/usr/share/fonts/OTF" |
189 |
FontPath "/usr/share/fonts/Type1/" |
190 |
FontPath "/usr/share/fonts/CID/" |
191 |
FontPath "/usr/share/fonts/100dpi/" |
192 |
FontPath "/usr/share/fonts/75dpi/" |
193 |
EndSection |
194 |
Section "Module" |
195 |
Load "glx" |
196 |
Load "extmod" |
197 |
Load "xtrap" |
198 |
Load "record" |
199 |
Load "dbe" |
200 |
Load "dri" |
201 |
Load "freetype" |
202 |
Load "type1" |
203 |
EndSection |
204 |
Section "InputDevice" |
205 |
Identifier "Keyboard0" |
206 |
Driver "kbd" |
207 |
Option "XkbModel" "pc102" |
208 |
Option "XkbLayout" "us" |
209 |
Option "XkbVariant" "intl" |
210 |
EndSection |
211 |
Section "InputDevice" |
212 |
Identifier "Mouse0" |
213 |
Driver "mouse" |
214 |
Option "Protocol" "auto" |
215 |
Option "Device" "/dev/psaux" |
216 |
Option "ZAxisMapping" "4 5 6 7" |
217 |
EndSection |
218 |
Section "Monitor" |
219 |
#DisplaySize 330 250 # mm |
220 |
Identifier "Monitor0" |
221 |
VendorName "GSM" |
222 |
ModelName "" |
223 |
HorizSync 30.0 - 98.0 |
224 |
VertRefresh 50.0 - 160.0 |
225 |
Option "DPMS" |
226 |
EndSection |
227 |
Section "Device" |
228 |
Option "DRI" # [<bool>] |
229 |
Identifier "Card0" |
230 |
Driver "i810" |
231 |
VendorName "Intel Corporation" |
232 |
BoardName "82865G Integrated Graphics Controller" |
233 |
#BusID "PCI:0:2:0" |
234 |
EndSection |
235 |
Section "Screen" |
236 |
Identifier "Screen0" |
237 |
Device "Card0" |
238 |
Monitor "Monitor0" |
239 |
DefaultDepth 24 |
240 |
SubSection "Display" |
241 |
Viewport 0 0 |
242 |
Depth 1 |
243 |
EndSubSection |
244 |
SubSection "Display" |
245 |
Viewport 0 0 |
246 |
Depth 4 |
247 |
EndSubSection |
248 |
SubSection "Display" |
249 |
Viewport 0 0 |
250 |
Depth 8 |
251 |
EndSubSection |
252 |
SubSection "Display" |
253 |
Viewport 0 0 |
254 |
Depth 15 |
255 |
EndSubSection |
256 |
SubSection "Display" |
257 |
Viewport 0 0 |
258 |
Depth 16 |
259 |
EndSubSection |
260 |
SubSection "Display" |
261 |
Viewport 0 0 |
262 |
Modes "1600x1200" "1280x1024" "1024x768" "800x600" |
263 |
Depth 24 |
264 |
EndSubSection |
265 |
EndSection |