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 <gentoo-user+bounces-106701-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NZwLS-0007AZ-6H
	for garchives@archives.gentoo.org; Wed, 27 Jan 2010 01:05:22 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D709CE0870;
	Wed, 27 Jan 2010 01:04:31 +0000 (UTC)
Received: from mail-pz0-f174.google.com (mail-pz0-f174.google.com [209.85.222.174])
	by pigeon.gentoo.org (Postfix) with ESMTP id 92E01E0870
	for <gentoo-user@lists.gentoo.org>; Wed, 27 Jan 2010 01:04:31 +0000 (UTC)
Received: by pzk4 with SMTP id 4so3977134pzk.32
        for <gentoo-user@lists.gentoo.org>; Tue, 26 Jan 2010 17:04:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:reply-to:in-reply-to
         :references:date:message-id:subject:from:to:content-type;
        bh=zRFOfU1HffosrVdIxdPGTrmgd15Zqpfe3VxWv3RNXgQ=;
        b=GMd1vCso76OvQaRJF8NX/O8U/GtojchCktn/fAO9RATS+CX5Ys7cgTmodvK6NAAx8Z
         DOXqcBu6a0m1DkbUVZcg32c5hQFCzFBW3Fo39RN4sFFVnh0CmdkJ7brNPQ/EqvXcGjfr
         sPB4BKOhcbpLv5sr/O86LiXHIDodAkrw94JRI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:reply-to:in-reply-to:references:date:message-id
         :subject:from:to:content-type;
        b=CRwdBQwUJ0VnpdclHEoyKDBmt3hTJ6ZOxwkt4t+wXx+JxuyzZNTU5wzwZ9c5+W1aZ3
         F1X0prvnSsqwnwxGzacTKfiomGfl+2hSL08qTLi3f55c6CPuvePM8Sf9tTU1pDLq57Lh
         0l42osQfoUP431YcsCrehGnnFi9cZBQj94maY=
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.141.15.7 with SMTP id s7mr6112523rvi.160.1264554271042; Tue, 
	26 Jan 2010 17:04:31 -0800 (PST)
In-Reply-To: <1263540333.1154.8.camel@localhost>
References: <1263540333.1154.8.camel@localhost>
Date: Tue, 26 Jan 2010 18:04:30 -0700
Message-ID: <9f712661001261704h2107609dr819050e55fa14b94@mail.gmail.com>
Subject: Re: [gentoo-user] changing nvidia settings dynamically
From: Hung Dang <hungptit@gmail.com>
To: gentoo-user@lists.gentoo.org
Content-Type: multipart/alternative; boundary=000e0cd119181fedcf047e1afc3d
X-Archives-Salt: 68a88764-5a82-4803-a9ae-43c0b273823e
X-Archives-Hash: 2fe264e7df269fbe1fe9a2cf6ff69982

--000e0cd119181fedcf047e1afc3d
Content-Type: text/plain; charset=UTF-8

I configure xorg.conf for the laptop screen only and use nvidia-setting to
setup twinview mode for the external screen (it does not require to restart
X). It works fine so far.

Hope this help
Hung

On Fri, Jan 15, 2010 at 12:25 AM, Iain Buchanan <iaindb@netspace.net.au>wrote:

> Hi all,
>
> For a long time I've been using nvidia's twinview for two 1920x1200
> displays (laptop and external LCD).
>
> Whenever I dock / undock I have to run nvidia-settings to change the
> resolution from the virtual 3840x1200 to 1920x1200 or vice versa.  Also
> since two screens is the "Default" I have to do this when I log in with
> only the laptop.
>
> I am looking for a way to use the command line nvidia-settings (as much
> as I've studied the help I can't find out how to do it - all attributes
> seem read-only to the command line nvidia-settings)
>
> Then I can call nvidia-settings --some-options on a dock / undock event.
>
> Alternatively, I read in the nvidia-drivers README that you can use
> metamodes and then use the FN-F8 (CRT/LCD switch key) to switch between
> them.  However, when I use metamodes I always get a 3840 wide screen,
> and I can "scroll" left and right to the unseen space.
>
> These are the metamodes I've tried:
> 1. The two-screen only metamode:
>    Option         "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200
> +0+0"
> 2. attempt to use a 1920 metamode as well:
>    Option         "metamodes" "DFP-0: 1920x1200; DFP-0: 1920x1200 +1920+0,
> DFP-2: 1920x1200 +0+0"
> 3. attempt 2:
>    Option         "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200
> +0+0; DFP-0: 1920x1200 +0+0,"
>
> Here's my screen section (all other sections are basic):
> Section "Screen"
>    Identifier     "Screen0"
>    Device         "Device0"
>    Monitor        "Monitor0"
>    DefaultDepth    24
>    Option         "TwinView" "1"
>    Option         "TwinViewXineramaInfoOrder" "DFP-2"
>    Option         "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200
> +0+0"
>    SubSection     "Display"
>        Depth       24
>    EndSubSection
> EndSection
>
> Has anyone done a dynamic mode change with nvidia xinerama?
>
> thanks,
> --
> Iain Buchanan <iaindb at netspace dot net dot au>
>
> If you have nothing to do, don't do it here.
>
>
>
>


-- 
Hung Dang
New Mexico State University

--000e0cd119181fedcf047e1afc3d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I configure xorg.conf for the laptop screen only and use nvidia-setting
to setup twinview mode for the external screen (it does not require to rest=
art X). It works fine so far. <br>
<br>
Hope this help<br>
Hung<br><br><div class=3D"gmail_quote">On Fri, Jan 15, 2010 at 12:25 AM, Ia=
in Buchanan <span dir=3D"ltr">&lt;<a href=3D"mailto:iaindb@netspace.net.au"=
>iaindb@netspace.net.au</a>&gt;</span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex;">
Hi all,<br>
<br>
For a long time I&#39;ve been using nvidia&#39;s twinview for two 1920x1200=
<br>
displays (laptop and external LCD).<br>
<br>
Whenever I dock / undock I have to run nvidia-settings to change the<br>
resolution from the virtual 3840x1200 to 1920x1200 or vice versa. =C2=A0Als=
o<br>
since two screens is the &quot;Default&quot; I have to do this when I log i=
n with<br>
only the laptop.<br>
<br>
I am looking for a way to use the command line nvidia-settings (as much<br>
as I&#39;ve studied the help I can&#39;t find out how to do it - all attrib=
utes<br>
seem read-only to the command line nvidia-settings)<br>
<br>
Then I can call nvidia-settings --some-options on a dock / undock event.<br=
>
<br>
Alternatively, I read in the nvidia-drivers README that you can use<br>
metamodes and then use the FN-F8 (CRT/LCD switch key) to switch between<br>
them. =C2=A0However, when I use metamodes I always get a 3840 wide screen,<=
br>
and I can &quot;scroll&quot; left and right to the unseen space.<br>
<br>
These are the metamodes I&#39;ve tried:<br>
1. The two-screen only metamode:<br>
 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;metamodes&quot; &quo=
t;DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0&quot;<br>
2. attempt to use a 1920 metamode as well:<br>
 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;metamodes&quot; &quo=
t;DFP-0: 1920x1200; DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0&quot;<b=
r>
3. attempt 2:<br>
 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;metamodes&quot; &quo=
t;DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0; DFP-0: 1920x1200 +0+0,&q=
uot;<br>
<br>
Here&#39;s my screen section (all other sections are basic):<br>
Section &quot;Screen&quot;<br>
 =C2=A0 =C2=A0Identifier =C2=A0 =C2=A0 &quot;Screen0&quot;<br>
 =C2=A0 =C2=A0Device =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;Device0&quot;<br>
 =C2=A0 =C2=A0Monitor =C2=A0 =C2=A0 =C2=A0 =C2=A0&quot;Monitor0&quot;<br>
 =C2=A0 =C2=A0DefaultDepth =C2=A0 =C2=A024<br>
 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;TwinView&quot; &quot=
;1&quot;<br>
 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;TwinViewXineramaInfo=
Order&quot; &quot;DFP-2&quot;<br>
 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quot;metamodes&quot; &quo=
t;DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0&quot;<br>
 =C2=A0 =C2=A0SubSection =C2=A0 =C2=A0 &quot;Display&quot;<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0Depth =C2=A0 =C2=A0 =C2=A0 24<br>
 =C2=A0 =C2=A0EndSubSection<br>
EndSection<br>
<br>
Has anyone done a dynamic mode change with nvidia xinerama?<br>
<br>
thanks,<br>
<font color=3D"#888888">--<br>
Iain Buchanan &lt;iaindb at netspace dot net dot au&gt;<br>
<br>
If you have nothing to do, don&#39;t do it here.<br>
<br>
<br>
<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>Hung Dang<br>New=
 Mexico State University<br>

--000e0cd119181fedcf047e1afc3d--