From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: VGA output?
Date: Thu, 5 Nov 2009 07:39:23 -0800 [thread overview]
Message-ID: <49bf44f10911050739s3d0c3ffew756eba8a680fc8b2@mail.gmail.com> (raw)
In-Reply-To: <4AF2F9B6.30603@gmail.com>
> ...[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
Thanks Valmor, good stuff.
- Grant
prev parent reply other threads:[~2009-11-05 15:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 17:28 [gentoo-user] VGA output? Grant
2009-11-04 17:47 ` [gentoo-user] " Grant
2009-11-04 17:52 ` Nikos Chantziaras
2009-11-04 19:53 ` Joshua Murphy
2009-11-04 19:50 ` James Ausmus
2009-11-04 21:42 ` Valmor de Almeida
2009-11-05 14:35 ` Grant
2009-11-05 16:13 ` Valmor de Almeida
2009-11-05 15:39 ` Grant [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49bf44f10911050739s3d0c3ffew756eba8a680fc8b2@mail.gmail.com \
--to=emailgrant@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox