From owner-freebsd-alpha Tue Jan 23 4:41:44 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from dirac.th.physik.uni-bonn.de (dirac.th.physik.uni-bonn.de [131.220.161.119]) by hub.freebsd.org (Postfix) with SMTP id B8BE437B404 for ; Tue, 23 Jan 2001 04:41:25 -0800 (PST) Received: (qmail 54702 invoked from network); 23 Jan 2001 12:41:19 -0000 Received: from merlin.th.physik.uni-bonn.de (131.220.161.121) by dirac.th.physik.uni-bonn.de with SMTP; 23 Jan 2001 12:41:19 -0000 Received: (qmail 78629 invoked by uid 145); 23 Jan 2001 12:41:18 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Jan 2001 12:41:18 -0000 Date: Tue, 23 Jan 2001 13:41:18 +0100 (CET) From: Jan Conrad To: Andrew Gallatin Cc: freebsd-alpha@freebsd.org Subject: Re: alpha/24535: the function XF86VidModeGetAllModeLines of XFree 3.3.6 for alpha will hang up Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 #include #include 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