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'

  • 相关阅读:
    List 与 Array 的相互转化及 List、Array、Set转为 String
    Java 序列化介绍及 Redis 序列化方式
    SpringBoot 整合 redis 实现 token 验证
    SpringBoot 整合 Redis 使用
    Map 某 value 为 对象数组,转为 ArrayList 对象集合
    JWT 基本使用
    Spring session + redis 实现 session共享入门
    HttpServletRequest + Filter 添加 header
    Git ahead(超前) 又behind(落后)
    web应用中路径跳转问题-相对路径、绝对路径
  • 原文地址:https://www.cnblogs.com/widic/p/9894513.html
Copyright © 2011-2022 走看看