Dear all,
I have an nvidia card (9400, i believe) in my 13.3" macbook pro and am frequently changing my monitor setup, i.e. at my office and at home i have an additional 22" monitor hooked up to the dvi port (actually apples weird port with a dvi connector) while on the road I have not.
I don't have the twin view configuration set in the xorg.conf config file as this behaves funny if you don't have a second monitor connected (your mouse cursor and windows might be beyond what you can see on the small monitor). So what I do each time that I connect an external monitor is to run the GUI of the nvidia-settings tool and enable twin view for the external monitor and position it where I want it. Annnooooyyyying!!! especially if you do it several times a day.
So I wanted to write a script that I can just run (maybe automatically even if a second monitor is detected, this shouldn't be too hard) to set up everything how I want it. Small problem: I cannot, for the life of me, figure out how this nvidia-settings command line tool works. I have tried a few things such as
Code:
nvidia-settings --assign AssociatedDisplays=0x00030000
(this is the value being displayed when I have both monitors enabled and run
Code:
nvidia-settings --query all
)
Most other attributes seem to be "read-only" (such as the seemlingly promising "TwinView" or "EnabledDisplays". I've looked into the man pages and searched the web high and low, but to no avail.
Any help on this would be really truly very highly appreciated
Thank you
Paul
Oh, yes, this is on ubuntu lucid 10.04 amd64 with the current 195 nvidia driver.
Bookmarks