android display debug summary

  1. please ensure the kernel initial ok. modetest -c can find device.
    for some issue, hdmi need check IO, please remove the IO in dtb and code.

  2. if kernel can find devices,but android cannot (dumpsys SurfaceFlinger )
    Please run below commands:

adb root
adb remount
adb shell 'echo "ro.hwc.primary.conn=Unknown" >> /system/build.prop'
adb shell sync
adb reboot
  1. for some reason, hwc composite by DSS ,it's unstable.
 Display[0] configurations (* current):
    * 0: 1280x800, xdpi=150.000000, ydpi=150.000000, refresh=16666666, colorMode=0
  numHwLayers=4, flags=00000000
    type   |  handle  | hint | flag | tr | blnd |   format    |     source crop (l,t,r,b)      |          frame         | name 
-----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
       HWC | add24160 | 0000 | 0000 | 00 | 0100 | RGBA_8888   |      0,      0,   1148,    638 |   30,   30, 1178,  668 | SurfaceView - android.car.cluster.sample/android.car.cluster.sample.MainClusterActivity#0
       HWC | add243a0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |      0,      0,   1208,    800 |    0,    0, 1208,  800 | android.car.cluster.sample/android.car.cluster.sample.MainClusterActivity#0
       HWC | add24820 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |      0,      0,     72,    800 | 1208,    0, 1280,  800 | CarNavigationBar#0
FB TARGET | add23080 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |      0,      0,   1280,    800 |    0,    0, 1280,  800 | HWC_FRAMEBUFFER_TARGET
  Display[1] configurations (* current):
    * 0: 1280x720, xdpi=75.000000, ydpi=75.000000, refresh=16666666, colorMode=0
  numHwLayers=4, flags=00000000
    type   |  handle  | hint | flag | tr | blnd |   format    |     source crop (l,t,r,b)      |          frame         | name 
-----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
      GLES | add24160 | 0000 | 0000 | 00 | 0100 | RGBA_8888   |      0,      0,   1148,    638 |   91,   27, 1124,  601 | SurfaceView - android.car.cluster.sample/android.car.cluster.sample.MainClusterActivity#0
      GLES | add243a0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |      0,      0,   1208,    800 |   64,    0, 1151,  720 | android.car.cluster.sample/android.car.cluster.sample.MainClusterActivity#0
      GLES | add24820 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |      0,      0,     72,    800 | 1151,    0, 1216,  720 | CarNavigationBar#0
FB TARGET | add239e0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |      0,      0,   1280,    720 |    0,    0, 1280,  720 | HWC_FRAMEBUFFER_TARGET
Allocated buffers:

set GLES use below commands.

setprop persist.hwc.dss.comp 0

posted @ 2018-11-15 10:32  夏海风  阅读(268)  评论(0编辑  收藏  举报