Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set monitor resolution via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set monitor resolution via AppleScript
Authored by: tamás on Sep 09, '04 01:55:27PM

What happens if you leave the computer plugged into both your monitor and the TV? Is there a way to control the resolution on one of the two displays, or is cscreen limited to assuming a single display?



[ Reply to This | # ]
Set monitor resolution via AppleScript
Authored by: Frederico on Sep 09, '04 03:57:30PM

csscreen is multi-monitor-aware; you can alter resolutions by device index id:

"6 displays found
Index Depth Width Height Refresh(Hz; LCD displays show 0)
1 32 1280 1024 85
2 32 1280 1024 85
3 16 1152 870 75
4 32 1152 870 75
5 32 1152 870 75
6 32 1280 1024 85
use -h to display all usage options"

"Usage: cscreen [-d <depth>] [-x <width>] [-y <height>] [-r <refresh>] [-s <display>] [-v] [-m] [-f] [-l] [-h]
[-d <depth>] : specifies the bit depth (bits per pixel)
[-x <width>] : specifies the width in pixels
[-y <height>] : specifies the height in pixels
[-r <refresh>] : specifies the refresh rate in Hz
[-s <display>] : specifies which display to use (defaults to main display)
use a as the option to -s to specify the action on all displays
[-v] : display valid modes (use -s to specify display or nothing for the default)
[-m] : require an exact match
[-f] : forces settings (ignores safety mechanisms; USE AT YOUR OWN RISK)
[-l] : lists the current displays and modes
[-p] : sets the requested display to be the primary display
[-h] : displays the usage"

HTH



[ Reply to This | # ]