Gentoo Archives: gentoo-user

From: Hung Dang <hungptit@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] changing nvidia settings dynamically
Date: Wed, 27 Jan 2010 01:05:22
Message-Id: 9f712661001261704h2107609dr819050e55fa14b94@mail.gmail.com
In Reply to: [gentoo-user] changing nvidia settings dynamically by Iain Buchanan
1 I configure xorg.conf for the laptop screen only and use nvidia-setting to
2 setup twinview mode for the external screen (it does not require to restart
3 X). It works fine so far.
4
5 Hope this help
6 Hung
7
8 On Fri, Jan 15, 2010 at 12:25 AM, Iain Buchanan <iaindb@××××××××××××.au>wrote:
9
10 > Hi all,
11 >
12 > For a long time I've been using nvidia's twinview for two 1920x1200
13 > displays (laptop and external LCD).
14 >
15 > Whenever I dock / undock I have to run nvidia-settings to change the
16 > resolution from the virtual 3840x1200 to 1920x1200 or vice versa. Also
17 > since two screens is the "Default" I have to do this when I log in with
18 > only the laptop.
19 >
20 > I am looking for a way to use the command line nvidia-settings (as much
21 > as I've studied the help I can't find out how to do it - all attributes
22 > seem read-only to the command line nvidia-settings)
23 >
24 > Then I can call nvidia-settings --some-options on a dock / undock event.
25 >
26 > Alternatively, I read in the nvidia-drivers README that you can use
27 > metamodes and then use the FN-F8 (CRT/LCD switch key) to switch between
28 > them. However, when I use metamodes I always get a 3840 wide screen,
29 > and I can "scroll" left and right to the unseen space.
30 >
31 > These are the metamodes I've tried:
32 > 1. The two-screen only metamode:
33 > Option "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200
34 > +0+0"
35 > 2. attempt to use a 1920 metamode as well:
36 > Option "metamodes" "DFP-0: 1920x1200; DFP-0: 1920x1200 +1920+0,
37 > DFP-2: 1920x1200 +0+0"
38 > 3. attempt 2:
39 > Option "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200
40 > +0+0; DFP-0: 1920x1200 +0+0,"
41 >
42 > Here's my screen section (all other sections are basic):
43 > Section "Screen"
44 > Identifier "Screen0"
45 > Device "Device0"
46 > Monitor "Monitor0"
47 > DefaultDepth 24
48 > Option "TwinView" "1"
49 > Option "TwinViewXineramaInfoOrder" "DFP-2"
50 > Option "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200
51 > +0+0"
52 > SubSection "Display"
53 > Depth 24
54 > EndSubSection
55 > EndSection
56 >
57 > Has anyone done a dynamic mode change with nvidia xinerama?
58 >
59 > thanks,
60 > --
61 > Iain Buchanan <iaindb at netspace dot net dot au>
62 >
63 > If you have nothing to do, don't do it here.
64 >
65 >
66 >
67 >
68
69
70 --
71 Hung Dang
72 New Mexico State University

Replies

Subject Author
Re: [gentoo-user] changing nvidia settings dynamically Iain Buchanan <iaindb@××××××××××××.au>