How to set specific HDMI frequency and resolution before login

I remember a old post as this. Could you try it?