From owner-freebsd-questions@FreeBSD.ORG Thu Jan 19 14:11:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 392A016A41F for ; Thu, 19 Jan 2006 14:11:47 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.FreeBSD.org (Postfix) with SMTP id A092543D48 for ; Thu, 19 Jan 2006 14:11:46 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 94678 invoked from network); 19 Jan 2006 14:11:45 -0000 Received: from unknown (HELO phobos.mars.bsd) (unknown) by unknown with SMTP; 19 Jan 2006 14:11:45 -0000 X-pair-Authenticated: 200.115.214.28 Date: Thu, 19 Jan 2006 11:11:42 -0300 From: Alejandro Pulver To: User Gandalf Message-ID: <20060119111142.6dc1140e@phobos.mars.bsd> In-Reply-To: <43C3A0D1.4000707@messias.qhigh.com> References: <43C03ED4.1070404@messias.qhigh.com> <20060110055157.GC15566@andvari.ath.cx> <20060110102324.sfh5jbzzreskwc8w@imp4.free.fr> <43C0DB6E.4060801@messias.qhigh.com> <20060110093454.GA16603@andvari.ath.cx> <43C3A0D1.4000707@messias.qhigh.com> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.7; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Martin =?ISO-8859-1?Q?M=F6ller?= , freebsd-questions@freebsd.org Subject: Re: Xorg - how to disable some video modes? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2006 14:11:47 -0000 On Tue, 10 Jan 2006 12:56:01 +0100 User Gandalf wrote: > Here is the config. I made a mistake. You were right. I forgot to use > DefaultDepth. But I do not understand why I need it, since 24 is the > only depth specified in my screen section, > Maybe it was trying to use another depth (like 16), and because it wasn't present in a "Display" subsection it used all the available modes by default. > Without "DefaultDepth 24" it starts with 1900x1440. With > "DefaultDepth 24" is starts in 1024x768 but it does not allow me to > switch to 1280x1024 with Ctrl-Alt-Plus. > > Thanks, > > Les > You can only use the modes that are listed in "Modes", that's why you can't switch to 1280x1024. You have to add "1280x1024" to the "Modes" line (when not using DefaultDepth 24 it seems all modes are listed there). Then X will start in the higher resolution it can find in "Modes", to solve this you can put in .xinitrc the following command (which will change the resolution after X starts): xrandr -s 1024x768 You can also see the list of available resolutions with that command (without parameters). If you have something like "exec /usr/X11R6/bin/xfce" in .xinitrc be sure to put the "xrandr -s 1024x768" command before it (the "exec" replaces the shell by xfce, so everything after the exec will never be executed). For example (xorg.conf section with 1280x1024 added to Modes): Section "Screen" Identifier "Screen0" DefaultDepth 24 Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x1024" "1024x768" EndSubSection EndSection Best Regards, Ale