android debug issue: display

1.先用modetest –c确定omapdrm是否正常load了这个只是检查kernel部分display是否正常初始化
2.如果1是有的那么看android 有没有找到display在adb里面dumpsys SurfaceFlinger如果显示类似如下信息,说明有了,不然的几没有
h/w composer state:
h/w composer present and enabled
Hardware Composer state (version 1020000):
mDebugForceFakeVSync=0
Display[0] : 720x1280, xdpi=338.665985, ydpi=342.230988, refresh=17241379
numHwLayers=3, flags=00000000
type | handle | hints | flags | tr | blend | format | source crop | frame name
------------+----------+----------+----------+----+-------+----------+---------------------------+--------------------------------
HWC | 65ee32a0 | 00000000 | 00000000 | 04 | 00100 | 7fa00e00 | [ 0, 0, 1280, 720] | [ 0, 0, 720, 1280] SurfaceView
HWC | 65633910 | 00000000 | 00000000 | 00 | 00105 | 00000005 | [ 0, 0, 720, 1280] | [ 0, 0, 720, 1280] com.android.gallery3d/com.android.gallery3d.app.MovieActivity
FB TARGET | 5e95a580 | 00000000 | 00000000 | 00 | 00105 | 00000005 | [ 0, 0, 720, 1280] | [ 0, 0, 720, 1280] HWC_FRAMEBUFFER_TARGET
-------------Display Stat --------------

3.如果android部分没有检测到display用下面的command让HDMI作为primary display。看看是不是HDMI哈。
HDMI
HDMI only setup
By default dual display is supported in this release, but to bring up a HDMI only setup,
• Non lcd dtb for the EVM should be used (Ex: For J6 EVM, use dra7-evm.dtb)
• you need to set two additional properties
• ro.hwc.primary.conn
• ro.hwc.external.conn
Use below commands to set the property and reboot the EVM.
adb root
adb remount
adb shell 'echo "ro.hwc.primary.conn=HDMI" >> /system/build.prop'
adb shell 'echo "ro.hwc.external.conn=dummy" >> /system/build.prop'

猜你喜欢

转载自www.cnblogs.com/widic/p/9894513.html