CubieTruck LUBUNTU、Debian等系统修改默认输出为HDMI/VGA

本文以CubieTruck 上的NAND Debian8 默认由HDMI改为VGA为例

cp /boot/script.bin ./
bin2fex script.bin script.fex
nano script.fex

按照http://linux-sunxi.org/Fex_Guide#FEX_Description,搜索disp_init

以下是给出的默认VGA输出配置,实际上只要修改

screen0_output_type = 4
screen0_output_mode = 4

这两行即可

[disp_init]
disp_init_enable = 1
disp_mode = 0
 
screen0_output_type = 4
screen0_output_mode = 4
 
screen1_output_type = 2
screen1_output_mode = 14
 
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 1
 
fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 1

改完之后保存script.fex,并转换为script.bin,并且替换

fex2bin script.fex script_new.bin
rm -rf /boot/script.bin && cp script_new.bin /boot/script.bin

reboot重启即可

上一篇
下一篇