HDMI-resolution

From TinkerBoard Wiki
Revision as of 21:03, 6 March 2018 by WikiSysop (talk | contribs) (Method 4 : Add a file to the folder of /boot/hdmi (Need to plug in-out))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to change the HDMI resolutions

Method 1 : from UI intereface

Using the Monitor settings to change the resolution directly.

Method 2 : Terminal (Command line) - Xrandr

The following is the wiki of the xrandr

https://wiki.archlinux.org/index.php/xrandr

# list all the available output resolution
$ xrandr

then you can use xrandr to set different resolution (must be present in the above list) on some output:

$ xrandr --output HDMI-1 --mode 1920x1080

Adding for unlisted resolution

$ cvt 1024 768 60
# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

$ xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
$ xrandr --addmode HDMI1 1024x768
$ xrandr --output HDMI1 --mode 1024x768

Method 3 : Editing /etc/X11/xorg.conf.d/20-modesetting.conf (Need to reboot)

Section "Device"
    Identifier  "Rockchip Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "2"
EndSection
Section "Monitor"
    Identifier "Monitor 0"
    Modeline "1024x768_60.00" 63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
EndSection
Section "Screen"
    Identifier "Default Screen"
    Monitor "Monitor 0"
    SubSection "Display"
        Depth 24
        Modes "1024x768_60.00"
    EndSubSection
EndSection

Method 4 : Add a file to the folder of /boot/hdmi (Need to plug in-out)

Add a new file of hdmi_set_resolution.cfg, and write the resolution which you want in the file.

Then put it in this folder "/boot/hdmi" or the hdmi folder which is in your sdcard. (These 2 paths are the same)

There is a example in the attached file.

Media:hdmi_set_resolution.7z