Date: Tue, 23 Jan 2001 13:41:18 +0100 (CET) From: Jan Conrad <conrad@th.physik.uni-bonn.de> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: freebsd-alpha@freebsd.org Subject: Re: alpha/24535: the function XF86VidModeGetAllModeLines of XFree 3.3.6 for alpha will hang up Message-ID: <Pine.BSF.4.21.0101231338380.78207-100000@merlin.th.physik.uni-bonn.de>
next in thread | raw e-mail | index | archive | help
On Mon, 22 Jan 2001, Andrew Gallatin wrote: > > conrad@th.physik.uni-bonn.de writes: > > > > maybe wait for XFree 4... > > FWIW, I run 4.02 on all my alphas. > > If you're willing to write a toy app that demonstrates the > failure of XF86VidModeGetAllModeLines() call, I'd be willing to test > it for you on a 4.02 X server. > > Drew > Here it comes! have fun! Jan -- Physikalisches Institut der Universitaet Bonn Nussallee 12 D-53115 Bonn x.c ---------------------------- #include <stdlib.h> #include <X11/Xlib.h> #include <X11/extensions/xf86vmode.h> Display *disp; char *dstr; int scr; static int std_vid_modes_num = 0; static int std_vid_mode_cur = 0; static XF86VidModeModeInfo **std_vid_modes = NULL; int main () { dstr = getenv("DISPLAY"); if (!dstr) { dstr = ":0.0"; }; disp = XOpenDisplay(dstr); scr = DefaultScreen(disp); XF86VidModeGetAllModeLines(disp, scr, &std_vid_modes_num, &std_vid_modes); }; --------------------------------------------- Makefile --------------------------------------------- CFLAGS = -g LIBS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm CC = cc OBJ= x.o x: x.o $(CC) x.o $(LIBS) -o x all: x clean: rm -f $(OBJ) x ---------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101231338380.78207-100000>