Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-22-09, 02:51 AM   #1
pilluli
Registered User
 
Join Date: Jan 2009
Posts: 5
Default 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,
pilluli is offline   Reply With Quote
Old 03-22-09, 07:20 AM   #2
dk75
Registered User
 
Join Date: Jan 2009
Posts: 171
Default 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.
__________________
  • Linux Debian Sid x86_64/ 3.2.0
  • Lenovo T61p
  • NVIDIA driver 295.33
  • Xorg/XServer 7.6+12/1.11.4
  • GNOME 3.2.2
dk75 is offline   Reply With Quote
Old 03-23-09, 01:06 AM   #3
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Automatic way to change nvidia display configuration

Try
Code:
nvidia-settings -a SwitchToDisplays=`nvidia-settings -tq ProbeDisplays`
AaronP is offline   Reply With Quote
Old 03-23-09, 11:47 AM   #4
NvFuchs
Registered Fox
 
NvFuchs's Avatar
 
Join Date: Oct 2007
Location: Confoederatio Helvetica
Posts: 530
Default 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
NvFuchs is offline   Reply With Quote
Old 03-23-09, 12:21 PM   #5
mooninite
Registered User
 
Join Date: May 2006
Posts: 477
Default 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?
mooninite is offline   Reply With Quote
Old 03-26-09, 03:40 PM   #6
pilluli
Registered User
 
Join Date: Jan 2009
Posts: 5
Default 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 is offline   Reply With Quote
Old 03-27-09, 02:42 AM   #7
pilluli
Registered User
 
Join Date: Jan 2009
Posts: 5
Default 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....
pilluli is offline   Reply With Quote
Old 03-31-09, 10:57 PM   #8
ozra
Registered User
 
Join Date: Nov 2008
Posts: 10
Default Re: Automatic way to change nvidia display configuration

Quote:
Originally Posted by pilluli View Post
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.
ozra is offline   Reply With Quote

Old 04-01-09, 09:20 AM   #9
wvengen
Registered User
 
Join Date: Nov 2008
Posts: 30
Default 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).
wvengen is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Russian Masterpieces Put on Display Using NVIDIA GPU Technology News Archived News Items 0 06-25-12 04:10 PM
FreeBSD 9 Release with Nvidia 550 Ti configuration issues goga NVIDIA FreeBSD 0 05-23-12 08:34 AM
302.07 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-02-12 09:55 AM
Glx mrbig1344 NVIDIA Linux 7 09-30-02 06:45 AM

All times are GMT -5. The time now is 08:09 AM.


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