Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72782 - adding user to video group fixes opengl extensions for nvidia driver
Summary: adding user to video group fixes opengl extensions for nvidia driver
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: nVIDIA Trouble Shooting Guide (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/nvidia-g...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-28 18:22 UTC by David Cozatt
Modified: 2004-12-02 09:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cozatt 2004-11-28 18:22:01 UTC
I don't see the nvidia troubleshooting guide mentioned above in doc lists
however i did find this one:

http://www.gentoo.org/doc/en/nvidia-guide.xml

It doesn't mention adding users to the video group in /etc/group
Once i did that and loaded the correct module -- :-)

user99



Reproducible: Always
Steps to Reproduce:
1.install xorg-x11: edit xorg.conf use nvidia as driver
2.emerge nvidia-kernel then opengl-update nvidia 
3.modules-update & then startx



Actual Results:  
when i ran glxinfo - I got complaints about /etc/securty/console.perm

Until i added user to video group

Expected Results:  
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
    GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
    GLX_NV_swap_group, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGI_swap_control, GLX_NV_float_buffer
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
    GLX_ARB_multisample, GLX_NV_float_buffer, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce FX 5200/AGP/SSE/3DNOW!
OpenGL version string: 1.5.1 NVIDIA 61.11
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_fragment_program,
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, GL_ARB_imaging,
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
    GL_ARB_shader_objects, GL_ARB_shading_language_100,
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
    GL_ARB_window_pos, GL_S3_s3tc, GL_EXT_texture_env_add, GL_EXT_abgr,
    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array,
    GL_EXT_Cg_shader, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_paletted_texture,
    GL_EXT_pixel_buffer_object, GL_EXT_point_parameters,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_two_side,
    GL_EXT_stencil_wrap, GL_EXT_texture3D, GL_EXT_texture_compression_s3tc,
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod,
    GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
    GL_HP_occlusion_test, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square,
    GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fence,
    GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program,
    GL_NV_fragment_program_option, GL_NV_half_float, GL_NV_light_max_exponent,
    GL_NV_multisample_filter_hint, GL_NV_occlusion_query,
    GL_NV_packed_depth_stencil, GL_NV_pixel_data_range, GL_NV_point_sprite,
    GL_NV_primitive_restart, GL_NV_register_combiners,
    GL_NV_register_combiners2, GL_NV_texgen_reflection,
    GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4,
    GL_NV_texture_expand_normal, GL_NV_texture_rectangle,
    GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3,
    GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_NV_vertex_program2,
    GL_NV_vertex_program2_option, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
    GL_SUN_slice_accum
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x21 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x22 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x23 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x24 16 tc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x25 16 tc  0 16  0 r  .  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x26 16 tc  0 16  0 r  y  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x27 16 tc  0 16  0 r  .  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x28 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  2 1 Ncon
0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  4 1 Ncon
0x2a 16 tc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  2 1 Ncon
0x2b 16 tc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  4 1 Ncon
0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x2d 16 dc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x30 16 dc  0 16  0 r  .  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  2 1 Ncon
0x32 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  4 1 Ncon
0x33 16 dc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  2 1 Ncon


Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
 2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -Os -fomit-frame-pointer -fPIC -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/conf
ig /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config
/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/
share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -fomit-frame-pointer -fPIC -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache confcache distlocks gpg maketest rdepend
sfperms strict suidctl"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://open-systems.ufl.edu/
mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3ds X X509 Xaw3d aalib accounting acl acpi acpi4linux adns aliaschain
 alsa apache2 apm arts athena audiofile avi berkdb bidi bigger-fonts blender-gam
e bmp bonobo bootsplash boundschecking bzlib calendar cdparanoia cdr cdrom cgi c
hroot cle266 client cnamefix codecs crypt cscope dvd encode esd ext-png ext-zlib
 extensions f77 fam fbdev ffmpeg fftw flac flash flood fltk fmod foomaticdb fort
ran freetype ftp gb gcj gdbm gif gimp glade glep glut gnome gnomedb gnuplot gnus
tep gpm gprof gsl gsm gstreamer gtk gtk2 gtkhtml guile hal i8x0 icms icq imagema
gick imap imlib innodb ipalias ipv6 java javascript jce jikes joystick jp2 jpeg
jpeg2k kde kerberos ladcca lcms ldap libg++ libwww lids lm_sensors lzo lzw lzw-t
iff mad makecheck md5sum mikmod mime mimencode mitshm mmx mmx2 mng motif mozdeve
lop mozilla moznoirc moznomail mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplay
er mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh native ncurs
es net netbeans network no-old-linux no-opts no-rawdb nocardbus nocstrike nodod
nvidia oav objc objprelink oggvorbis openal opengl operanom2 oss pam pcre pdf pd
fkit pdflib perl php pic pie plotutils png portaudio posix prelude private profi
le python qt quicktime quotas readline rogue roundrobin rrdtool rtc samba sasl s
dl shadow shared sharedmem simplexml slang smime sndfile snortsam sockets sox sp
eex spell spl sse ssl svga sysvipc t1lib tcltk tcpd tcpmd5 tetex theora threads
thumbnail tidy tiff tokenizer truetype truetype-fonts unicode usagi usb userloca
les vhosts videos vim vim-with-x virus-scan vnc wifi winbind withsamplescripts w
mf wxwin wxwindows x86 xanim xatrix xchatdccserver xface xine xinerama xinetd xm
l xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xsl xv xvid xvmc yahoo yv12 zlib
 video_cards_nvidia"
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-11-29 01:01:34 UTC
Can you show me your /etc/security/console.perms? Mine doesn't speak about "video" anywhere. Also, none of the nvidia ebuilds tell something about the "video" user.
Comment 2 Andrew Bevitt 2004-11-29 17:45:38 UTC
andrew@asteroid ~ $ ls -l /dev/nvidia*
crw-rw----  1 root video 195,   0 Nov 29 08:13 /dev/nvidia0
crw-rw----  1 root video 195, 255 Nov 29 08:13 /dev/nvidiactl

andrew@asteroid ~ $ groups
lp wheel audio video games cdrw users portage


Sven they should be in the video group as per udev defaults. Would it be more preferable to have a note about this added to the ebuilds?
Comment 3 David Cozatt 2004-12-01 05:10:40 UTC
Essentially standard permissions however I did comment out the "dri"
sections as suggested by the nvidia docs. That didn't fix the problem
until user was added to video group. 

#<dri>=/dev/nvidia* /dev/3dfx*
<mainboard>=/dev/apm_bios
<burner>=/dev/scd* /dev/sg* /dev/pcd* /dev/pg* /dev/cdwriter /dev/scsi/*/*/*/*/generic
<usb>=/dev/usb/dabusb* /dev/usb/mdc800* /dev/usb/rio500 /dev/ttyUSB* \
      /proc/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9]

# permission definitions
<console>  0660 <serial>     0660 root.tty
<console>  0660 <floppy>     0660 root.floppy
<console>  0600 <sound>      0600 root.audio
<console>  0600 <cdrom>      0660 root.cdrom
<console>  0600 <pilot>      0660 root.uucp
<console>  0600 <jaz>        0660 root.disk
<console>  0600 <zip>        0660 root.disk
<console>  0600 <ls120>      0660 root.disk
<console>  0600 <scanner>    0600 root
<console>  0600 <camera>     0600 root
<console>  0600 <memstick>   0600 root
<console>  0600 <flash>      0600 root
<console>  0600 <diskonkey>  0660 root.disk
<console>  0600 <rem_ide>    0660 root.disk
<c<console>  0600 <kbd>        0600 root
<console>  0600 <joystick>   0600 root
<console>  0600 <v4l>        0600 root.sys
<console>  0700 <gpm>        0700 root
<console>  0600 <mainboard>  0600 root
<console>  0660 <burner>     0660 root.cdrw
<console>  0600 <usb>        0660 root.usb
<console>  0600 <rio500>     0600 root

<xconsole> 0600 /dev/console 0600 root.root
#<xconsole> 0660 <dri>       0660 root

user99
:

Comment 4 David Cozatt 2004-12-01 05:15:05 UTC
please ignore the <c<console thing generated by mistake while pasting.
<console>  0600 <fb>         0600 root
 that line was truncated.and should also be there.

I don't believe i ever edited this file from default until i commented the dri lines.

user99
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2004-12-02 09:27:19 UTC
Thanks; added to the nvidia guide.

Andrew: it might be interesting to add a note as well, although, now that it's documented, it's not absolutely necessary.