Giter Club home page Giter Club logo

fix_m1_rgb's Introduction

fix_m1_rgb

Script that attempts to force M1 macs into RGB mode when used with monitors that are defaulting to YPbPr.

No warranty provided for using this script. Use at your own risk.

Instructions

Prerequisites

  1. Make sure you are on Mac OS X 11.4 or higher. Upgrade if you haven't.
  2. Open System Preferences > Displays > Rotate the monitor that's in YPbPr mode in order to force it to write to the relevant plist file. You can unrotate it immediately or allow it to auto-revert.

Running the Script

From your Terminal, run:

# Download the script
curl -o ~/Downloads/fix_m1_rgb.py https://raw.githubusercontent.com/sudowork/fix_m1_rgb/main/fix_m1_rgb.py
# Run the script.
# Note: You may optionally pass the --dry-run flag if you want to validate the script's behavior without actually changing anything.
# Note: You may be prompted for your password in order to backup and modify files under /Library.
python3 ~/Downloads/fix_m1_rgb.py

It is expected to see some "warnings" about some display configurations not having the correct PixelEncoding or Range values. Likewise, some displays may not have a LinkDescription.

Restart your computer after you're done, and if all worked out well, then your monitor should be in RGB mode.

Note: The script will backup your original plist files. In addition, the script does not try to discriminate between various displays, so it will write the PixelEncoding and Range values for all displays with a LinkDescription field.

Kudos

Kudos to @GetVladimir for identifying the plist changes that need to be made.

fix_m1_rgb's People

Contributors

sudowork avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.