Persistent Screen Resolution (Pi Zero)
Glen Walker (2585) 469 posts |
I have noticed something odd recently with my Pi. I have been quite tired recently so decided to change the screen resolution from 1920×1080 to 1360×768 (which is technically the maximum the monitor can actually support anyway) so did it and then when I rebooted the screen resolution was back to 1920×1080. A bit of digging and I found that my $.!Boot.Choices.Boot.PreDesk.Configure.Monitor file was actually blank. I entered “WimpMode X1360 Y768 C16M” and tested it by rebooting. All was well until just now when I turned my computer on but forgot to turn on the TV first which resulted in the Pi picking a very weird resolution (this is common to all our Pis, even the ones running HTPCs). Fair enough I thought, I’ll just reset the computer with the TV turned on and it will sort itself out and load at 1360×768...only it didn’t. It loaded back at 1920×1080. What is more weird is that the aforementioned Monitor file is once again completely empty. Any ideas what’s going on? Is there another way to set the resolution in a persistent manner? |
James Wheeler (3283) 344 posts |
Is this because of EDID? |
Chris Hall (132) 3554 posts |
Is there another way to set the resolution in a persistent manner? Yes, but it will annoy the purists. copy $.!Boot.Choices.Boot.PreDesk.Configure.Monitor (which the OS knows about and tinkers with) to $.!Boot.Choices.Boot.PreDesk.Monitor (which it doesn’t & therefore leaves alone). |
Glen Walker (2585) 469 posts |
Cool thanks – I’ll do that tonight. So does everything in the PreDesk folder just get run or will I need to put the new location of the Monitor file in another file or something? |
Chris Hall (132) 3554 posts |
So does everything in the PreDesk folder just get run Yes, in alphabetical order, unless & until an error occurs. |
Steve Pampling (1551) 8170 posts |
The alternate answer is you can have it run in said alphabetic order with a nice log of what ran, what failed and in what order without bombing out on errors if you run Harinezumi With the number of questions that occur with people having some kind of broken boot sequence I’m amazed no one has integrated the functionality |