zoukankan      html  css  js  c++  java
  • 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'

  • 相关阅读:
    手机端阻止页面滑动-模板
    window.location各个属性-笔记
    面向对象的编程思想
    异步执行原理
    移动端rem布局实现(vw)
    用css3实现摩天轮旋转的动画效果
    js如何从一个数组中随机取出n个不同且不重复的值
    js数组中如何去除重复值?
    各大主流流浪器的内核是什么?
    javascript数组常用方法
  • 原文地址:https://www.cnblogs.com/widic/p/9894513.html
Copyright © 2011-2022 走看看