LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-06-2007, 03:48 PM   #1
cmetelko
Member
 
Registered: Jan 2006
Posts: 37

Rep: Reputation: 15
Determining screen resolution to use in a script,NVIDIA


Hi,
I've got a laptop with resolution 1280x800 and an external monitor of resolution
1900x1200. The NVIDIA driver starts X in 1900x1200 when the external monitor
is present, and 1280x800 when not. How does it do this?

I would like to run different startup scripts dependent or resolution. What file
variable do I have to look at?

Thanks
 
Old 02-07-2007, 09:26 AM   #2
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 4,504

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
You could parse the output of xdpyinfo, which provides all sorts of information about the default X server, or any server you specify with the -display option.
--- rod.
 
Old 02-07-2007, 10:31 AM   #3
cmetelko
Member
 
Registered: Jan 2006
Posts: 37

Original Poster
Rep: Reputation: 15
xdpyinfo and grep works great,

Thank you very much
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH script for changing screen resolution ylikone Programming 10 05-11-2006 05:11 AM
Screen Resolution problem using Nvidia drivers with KDE LaptopLinux Mandriva 2 04-26-2005 06:07 PM
Weird with screen resolution using NVIDIA javb Linux - Laptop and Netbook 1 02-06-2005 06:43 PM
NVidia driver problem with screen resolution dabump Mandriva 3 12-20-2004 08:32 AM
screen resolution issues with nvidia gforce go 5600 Sul Linux - Laptop and Netbook 9 08-16-2004 09:44 AM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration