Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Unix command to detect displays

Unix command to detect displays
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2004
Status: Offline
Reply With Quote
Sep 28, 2004, 08:14 AM
 
I am trying to automate the 'detect displays' action of the displays menu (or system preferences pane).

It can be done in applescript via GUI scripting, but this is clumsy and slow.

Is there a UNIX command to detect displays?

Thanks
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 28, 2004, 11:06 AM
 
Nope, I don't think so. If you want one, file an ER with Apple.
     
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status: Offline
Reply With Quote
Sep 28, 2004, 03:12 PM
 
What exactly are you trying to achieve?
     
Dedicated MacNNer
Join Date: Jul 2002
Location: Norway
Status: Offline
Reply With Quote
Sep 28, 2004, 06:03 PM
 
You could use AppleScript in cli. man osascript
Mac Pro 2 x 2.8 GHz Quad-Core, Nvidia GeForce 8800GT
     
AlanU  (op)
Fresh-Faced Recruit
Join Date: Sep 2004
Status: Offline
Reply With Quote
Sep 29, 2004, 07:10 AM
 
I am trying to write an applescript which changes my sleep settings, detects displays then starts a presentation in powerpoint, all automatically.

I want a slick way of starting a presentation, without the audience having to watch me do all those things manually. There is a slight security issue as well in that I don't really want my students to see what's on my computer, other than the presentation.

Changing sleep settings is no problem; nor is starting the PPT presentation - both work very quickly from applescript (with a bit of help from the cli). 'Detect displays' however requires GUI scripting, which first opens system preferences, monitors control panel then clicks the 'detect displays' button, then quits system preferences.

I was hoping that there might be a purely UNIX way of detecting the presence of a second monitor, which would remove the need for this part of the applescript.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Oct 1, 2004, 05:16 PM
 
Originally posted by BrandonCorbin:
What exactly are you trying to achieve?
Side note: The picture in your signature is sweet, what's it of?

"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Oct 2, 2004, 07:34 PM
 
Newer graphics cards automatically detect a new display. It's really spiffy--plug 'n play VGA.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Oct 3, 2004, 05:27 PM
 
Originally posted by Detrius:
Newer graphics cards automatically detect a new display. It's really spiffy--plug 'n play VGA.
I've actually noticed this on my 15" Powerbook for the DVI port. My Pismo never did it, but it's very handy that it auto-detects now. Gotta love it.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status: Offline
Reply With Quote
Oct 3, 2004, 06:47 PM
 
Originally posted by AlanU:
There is a slight security issue as well in that I don't really want my students to see what's on my computer, other than the presentation.
You could create a second user just for presentations such that your students wouldn't see anything but what was in that user's folder... which would basically be just the presentation.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Oct 4, 2004, 01:50 AM
 
Originally posted by Person Man:
You could create a second user just for presentations such that your students wouldn't see anything but what was in that user's folder... which would basically be just the presentation.
Novel idea- I like it!
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status: Offline
Reply With Quote
Oct 4, 2004, 02:04 PM
 
Originally posted by [APi]TheMan:
Novel idea- I like it!
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:46 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2