Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Enabling drm?



Do these changes look correct?

I took out most of the instructions since they are
generally done automatically and provided references
for the configuration details instead of repeating
them in the manual page.

The manual page already referred to X(7) and I continued
the usage, but it seems the manual page X(7) does not exist
for Xorg?

The file /usr/X11R7/lib/X11/doc/README.DRI is also referenced.
Should we include X11R6?

--
Kind regards,

Yorick Hardy
Index: share/man/man4/drm.4
===================================================================
RCS file: /cvsroot/src/share/man/man4/drm.4,v
retrieving revision 1.5
diff -u -r1.5 drm.4
--- share/man/man4/drm.4        26 Mar 2009 17:32:24 -0000      1.5
+++ share/man/man4/drm.4        20 Apr 2009 11:25:42 -0000
@@ -81,44 +81,20 @@
 .Pa /dev/dri/card*
 device must exist, and DRI must be enabled in the X configuration
 file.
+.Xr X 7
+provided with NetBSD and compiled from
+.Xr pkgsrc 7
+do so automatically where supported.
 .Pp
-Details for these steps:
-.Bl -enum -offset indent
-.It
-X must be compiled with DRI support.
-On i386, this is usually the default.
-.It
-Mesa (see
-.Pa http://www.mesa3d.org/ )
-should be compiled for the netbsd-dri target, patch available at
-.Pa http://issc.uj.ac.za/~yorick/drm/mesa.patch
-.It
-The device node must exist:
+.Xr X 7
+will attempt to create the device node automatically.
+To create the device node manually:
 .Bd -literal -offset indent
 mkdir -p /dev/dri
 mknod /dev/dri/card0 c 180 0
 chgrp wheel /dev/dri/card0
 chmod 0660 /dev/dri/card0
 .Ed
-.It
-Enable DRI in the X configuration (either
-.Pa xorg.conf
-or
-.Pa XF86Config ) :
-.Bd -literal
-Section "Module"
-        ...
-        Load  "dri"
-        Load  "GLcore"
-        Load  "glx"
-EndSection
-\&...
-Section "DRI"
-        Group "wheel"
-        Mode 0660
-EndSection
-.Ed
-.El
 .Pp
 Debugging output can be enabled and disabled by setting the
 .Xr sysctl 8
@@ -132,7 +108,10 @@
 .Ar hw.dri.card1 ,
 etc.
 .Sh SEE ALSO
-.Xr X 7
+.Xr X 7 ,
+.Xr xorg.conf 5 ,
+.Xr XF86Config 5 ,
+/usr/X11R7/lib/X11/doc/README.DRI
 .Sh HISTORY
 DRM was first available for Linux.
 Subsequently Eric Anholt ported the DRM kernel modules to
@@ -182,17 +161,6 @@
 .An Daryll Strauss ,
 .An Keith Whitwell
 .Sh CAVEATS
-Disable AIGLX if necessary
-.Pq Pa xorg.conf :
-.Bd -literal -offset indent
-Section "ServerFlags"
-        Option  "AIGLX" "off"
-EndSection
-
-Section "Extensions"
-        Option "Composite" "Disable"
-EndSection
-.Ed
 .Pp
 In case of errors,
 .Pa /dev/dri/card0


Home | Main Index | Thread Index | Old Index