add a way to change default display resolution for the video output on haos.
because when y start haos on rpi4 and odroid they use fixed default resolution.
if your screen not support this resolution you don’t have anything on the screen…
idealy is to detect the resolution base on the screen EDID.
with tool like:
get-edid | parse-edid
or hwinfo :
# hwinfo --monitor
15: None 00.0: 10002 LCD Monitor
[Created at monitor.125]
Unique ID: rdCR.03oFM_ZXju6
Parent ID: _Znp.9itj+PNW6b7
Hardware Class: monitor
Model: "ASUS VW161"
Vendor: ACI
Device: eisa 0x16a1 "ASUS VW161"
Serial ID: "88LMTN020916"
Resolution: 720x400@70Hz
Resolution: 640x480@60Hz
Resolution: 640x480@67Hz
Resolution: 640x480@72Hz
Resolution: 640x480@75Hz
Resolution: 800x600@56Hz
Resolution: 800x600@60Hz
Resolution: 800x600@72Hz
Resolution: 800x600@75Hz
Resolution: 832x624@75Hz
Resolution: 1024x768@60Hz
Resolution: 1024x768@70Hz
Resolution: 1024x768@75Hz
Resolution: 1280x720@60Hz
Resolution: 1280x720@75Hz
Resolution: 1360x768@60Hz
Size: 340x190 mm
Year of Manufacture: 2008
Week of Manufacture: 33
Detailed Timings #0:
Resolution: 1360x768
Horizontal: 1360 1424 1536 1792 (+64 +176 +432) +hsync
Vertical: 768 771 777 795 (+3 +9 +27) +vsync
Frequencies: 85.50 MHz, 47.71 kHz, 60.02 Hz
Driver Info #0:
Max. Resolution: 1360x768
Vert. Sync Range: 55-75 Hz
Hor. Sync Range: 30-85 kHz
Bandwidth: 85 MHz
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #12 (VGA compatible controller)