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


Click here to return to the 'Determine multiple display layout via bash script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Determine multiple display layout via bash script
Authored by: mzs on Feb 12, '09 01:03:21AM
Parsing the system_profiler command has worked very well for me since 10.4:

$ system_profiler SPDisplaysDataType
Graphics/Displays:

    ATI Radeon X1600:

      Chipset Model: ATY,RadeonX1600
      Type: Display
      Bus: PCIe
      PCIe Lane Width: x16
      VRAM (Total): 128 MB
      Vendor: ATI (0x1002)
      Device ID: 0x71c5
      Revision ID: 0x0000
      EFI Driver Version: 01.00.068
      Displays:
        iMac:
          Resolution: 1680 x 1050
          Depth: 32-bit Color
          Core Image: Hardware Accelerated
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Quartz Extreme: Supported
          Display Asleep: Yes
          Built-In: Yes
        DELL 1901FP:
          Resolution: 1280 x 1024 @ 75 Hz
          Depth: 32-bit Color
          Core Image: Hardware Accelerated
          Mirror: Off
          Online: Yes
          Quartz Extreme: Supported
          Rotation: Supported
          Display Asleep: Yes
It doesn't tell you the screen origins though.

[ Reply to This | # ]