From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N642l-00033h-Mm for garchives@archives.gentoo.org; Thu, 05 Nov 2009 15:14:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54284E0AC2; Thu, 5 Nov 2009 15:14:34 +0000 (UTC) Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.210.174]) by pigeon.gentoo.org (Postfix) with ESMTP id 30B5CE0AC2 for ; Thu, 5 Nov 2009 15:14:34 +0000 (UTC) Received: by yxe4 with SMTP id 4so69581yxe.32 for ; Thu, 05 Nov 2009 07:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=zXThtMI/4jArA+Q8V3xMmNZYAPax3E2LzrbY0Vmw7SQ=; b=gJoIWpzzvkHNoLm2uTDC4NG6Uv4gO9bNsl5omGrcucrE5fEijs/X16+OVj0hbF3e2B D6xBByVnJQIH8Fg4aXszjiOZ2Jcytv7wUffCnx9kqgrtt1+OwEfCfZaLWNUTrUsRLFTK 7Zjf/QvbnCjFxvaWQWKtYviJTt4JjzuUcx63Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Otvnc7+P88wb4MqHGQEbI7g0WxF/f34MPAcz1TZ/eA2hZqr+abtKvKRfP8B71VPtHG T/ciUQwK4vNFznapT5OeKT2NyP7TeKSCSQQPjvW3BoVtWcMRMycA2exqm+KX0GX4RpvG WeiML1oopvqtZMUmg6DiJ209d/OPN/mmKO63M= Received: by 10.101.27.2 with SMTP id e2mr2437358anj.153.1257434072855; Thu, 05 Nov 2009 07:14:32 -0800 (PST) Received: from ?192.168.0.200? (dcpl.ornl.gov [160.91.170.68]) by mx.google.com with ESMTPS id 8sm792938ywg.19.2009.11.05.07.14.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Nov 2009 07:14:32 -0800 (PST) Message-ID: <4AF2F9B6.30603@gmail.com> Date: Thu, 05 Nov 2009 11:13:42 -0500 From: Valmor de Almeida User-Agent: Thunderbird 2.0.0.23 (X11/20091019) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: VGA output? References: <49bf44f10911040928h76a76260x474ec18b83d14924@mail.gmail.com> <49bf44f10911040947p75121463j76aa793cca6db613@mail.gmail.com> <4AF1F539.3040900@gmail.com> <49bf44f10911050635oc225a01qdad05040c448144f@mail.gmail.com> In-Reply-To: <49bf44f10911050635oc225a01qdad05040c448144f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: a6f293bb-c251-4357-a8b7-60f1a1095b86 X-Archives-Hash: e32a80f4ae5cad266a6c09aa41073bcf Grant wrote: ...[snip]... > > Thanks everyone. Do these apps allow you to connect and disconnect a > monitor without restarting X? I'm not sure how that would work > because my laptop screen's aspect ratio is resized based on that of > the monitor. > > - Grant > > Yes. Typically I have aliased commands for xrandr. If I am using the VGA and I want to undock the laptop and use its LCD, I run my turnoffvga alias: xrandr --output VGA --off undock the laptop and restart windowmaker (not the X server); just a simple ALT+R key stroke for wm; this does not mess up running X apps. I restart the window manager so my desktop background are resized to the size of the laptop LCD monitor. I use xrandr extensively to reset, turn on and off VGA/LCD whether I have the laptop docked or not. All without restarting the X server; it also works with digital projectors. For resetting the VGA: xrandr --output LVDS1 --auto --pos 0x0 or for a resetting both monitors (bash function) EXTERNAL_OUTPUT="VGA" INTERNAL_OUTPUT="LVDS1" INTERNAL_LOCATION="--below $EXTERNAL_OUTPUT" xrandr |grep $EXTERNAL_OUTPUT | grep " connected " if [ $? -eq 0 ]; then xrandr --output $EXTERNAL_OUTPUT --auto xrandr --output $INTERNAL_OUTPUT --auto xrandr --output $INTERNAL_OUTPUT $INTERNAL_LOCATION else xrandr --output $EXTERNAL_OUTPUT --off xrandr --output $INTERNAL_OUTPUT --auto fi -- Valmor