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 1N64Sw-0006DZ-IG for garchives@archives.gentoo.org; Thu, 05 Nov 2009 15:41:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6AACE0B0E; Thu, 5 Nov 2009 15:39:24 +0000 (UTC) Received: from mail-px0-f200.google.com (mail-px0-f200.google.com [209.85.216.200]) by pigeon.gentoo.org (Postfix) with ESMTP id 71AB9E0B0E for ; Thu, 5 Nov 2009 15:39:24 +0000 (UTC) Received: by pxi38 with SMTP id 38so58987pxi.10 for ; Thu, 05 Nov 2009 07:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FoB1bDnVqh9+nqISLnt8FsvmzUGbQIvQa62SHg13dV8=; b=SIWKEI+AnHTIboE85wYFK/XKBN46nBpMbys/YSF68AqtXCerlpLDxScs2O/B6pGphv oCS9IXhklavPCwWYk6OkpIPOwoH9yBGIGdtqRoDYJWdTh/m8m+ELmBpkhiQx+xSRqu7O vE4QIbHsNvSuWetmCglBzJ7m90dhybASz6wwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CC6eJ2fGU1bpIOuTW2VssJ21lgQjHMLH0vv2phM7pSGkBejHhhQhCtnxTPqmSVgvBT TqqzBA0O2jHieDPXOwG8cPBeSaYYWBeS16zxxNqF1EGmqyps+qffof9YVl6DsRhV+Urv 4wVuExjeQ25CjRk9KKFAm3jWQoH0BN3yDYII8= 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 Received: by 10.115.87.7 with SMTP id p7mr4962013wal.161.1257435563958; Thu, 05 Nov 2009 07:39:23 -0800 (PST) In-Reply-To: <4AF2F9B6.30603@gmail.com> References: <49bf44f10911040928h76a76260x474ec18b83d14924@mail.gmail.com> <49bf44f10911040947p75121463j76aa793cca6db613@mail.gmail.com> <4AF1F539.3040900@gmail.com> <49bf44f10911050635oc225a01qdad05040c448144f@mail.gmail.com> <4AF2F9B6.30603@gmail.com> Date: Thu, 5 Nov 2009 07:39:23 -0800 Message-ID: <49bf44f10911050739s3d0c3ffew756eba8a680fc8b2@mail.gmail.com> Subject: Re: [gentoo-user] Re: VGA output? From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c5cf18dd-ffe3-4859-9d73-fb329e238c66 X-Archives-Hash: e1aad219d1db4e342dfdc916ce18bc18 > ...[snip]... >> >> Thanks everyone. =A0Do these apps allow you to connect and disconnect a >> monitor without restarting X? =A0I'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 alia= s: > > =A0xrandr --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=3D"VGA" > INTERNAL_OUTPUT=3D"LVDS1" > INTERNAL_LOCATION=3D"--below $EXTERNAL_OUTPUT" > > xrandr |grep $EXTERNAL_OUTPUT | grep " connected " > if [ $? -eq 0 ]; then > =A0 =A0xrandr --output $EXTERNAL_OUTPUT --auto > =A0 =A0xrandr --output $INTERNAL_OUTPUT --auto > =A0 =A0xrandr --output $INTERNAL_OUTPUT $INTERNAL_LOCATION > else > =A0 =A0xrandr --output $EXTERNAL_OUTPUT --off > =A0 =A0xrandr --output $INTERNAL_OUTPUT --auto > fi > > > -- > Valmor Thanks Valmor, good stuff. - Grant