|
发表于 2014-7-16 12:11:46
|
显示全部楼层
本帖最后由 yanggis 于 2014-7-16 12:22 编辑
f839903061 发表于 2014-7-16 10:50
screen0_output_mode = 0 先别选择0,选择一个比较常规的分辨率比如1024*768
只修改到第二步,然后 ...
您好,感谢您的回复,向您汇报一下修改过程,修改的文件应该在这个目录下:
/lichee/tools/pack/chips/sun7i/configs/android/sugar-cubietruck
名字是sys_config.fex,对吧?
只先修改这两行:
screen0_output_type = 4
screen0_output_mode = 4 -->1024*768
2. 修改另外一个文件,在这个目录下:
/android/frameworks/base/services/java/com/android/server
添加红色内容:
if (hdmiIsConnected && DispList.isHDMI(curFormat)) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_HDMI;
finalFormat = curFormat;
} else if (cvbsIsConnected && DispList.isCVBS(curFormat)) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_CVBS;
finalFormat = curFormat;
} else if (mDeviceHasYpbpr && ypbprIsConnected && DispList.isYPbPr(curFormat)) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_YPBPR;
finalFormat = curFormat;
} else if (!mDeviceHasYpbpr && ypbprIsConnected && DispList.isVGA(curFormat)) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_VGA;
finalFormat = DispList.VGA_DEFAULT_FORMAT;
} else if (hdmiIsConnected) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_HDMI;
finalFormat = DispList.HDMI_DEFAULT_FORMAT;
} else if (cvbsIsConnected) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_CVBS;
finalFormat = DispList.CVBS_DEFAULT_FORMAT;
} else if (mDeviceHasYpbpr && ypbprIsConnected) {
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_YPBPR;
finalFormat = DispList.YPBPR_DEFAULT_FORMAT;
} else if (!mDeviceHasYpbpr && ypbprIsConnected){
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_VGA;
finalFormat = DispList.VGA_DEFAULT_FORMAT;
} else if (DispList.isVGA(curFormat)){
finalIntType = DispList.ADVANCED_DISPLAY_TYPE_VGA;
finalFormat = DispList.VGA_DEFAULT_FORMAT;
}
else {
finalIntType = savedIntType;
finalFormat = savedFormat;
}
是只修改这些吧?我在编译,编译完了来汇报结果。
|
|