How to set the resolution and refresh rate automatically after boot to desktop on the nvidia nano?

Hi Guys

How do we set the resolution and refresh rate automatically after boot to desktop on the nvidia nano?

I can use xrandr to set the mode and refresh rate from a terminal that works great. But I need it to happen automatically once the system has booted. Is this possible? Seems like it should be trivial!

I trawled through lots of similar sounding threads on this subject but I haven’t found anything that works yet.

Thanks.