displaymode
displaymode copied to clipboard
Could not find a mode for resolution 1440x900
I cannot set a resolution on my Macbook 13" M1 Montery 12.5.1
./displaymode d Display 0 (MAIN): 2048 x 1280 @60.0Hz 2560 x 1600 @60.0Hz 1440 x 900 @60.0Hz *
./displaymode t 1440 900
Could not find a mode for resolution 1440x900
The other modes work: ./displaymode t 2560 1600 ./displaymode t 2048 1280
Thanks for the report.
There is a weird thing with the CoreGraphics APIs I'm using where the current mode isn't advertised by CGDisplayCopyAllDisplayModes
, but it is returned by CGDisplayCopyDisplayMode
.
Does it work if you change the order? e.g.
./displaymode t 2560 1600
./displaymode d
./displaymode t 1440 900
I can fix displaymode t
to not error if 1440x900 is already the current mode (as in your example), but if it's not advertised (e.g. if it doesn't appear in my example above where you run displaymode d
after changing to something other than 1440x900) I'm not really sure how to validate it.