Gentoo Archives: gentoo-user-br

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

Replies

Subject Author
Re: [gentoo-user-br] Erro de permissao no DRM Daniel da Veiga <danieldaveiga@×××××.com>