From owner-freebsd-questions Tue Mar 5 23:13:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by hub.freebsd.org (Postfix) with ESMTP id D8DA937B400 for ; Tue, 5 Mar 2002 23:13:11 -0800 (PST) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 527A428C2A; Wed, 6 Mar 2002 02:13:11 -0500 (EST) Date: Wed, 6 Mar 2002 02:13:11 -0500 (EST) From: Peter Leftwich X-X-Sender: To: Bob Giesen Cc: FreeBSD-XFree86 List , FreeBSD Questions Subject: Re: Cannot change X screen resolution [Can't X. Period.] In-Reply-To: Message-ID: <20020306015719.S62414-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # startx 2>/var/tmp/startuperrorlog >/var/tmp/startuplog Ambiguous output redirect. I am at my wit's end with X (grrrr). But it's hard to draw an x through it to show my frustration, because, well, it's already an X. Running "XFree86 -configure" works okay, and I can edit the XF86Config.new file so that it uses /dev/sysmouse instead of just /dev/mouse but then "XFree86 -xf86config ~/XF86Config.new" does not work; The screen goes blank, makes a kind of soft crackly noise like it is going into standby, and logs some confusing stuff to /var/log/XFree86.0.log -- I have a feeling my woes concern the "keyboard" driver whereas I would like to use the "atkbd" driver, and the "dri" module doesn't seem to be happy! I've been slaving at this 4.2.0 and KDE 2.2.2.to.infinity.and.beyond business since February 17th and have made so little progress. Is there a kindly soul out there that might accept my dmesg output and XFree86.0.log file? (A special bonus to anyone who can also get me going with LINT and kernel.conf recompiling concepts and issues!) PleasePleasePleasePlease? Thanks in advance, (will PayPal$ upon success), :) P.S. My next login will be tomorrow about 12 or 1pm PT. P.P.S. And I thought the three toughest UNIX concepts were [1] redirection, [2] test, [3] regexp's! It seems Xserver makes the grade. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 On Mon, 4 Mar 2002, Bob Giesen wrote: > Return-Path: > Received: from mail5.registeredsite.com (mail5.registeredsite.com > [64.224.9.14]) > by russian-caravan.cloud9.net (Postfix) with ESMTP id F3D6428BCA > for ; Tue, 5 Mar 2002 00:10:58 -0500 (EST) > Received: from mail.video2video.com (mail.video2video.com [209.35.10.22]) > by mail5.registeredsite.com (8.11.6/8.11.4) with ESMTP id > g254J2m11765 > for ; Mon, 4 Mar 2002 23:19:02 -0500 > Received: from hawk.mail.pas.earthlink.net [209.35.10.22] by > mail.video2video.com with ESMTP > (SMTPD32-6.06) id A3622D700094; Tue, 05 Mar 2002 00:10:58 -0500 > Received: from dialup-166.90.70.85.dial1.chicago1.level3.net > ([166.90.70.85] helo=there) > by hawk.mail.pas.earthlink.net with smtp (Exim 3.33 #1) > id 16i7Dw-0004ko-00; Mon, 04 Mar 2002 21:10:52 -0800 > Content-Type: text/plain; > charset="iso-8859-1" > From: Bob Giesen > To: Greg Lehey , > Peter Leftwich > Subject: Re: Cannot change X screen resolution > Date: Mon, 4 Mar 2002 23:10:18 -0600 > X-Mailer: KMail [version 1.3] > Cc: Peter Ulrich Kruppa , > FreeBSD Questions > References: <20020305120749.B64582@wantadilla.lemis.com> > <20020304222820.N96680-100000@earl-grey.cloud9.net> > <20020305141610.E64582@wantadilla.lemis.com> > In-Reply-To: <20020305141610.E64582@wantadilla.lemis.com> > MIME-Version: 1.0 > Content-Transfer-Encoding: 8bit > Message-Id: > > > > Question, how *DO* you capture the output of the X startup? > > $ startx 2>&1 > /var/tmp/startuplog > In redirection, order is important. The above command will send stderr output (file descriptor "2") to the console (not to the logfile), which is where stdout (file descriptor "1") is going at the time the stderr redirection is evaluated. > If you want errors logged and want to use the stdout-address shorthand ("2>&1," rather than typing out a logfile pathname twice), you must redirect stderr after redirecting stdout: > $ startx >/var/tmp/startuplog 2>&1 > Bob > > P.S. If you're curious about what the programmers deemed standard output verus error-class messages (which is sometimes subjective), you could, of course, use separate filenames for error messages and standard output, e.g.: > $ startx 2>/var/tmp/startuperrorlog >/var/tmp/startuplog > -- > "Glory is fleeting, but obscurity is forever." -- Napoleon Bonaparte (1769-1821) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message