1. 程式人生 > >樹莓派hdmi配置引數

樹莓派hdmi配置引數

hdmi_cvt=<width> <height> <framerate> <aspect> <margins> <interlace> <rb>
width        width in pixels
height       height in pixels
framerate    framerate in Hz
aspect       aspect ratio 1=4:3, 2=14:9, 3=16:9, 4=5:4, 5=16:10, 6=15:9
margins      0=margins disabled, 1=margins enabled


interlace    0=progressive, 1=interlaced
rb           0=normal, 1=reduced blanking

tvservice -m DMT

hdmi_group=2
hdmi_mode=87
to make the custom mode the default.

Please note. There is no guarantee your display will support the resolution/framerate produced by this. 
But if you are currently running a monitor at a non native resolution, then this may be worth a try.

The hdmi_timings parameters are:

hdmi_timings=<h_active_pixels> <h_sync_polarity <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>


在配置1440×2560的螢幕時本以為樹莓派只支援橫屏的,所以設定完hdmi_cvt=2560 1440 50 後再利用display_rotate=1;

其實不然,直接hdmi_cvt=1440 2560 50即可不用再反轉

另外由於顯示模式是使用者自定義所以設定hdmi_group=2  hdmi_mode=87