univ-of-utah-marriott-library-apple / display_manager

An open-source Python library which can modify your Mac's display settings manually or automatically.
MIT License
237 stars 18 forks source link

MBP16 and Philips 49" certain modes cause exception #17

Open vMarkus opened 3 years ago

vMarkus commented 3 years ago

Hi,

I am using two resolutions on my 49" (Philips 499P9) screen mainly and skip from "fullscreen" 5120x1440 to "split screen" 2560x1440 for two connected computers. Manual selection works on control panel or with other tools, but I'd like to use a script to switch even faster.

Unfortunately display_manager doesn't let me change resolution/refresh to my prefered values:

/usr/local/bin/display_manager.py res 5120 1440 30 ext0
/usr/local/bin/display_manager.py:281: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise CommandExecutionError(e.message, command=self)
Error: Display "ext0" cannot be set to 5120x1440
/usr/local/bin/display_manager.py res 2560 1440 60 ext0
/usr/local/bin/display_manager.py:281: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise CommandExecutionError(e.message, command=self)
Error: Display "ext0" cannot be set to 2560x1440

However, the following setting do change screen resolution for example without any issue.

/usr/local/bin/display_manager.py res 3840 1080 60 ext0
/usr/local/bin/display_manager.py res 3840 1080 30 ext0
/usr/local/bin/display_manager.py res 1920 1080 60 ext0

Any idea to override or force the settings for 5120x1440@30Hz and 2560x1440@60Hz and get around the exception?

Thanks in advance Markus