nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Automatic way to change nvidia display configuration (http://www.nvnews.net/vbulletin/showthread.php?t=130448)

pilluli 03-22-09 02:51 AM

Automatic way to change nvidia display configuration
 
Hi,

I use the gui "nvidia-settings" to change my display configuration between the internal laptop screen and the external monitor at work (I always set one to off and the other one to auto). Is there an automatic way of doing that from command line? so I don't have to open the GUI all the time and navigate to the options with the mouse. I've checked all the "nvidia-settings" parameters but could find anything...

Thanks,

dk75 03-22-09 07:20 AM

Re: Automatic way to change nvidia display configuration
 
check
Code:

nvidia-settings -q AssociatedDisplays
to see which dispalys is acutally associated with externa monitor (it must be used at the time) and then use itin your switching script or whatever you use for that ( desktop activator maybe ) with
Code:

nvidia-settings -a AssociatedDisplays=0x00010000
or whatever bitmask you will have.

AaronP 03-23-09 01:06 AM

Re: Automatic way to change nvidia display configuration
 
Try
Code:

nvidia-settings -a SwitchToDisplays=`nvidia-settings -tq ProbeDisplays`

NvFuchs 03-23-09 11:47 AM

Re: Automatic way to change nvidia display configuration
 
You can try out disper, a software by someone of this forum, written by using NvCTRL.

Fuchs

mooninite 03-23-09 12:21 PM

Re: Automatic way to change nvidia display configuration
 
Beware: I have to restart X for the nVidia driver to detect HDMI displays. Probing for devices returns zero results...

Is there a technical limit on probing DVI/HDMI devices? X server limit (1.5/1.6)? nVidia driver limit?

pilluli 03-26-09 03:40 PM

Re: Automatic way to change nvidia display configuration
 
Many thanks for the answers,

Unfortunately I've tried the "nvidia-settings -tq ProbeDisplays" or the "nvidia-settings -q AssociatedDisplays" methods and they are not useful for what I'm trying to do. If I execute both commands with both display configurations (one with the internal monitor on and the external off and the other way around) I get the same hexadecimal code for both :-?

I'm going to try what NvFuchs suggested and try to use "disper".

regards,

pilluli 03-27-09 02:42 AM

Re: Automatic way to change nvidia display configuration
 
Sorry but I'm trying to get "disper" but the home page is down:

http://willem.engen.nl/projects/disper/

Anyone know a mirror or has the sources somewhere I can grab them? Many thanks....

ozra 03-31-09 10:57 PM

Re: Automatic way to change nvidia display configuration
 
Quote:

Originally Posted by pilluli (Post 1969062)
Sorry but I'm trying to get "disper" but the home page is down:

http://willem.engen.nl/projects/disper/

Anyone know a mirror or has the sources somewhere I can grab them? Many thanks....

Googel Cache from 24 mar 2009 gives:
http://209.85.173.132/search?q=cache...ient=firefox-a

On that I found:

disper_0.2.1.tar.gz

It links to:
http://ppa.launchpad.net/wvengen/ppa...r_0.2.1.tar.gz

Hope that helps.

wvengen 04-01-09 09:20 AM

Re: Automatic way to change nvidia display configuration
 
Hi there, I'm sorry that disper's homepage is unreachable right now. Development is still going on at http://launchpad.net/disper/ . Binary and source downloads are available from the personal package archive (PPA) linked (as "external downloads") from the previously mentioned page (as .deb and .tar.gz).


All times are GMT -5. The time now is 05:14 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.