usr-sse2 / RDM

Easily set Mac Retina display to higher unsupported resolutions
1.13k stars 75 forks source link

How to undo changes made to display setting? #42

Open abhishekjhaji opened 3 years ago

abhishekjhaji commented 3 years ago

I have uninstalled the RDM but the changes made to display setting are persisted. As per the system report it shows the resolution as Resolution: 5120x2880 (5K/UHD+ - Ultra High Definition Plus) while the actual resolution is 2560 X 1440.

Do we need to remember all the changes we made and uncheck them manually?

maximebories commented 2 years ago
sudo rm -rf /Library/Displays/Contents/Resources/Overrides
sudo reboot now

Should do the work.

nawe19 commented 2 years ago
sudo rm -rf /Library/Displays/Contents/Resources/Overrides
sudo reboot now

Should do the work.

Tried this, didn't seem to help with my issue, which is similar to the OP

maximebories commented 2 years ago

What's stdout ? stderr ? Are the files still there ? Open finder cmd+shift+g and paste /Library/Displays/Contents/Resources/ Or tree /Library/Displays/Contents/Resources/ Do you remember what you put there ? If so, do you find the same files in /System/Library/Displays/Contents/Resources/ ?

EDIT: and of course, did you reboot ?

nawe19 commented 2 years ago

I didn't put anything here, All I did was add a new resolution in the UI. See my post for more info:

43

nawe19 commented 2 years ago

I should have added this before, but this is what is currently in /Library/Displays/Contents/Resources/: image

usr-sse2 commented 2 years ago

RDM puts files there when you add the resolution. There is an Overrides folder on your screenshot, remove it.

maximebories commented 2 years ago

You don't really need to remove it but if it's not empty, remove everything inside.

usr-sse2 commented 2 years ago

I should have added this before, but this is what is currently in /Library/Displays/Contents/Resources/: image

This looks like the contents of /System/Library/Displays/Contents/Resources, not /Library/Displays/Contents/Resources.

maximebories commented 2 years ago

The locales *.lproj are locales for any binary compiled with Xcode, they should be in both directory. However, and again, there is also an Overrides folder. Unless you used virtuel symbolic links elsewhere, the resolution you added is in this folder ! Remove it or everything inside as per the commands I gave you before. If the command does'n work, copy/paste the error message.

funkyboy commented 2 years ago

On macOS Monterey there's no /Library/Displays/* folder. Can you please tell us where does the app store the overrides on Monterey? Thanks.

aashrithm29 commented 1 year ago

The locales *.lproj are locales for any binary compiled with Xcode, they should be in both directory. However, and again, there is also an Overrides folder. Unless you used virtuel symbolic links elsewhere, the resolution you added is in this folder ! Remove it or everything inside as per the commands I gave you before. If the command does'n work, copy/paste the error message.

@maximebories, I am having a similar issue → I tried the command sudo rm -rf /Library/Displays/Contents/Resources/Overrides, then rebooted, but when I went to /System/Library/Displays/Contents/Resources/Overrides, the files are still there

aashrithm29 commented 1 year ago

Ah, I have Apple Silicon Mac, which is why the folder is showing up in /System/Library/Displays/Contents/Resources/Overrides. Ok, so when I try deleting this with sudo rm -rf /Library/Displays/Contents/Resources/Overrides, then I get these issues:

@usr-sse2, do you know why this occurs?

aashrithm29 commented 1 year ago

I am thinking of running it after I disable SIP (https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection). Deleting these files will not cause a problem to my Mac, right?