Skip to content

Instantly share code, notes, and snippets.

@erichrobinson
Last active February 24, 2024 08:32
Star You must be signed in to star a gist
Save erichrobinson/9755ba1f3ec45b289c40 to your computer and use it in GitHub Desktop.
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
  • Reboot

##Adding Custom Settings

  • After launching SwitchResX, select the external monitor from the list on the left.
  • Select the 'Custom Resolutions' tab.
  • Add a new custom resolution be clicking the + symbol at the bottom of the window.
  • Adjust the settings to match the appropriate PNG provided in this gist.
  • Press 'Ok'
  • Close SwitchResX and save when prompted.
  • Restart your Mac.

After following these steps, you should be able to adjust the resolution of your external monitor through the 'Display' window in System Preferences.

@ixje
Copy link

ixje commented Nov 6, 2020

Does anyone have SwitchResX settings for the LG 34UC99 Curved UltraWide QHD (3440x1440) for HIDPI?

@minimumnz I'm not sure what you're asking for, but I was looking for 75Hz support as it only detected up to 60. I took this table from the manual
image

added a custom resolution where I changed the scan rate field for horizontal to 110,770 (this automatically updates the scan rate for vertical), and I checked the positive sync.check box for the vertical column (as according to the table in the manual). Seems to work fine here.

@rsaraphael
Copy link

rsaraphael commented Nov 30, 2020

I just copied to the systems folder like this: 'sudo cp DisplayYearManufacture-2015-DisplayWeekManufacture-1 /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d'.
After that I renamed the file to match the product ID: 'DisplayProductID-59f1 '.
Now you just need to restart the MacBook and choose the correct resolution (2560x1080) in SwitchResX.
Hope it helps =)

@nelsoncvides Sry, I'm beginner and bit stupidoo. Can you please write the whole code for the terminal? And I have problems with access right - I can't copy that file to the folder on mac. Thank you.

I think you don't need to make every steps I did. You just need to create this file
/System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-59f1

with this content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>DisplayPixelDimensions</key>
	<data>
	AAAKAAAABDg=
	</data>
	<key>DisplayProductID</key>
	<integer>23025</integer>
	<key>DisplayProductName</key>
	<string>SwitchResX4 - LG ULTRAWIDE</string>
	<key>DisplayVendorID</key>
	<integer>7789</integer>
	<key>SwitchResX backuped settings</key>
	<dict>
		<key>DisplayProductID</key>
		<integer>23025</integer>
		<key>DisplayVendorID</key>
		<integer>7789</integer>
	</dict>
	<key>default-resolution</key>
	<data>
	AAAKAAAABDgAPAAA
	</data>
	<key>dspc</key>
	<array>
		<data>
		izkAoKA4GUAwIDoAAAAAAAAa
		</data>
	</array>
</dict>
</plist>

Regarding the access right, you need to be super user to create this file.
After a restart you should be able to see the correct resolution (2560x1080) in SwitchResX.

Thank you!!!

In case someone is having the same problem with Big Sur:

You can not edit /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/DisplayProductID-59f1 since it's readonly. So you just have to add this mentioned file after mounting the drive using this step: https://apple.stackexchange.com/questions/395508/mount-root-as-writable-in-big-sur

@ceeK
Copy link

ceeK commented Dec 3, 2020

Anyone else have the issue of their ultrawide not displaying anything (but still receiving a signal as the display doesn't go to sleep) on a 38WN95C via ThunderBolt 3?

The monitor works fine if the lid is open, OR a second HDMI monitor is also connected to the Macbook. With just the 38WN95C connected, the display is blank if I close the lid. After looking at the switchresx logs in the console viewer it seems to be warning on "Invalid display ".

Anyone got any tips?

@ipreppress
Copy link

This worked great on my Mac Mini (late 2012) and my LG-34WL500-B ultra wide monitor. Thanks Erich for a tremendous job!

@michaelrebar
Copy link

After using High Sierra on a 2017 Razer Blade Pro with 4K display, using QuickRes to achieve a readable resolution, moving back to an Intel MacBook Pro was frustrating for a bit. Experiencing how Windows 10 can easily adjust resolutions on the main display, but easily drive 2 UPerfect 15 inch 4K displays with needing specialized software like DisplayPort to achieve changes in resolution by percentages made the limitations in choices in Big Sur underpowered.
This software, running as a daemon, fixed everything. I now have similar functionality in macOS. I know the daemon function will not push frame rate high enough to play demanding games. However it does make it possible to get work done by being able to see more. After seeing it work today for just a few minutes was enough to buy a license.
I know a lot of this can be done at CLI, however this software fills in the missing part in macOS. Thank you for making this software!

@ayojohnson3
Copy link

I upgraded my macbook air 2015 OS to Big sur and I'm having the same issue with Switchresx when I add a custom resolution I get status: not installed. Any advice or help will greatly appreciated!!!!

@Barmadav
Copy link

Hi all! All nice working on mac mini 2012 with LG 29 UM58 SwitchResX. But before the settings SwichResX - you need to specify the Ratio as wide in the settings of the monitor itself. Best Regards!

@SalarPro
Copy link

Thank you 👍 , it works for me LG WK600 29"

@kye95
Copy link

kye95 commented Apr 2, 2021

hey guys, im running 3840 x 2160 @ 50 hz or hidp 1080 on 13" MacBook Pro mid 2014 Mac OS Catalina. just wondering if I should upgrade to Big Sur. will it affect my usage?

@stkjj
Copy link

stkjj commented May 27, 2021

Much appreciated! Fiddled around for about an hour and had serveral restarts til I found this repo. Thanks to it my LG 29WK500 connected to a Mac mini late 2012 works now like a charm. Also all other 21:9 resolutions showed up immediately !

@fandi-komek
Copy link

Thank you...finally work on my Macbook MD101 and LG 34WL500-B... after trying with soooo many adapter...

@githubme1021
Copy link

I have an external monitor; LG 25UM58-P, 21:9 Ultrawide. I recently updated my mbpro mid 2012 non-retina. I managed to disable SIP and install macOS Big Sur by using OpenCore Patcher, can't seem to get the native resolution 2560x1080p in SwitchresX. it was fine when I was in macOS Mojave. is there a work around?

@GitAlison
Copy link

!!!!! thankyou 👍 😄 image settings worked with LG29kw500

@githubme1021
Copy link

!!!!! thankyou 👍 😄 image settings worked with LG29kw500

what's your set up dude?

@githubme1021
Copy link

githubme1021 commented Dec 10, 2021

can anyone see what's wrong here? its not giving me 2560x1080 all through out?

SwitchResX Settings:
Screen Shot 2021-12-10 at 3 05 43 PM

Display Settings:
Screen Shot 2021-12-10 at 3 06 11 PM

DisableMonitor Settings:
Screen Shot 2021-12-10 at 3 07 15 PM

Result in my Ultrawide Monitor?
Screen Shot 2021-12-10 at 3 14 10 PM (2)

@VicZhang6
Copy link

Love you so much! Thanks!!!!!

@devmagical
Copy link

Hello Guys,

I have a problem when tried to install a ultra wide resolution using SwitchresX in macOS Big Sur 11.6.1, and discovered that the path is readonly. But I found a patch that fix it, in the url:

https://gist.github.com/adaugherity/7435890

After applying the patch, just doing sudo ./patch-edid.rb, SwitchresX was able to write in the path /Library/Displays/Contents/Resources/Overrides/DisplayVendorID-1e6d/ saving the file DisplayProductId-7714, and my LG UltraWide now is using the resolution 2560 x 1080 in my MacBook Pro Late 2012.

@lisandi
Copy link

lisandi commented Jun 12, 2022

No need for additional software or SwitchResX as Mac Mini Mid 2010 supports via the display port 2560x1440. By an Adapter i.e. UGREEN Mini DisplayPort to HDMI+VGA Converter and reboot your computer. Plug your 1920x1080 display into the HDMI Port and the 2560x1080 LG WL500 B into the MiniDisplay Port.

Here is what they write at Apple Forum and that finally made it work. (Now I only need to check how to get completely rid again from SwitchResX as it isn't needed at all.
https://discussions.apple.com/thread/251212226?answerId=252323522022#252323522022

Go to Apple > System Preferences > Displays > hold the Alt (option) key and click on the Scaled button.

If the display does not work or you can not select a suitable resolution, then please answer the following ?'s.

What model is the LG display and what input connections does it have?
What cable and connection are you using between the Mac Mini and display?

FWIW the Mac Mini's Mini DisplayPort output supports the higher resolutions up to 2560x1600, while the HDMI port only supports up to 1920x1200. If you are using a direct HDMI to HDMI connection, then you may need to use a "Mini DisplayPort to DVI" or "Mini DisplayPort to DisplayPort" adapter from the Mac Mini's Mini DisplayPort output port.

see the "Graphics and Video Support" spec's at > https://support.apple.com/kb/SP585?locale=en_US

Posted on Mar 25, 2020 6:36 AM

@lisandi
Copy link

lisandi commented Jun 12, 2022

I have t revise the above comment of ours. It worked only until we rebooted the second time and then no more. We don't know why it was displaying correctly after we had changed from HDMI in MacMini to the MDP with adapter UGREEN MDP>HDMI+VGA - It worked the first time only, unfortunately. We then rebooted again and got again the 1920x1080 for the ultrawide LG screen. We write to the SwicthResX Support and will see if they have any idea why it worked only one time - the first time after we started using the MDP>HDMI adapter.

@lisandi
Copy link

lisandi commented Jun 13, 2022

@ipreppress Could you please send me a screenshot of your settings for the mac mini 2012 - I have one in Mid 2010 and can't get it working and seeing your settings might help Thanks.
By the way when I have switchresx daemon running then my github does not work like usual i.e. I can't post "@" via the mentions button and also when I like to edit a comment it shows me only an empty dropdown. On the computer with no switchresx installed everything works fine.

@caioberezowski
Copy link

Thanks This worked great on my MacBook Pro 13 2017 Touch Bar and my LG-34WQ500 ultra wide monitor.

@matcs06
Copy link

matcs06 commented May 19, 2023

  • Add new custom resolution and fill values as in a text file (see screenshot below)

Thank you!! I have the same monitor as yours and just copied your configs : ), I also exported the file just to confirm.

@elidianemf
Copy link

Does anyone know if I can follow the same steps for the Samsung monitor?

@eva3si0n
Copy link

eva3si0n commented Sep 9, 2023

Thanks. I set the parameters from the screen and rebooting. Everything stood up perfectly on the LG 29WN600-W, native resolution and clear fonts. Configured on macOS Big Sur on Mac Mini 2012

@NickChalevas
Copy link

NickChalevas commented Feb 10, 2024

Can't set the res in a mac mini 2012 with LG Ultrawide 21.9. Its says resolution 'not installed' in swicthresx. AnyIdea how to solve?

@Fred-IV
Copy link

Fred-IV commented Feb 24, 2024

I just tried app for the first time, and there's a serious bug/issue that I can't find a solution for.
It breaks the ability to command-click items in the Finder for multi-selecting.
I cannot find a work-round, but if I quit the SwitchResX Daemon, the issue goes away, so it's definitely a bug with the app.
There's nowhere I can change the key binding for command-click to fix this.
The closest setting I can find is under "Menus", "Contextual Menu", and I added "option" for "Command=option", but it doesn't fix the problem.
Even is I un-check the contextual menus to disable them, I still cannot command-click Finder items on my desktop.
Is there another fix, or something I'm missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment