Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: [gentoo-user] changing nvidia settings dynamically
Date: Sat, 16 Jan 2010 06:26:53
Message-Id: 1263540333.1154.8.camel@localhost
1 Hi all,
2
3 For a long time I've been using nvidia's twinview for two 1920x1200
4 displays (laptop and external LCD).
5
6 Whenever I dock / undock I have to run nvidia-settings to change the
7 resolution from the virtual 3840x1200 to 1920x1200 or vice versa. Also
8 since two screens is the "Default" I have to do this when I log in with
9 only the laptop.
10
11 I am looking for a way to use the command line nvidia-settings (as much
12 as I've studied the help I can't find out how to do it - all attributes
13 seem read-only to the command line nvidia-settings)
14
15 Then I can call nvidia-settings --some-options on a dock / undock event.
16
17 Alternatively, I read in the nvidia-drivers README that you can use
18 metamodes and then use the FN-F8 (CRT/LCD switch key) to switch between
19 them. However, when I use metamodes I always get a 3840 wide screen,
20 and I can "scroll" left and right to the unseen space.
21
22 These are the metamodes I've tried:
23 1. The two-screen only metamode:
24 Option "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0"
25 2. attempt to use a 1920 metamode as well:
26 Option "metamodes" "DFP-0: 1920x1200; DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0"
27 3. attempt 2:
28 Option "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0; DFP-0: 1920x1200 +0+0,"
29
30 Here's my screen section (all other sections are basic):
31 Section "Screen"
32 Identifier "Screen0"
33 Device "Device0"
34 Monitor "Monitor0"
35 DefaultDepth 24
36 Option "TwinView" "1"
37 Option "TwinViewXineramaInfoOrder" "DFP-2"
38 Option "metamodes" "DFP-0: 1920x1200 +1920+0, DFP-2: 1920x1200 +0+0"
39 SubSection "Display"
40 Depth 24
41 EndSubSection
42 EndSection
43
44 Has anyone done a dynamic mode change with nvidia xinerama?
45
46 thanks,
47 --
48 Iain Buchanan <iaindb at netspace dot net dot au>
49
50 If you have nothing to do, don't do it here.

Replies

Subject Author
Re: [gentoo-user] changing nvidia settings dynamically Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] changing nvidia settings dynamically Hung Dang <hungptit@×××××.com>