How to set N2/C4/HC4 Display Mode and Resolution

There are two kinds of display setting mode of ODROID-N2/C4/HC4.

  • Display Auto Detection Mode
  • Display Manual Setting Mode (including hdmi phy manual setting using modeline)

And you can set display mode and resolutions through config.ini (ubuntu) or env.ini (android) file.

Auto Detection Mode

Display Mode Setting

To run display auto-detection mode, display_autodetect in config.ini/env.ini must be set as “true”.

; Auto Detection of Monitor settings based on your Screen information
; true or false
display_autodetect=true

Sample config.ini and env.ini

Auto detection-related lines are as following.

config.ini for Ubuntu
; Auto Detection of Monitor settings based on your Screen information
display_autodetect=true

; HDMI Mode
; Resolution Configuration
;    Symbol             | Resolution
; ----------------------+-------------
;    "480x272p60hz"     | 480x272 Progressive 60Hz
;    "480x320p60hz"     | 480x320 Progressive 60Hz
;    "480p60hz"         | 720x480 Progressive 60Hz
;    "576p50hz"         | 720x576 Progressive 50Hz
;    "720p60hz"         | 1280x720 Progressive 60Hz
;    "720p50hz"         | 1280x720 Progressive 50Hz
;    "1080p60hz"        | 1920x1080 Progressive 60Hz
;    "1080p50hz"        | 1920x1080 Progressive 50Hz
;    "1080p30hz"        | 1920x1080 Progressive 30Hz
;    "1080p24hz"        | 1920x1080 Progressive 24Hz
;    "1080i60hz"        | 1920x1080 Interlaced 60Hz
;    "1080i50hz"        | 1920x1080 Interlaced 50Hz
;    "2160p60hz"        | 3840x2160 Progressive 60Hz
;    "2160p50hz"        | 3840x2160 Progressive 50Hz
;    "2160p30hz"        | 3840x2160 Progressive 30Hz
;    "2160p25hz"        | 3840x2160 Progressive 25Hz
;    "2160p24hz"        | 3840x2160 Progressive 24Hz
;    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
;    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
;    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
;    "640x480p60hz"     | 640x480 Progressive 60Hz
;    "800x480p60hz"     | 800x480 Progressive 60Hz
;    "800x600p60hz"     | 800x600 Progressive 60Hz
;    "1024x600p60hz"    | 1024x600 Progressive 60Hz
;    "1024x768p60hz"    | 1024x768 Progressive 60Hz
;    "1280x800p60hz"    | 1280x800 Progressive 60Hz
;    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
;    "1360x768p60hz"    | 1360x768 Progressive 60Hz
;    "1440x900p60hz"    | 1440x900 Progressive 60Hz
;    "1600x900p60hz"    | 1600x900 Progressive 60Hz
;    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
;    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
;    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
;    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
;    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
;    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
;    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
hdmimode=1080p60hz

; voutmode : hdmi or dvi
; hdmi / dvi
voutmode=hdmi
env.ini for Android
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Resolution Configuration
; 'hdmimode' & 'outputmode' must be one of below to configure display resolution within
; supported by your TV or monitor.
; And both of values MUST be same.
;+--------------------+----------------------------------+
;| Symbol             | Resolution                       |
;+--------------------+----------------------------------+
;| "480x320p60hz"     | 480x320 Progressive 60Hz         |
;| "480p60hz"         | 720x480 Progressive 60Hz         |
;| "576p50hz"         | 720x576 Progressive 50Hz         |
;| "720p60hz"         | 1280x720 Progressive 60Hz        |
;| "720p50hz"         | 1280x720 Progressive 50Hz        |
;| "1080p60hz"        | 1920x1080 Progressive 60Hz       |
;| "1080p50hz"        | 1920x1080 Progressive 50Hz       |
;| "1080p30hz"        | 1920x1080 Progressive 30Hz       |
;| "1080p24hz"        | 1920x1080 Progressive 24Hz       |
;| "1080i60hz"        | 1920x1080 Interlaced 60Hz        |
;| "1080i50hz"        | 1920x1080 Interlaced 50Hz        |
;| "2160p60hz"        | 3840x2160 Progressive 60Hz       |
;| "2160p50hz"        | 3840x2160 Progressive 50Hz       |
;| "2160p30hz"        | 3840x2160 Progressive 30Hz       |
;| "2160p25hz"        | 3840x2160 Progressive 25Hz       |
;| "2160p24hz"        | 3840x2160 Progressive 24Hz       |
;| "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE |
;| "640x480p60hz"     | 640x480 Progressive 60Hz         |
;| "800x480p60hz"     | 800x480 Progressive 60Hz         |
;| "800x600p60hz"     | 800x600 Progressive 60Hz         |
;| "1024x600p60hz"    | 1024x600 Progressive 60Hz        |
;| "1024x768p60hz"    | 1024x768 Progressive 60Hz        |
;| "1280x800p60hz"    | 1280x800 Progressive 60Hz        |
;| "1280x1024p60hz"   | 1280x1024 Progressive 60Hz       |
;| "1360x768p60hz"    | 1360x768 Progressive 60Hz        |
;| "1440x900p60hz"    | 1440x900 Progressive 60Hz        |
;| "1600x900p60hz"    | 1600x900 Progressive 60Hz        |
;| "1600x1200p60hz"   | 1600x1200 Progressive 60Hz       |
;| "1680x1050p60hz"   | 1680x1050 Progressive 60Hz       |
;| "1920x1200p60hz"   | 1920x1200 Progressive 60Hz       |
;| "2560x1080p60hz"   | 2560x1080 Progressive 60Hz       |
;| "2560x1440p60hz"   | 2560x1440 Progressive 60Hz       |
;| "2560x1600p60hz"   | 2560x1600 Progressive 60Hz       |
;| "3440x1440p60hz"   | 3440x1440 Progressive 60Hz       |
;+--------------------+----------------------------------+
hdmimode="1080p60hz"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Custom modeline
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; hdmimode="custombuilt"
; 2560x1440p60hz sample
modeline="2560,1440,241500,88800,60,2560,2608,2640,2720,1440,1442,1447,1481,1,1,1"
customwidth="2560"
customheight="1440"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; voutmode
; hdmi or dvi
voutmode="hdmi"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Display Auto Detection
; "false" or "true"
display_autodetect="true"

Manual Mode

Display Mode Setting

To run display mode with manual option, display_autodetect in config.ini and env.ini must be set as “false”.

; Auto Detection of Monitor settings based on your Screen information
display_autodetect=false

Resolution Setting

; Auto Detection of Monitor settings based on your Screen information
display_autodetect=false

; HDMI Mode
; Resolution Configuration
;    Symbol             | Resolution
; ----------------------+-------------
;    "480x272p60hz"     | 480x272 Progressive 60Hz
;    "480x320p60hz"     | 480x320 Progressive 60Hz
;    "480p60hz"         | 720x480 Progressive 60Hz
;    "576p50hz"         | 720x576 Progressive 50Hz
;    "720p60hz"         | 1280x720 Progressive 60Hz
;    "720p50hz"         | 1280x720 Progressive 50Hz
;    "1080p60hz"        | 1920x1080 Progressive 60Hz
;    "1080p50hz"        | 1920x1080 Progressive 50Hz
;    "1080p30hz"        | 1920x1080 Progressive 30Hz
;    "1080p24hz"        | 1920x1080 Progressive 24Hz
;    "1080i60hz"        | 1920x1080 Interlaced 60Hz
;    "1080i50hz"        | 1920x1080 Interlaced 50Hz
;    "2160p60hz"        | 3840x2160 Progressive 60Hz
;    "2160p50hz"        | 3840x2160 Progressive 50Hz
;    "2160p30hz"        | 3840x2160 Progressive 30Hz
;    "2160p25hz"        | 3840x2160 Progressive 25Hz
;    "2160p24hz"        | 3840x2160 Progressive 24Hz
;    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
;    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
;    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
;    "640x480p60hz"     | 640x480 Progressive 60Hz
;    "800x480p60hz"     | 800x480 Progressive 60Hz
;    "800x600p60hz"     | 800x600 Progressive 60Hz
;    "1024x600p60hz"    | 1024x600 Progressive 60Hz
;    "1024x768p60hz"    | 1024x768 Progressive 60Hz
;    "1280x800p60hz"    | 1280x800 Progressive 60Hz
;    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
;    "1360x768p60hz"    | 1360x768 Progressive 60Hz
;    "1440x900p60hz"    | 1440x900 Progressive 60Hz
;    "1600x900p60hz"    | 1600x900 Progressive 60Hz
;    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
;    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
;    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
;    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
;    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
;    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
;    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
hdmimode=1080p60hz

Available Resolution

You can find the available resolution list here.

Support Resolution List

HDMI/DVI Switching

; voutmode : hdmi or dvi
; hdmi (default) / dvi
voutmode=hdmi

Additional Information

The display control concept of ODROID-N2/C4/HC4 is same with ODROID-C2 logic.
Please refer to the following links for the basic operation rules and further information.

2020/03/17 11:05 · luke.go