Skip to content

Instantly share code, notes, and snippets.

@JohannesRudolph
Forked from judas-christ/fix-refresh-rate.sh
Last active November 30, 2020 08:27
Show Gist options
  • Save JohannesRudolph/77fe7955630f1a84a359a55bae7503b2 to your computer and use it in GitHub Desktop.
Save JohannesRudolph/77fe7955630f1a84a359a55bae7503b2 to your computer and use it in GitHub Desktop.
How to change refresh rate on an external display on macOS. Useful if for some reason macOS decides to no longer drive your 4k display at 60Hz and gives you no option to correct.
# install cscreen
brew cask install cscreen
# list displays
cscreen -l
# find your external screen in the list and write the number (not the ID) down somewhere
# in the following instructions, use that number instead of <SCREEN>
# list display modes for your external screen
cscreen -s <SCREEN> -v
# find a display mode you like and run
cscreen -s <SCREEN> -x <HEIGHT> -y <WIDTH> -r <REFRESH_RATE>
# if that doesn't work (which it sometimes doesn't, even though the resolution/setting is listed in cscreen -v)
# try channging to a different resolution, then back to your desired resolution
cscreen -s 2 -d 32 -x 3840 -y 2160 -r 60
cscreen -s 2 -d 32 -x 2560 -y 1440 -r 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment