244 liens privés
macos terminal info à propos de l'écran.
system_profiler SPDisplaysDataType
ou
defaults read /Library/Preferences/com.apple.windowserver.plist
ou un script cscreen
# install homebrew if you don't have it already
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master /install)"
# install cscreen
brew install --cask cscreen
# list displays
cscreen -l
ex:
DisplayID Index Depth Width Height Refresh
1 1 32 1440 900 60
2 2 32 1920 1080 60
use -h to display all usage options</code>
The first time you try to open the cscreen the os will not allow it because it isn't signed.
You have to go to Security & Privacy in System Preferences and allow it.
ou'll need to get a usb-serial adapter and then connect with a console cable. Adapters aren't very expensive.
Connecting to the Console Port with Mac OS X
To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility, follow these steps:
Step 1 Use the Finder to go to Applications > Utilities > Terminal.
Step 2 Connect the OS X USB port to the router.
Step 3 Enter the following commands to find the OS X USB port number:
macbook:user$ cd /dev
macbook:user$ ls -ltr /dev/usb
crw-rw-rw- 1 root wheel 9, 66 Apr 1 16:46 tty.usbmodem1a21
DT-macbook:dev user$
Step 4 Connect to the USB port with the following command followed by the router USB port speed:
macbook:user$ screen /dev/tty.usbmodem1a21 9600
To Disconnect the OS X USB Console from the Terminal Window
Enter Ctrl+A followed by Ctrl+\