Skip to content

鸿蒙6.0获取分辨率后的输出有变化,用这个指令查分辨率的时候需要注意改动 #15

@x1Nge

Description

@x1Nge

powerstatus- > powerStatus
render size: -> render resolution=

鸿蒙6.0
➜ ~ hdc shell hidumper -s RenderService -a screen

-------------------------------[ability]-------------------------------

----------------------------------RenderService----------------------------------
-- ScreenInfo
screen[0]: id=0, powerStatus=POWER_STATUS_ON, backlight=18298, screenType=EXTERNAL_TYPE, render resolution=1260x2720, physical resolution=1260x2720, isVirtual=false, skipFrameInterval=1, expectedRefreshRate=-1, skipFrameStrategy=0
supportedMode[0]: 1260x2720, refreshRate=120
supportedMode[1]: 1260x2720, refreshRate=90
supportedMode[2]: 1260x2720, refreshRate=60
supportedMode[3]: 1260x2720, refreshRate=30
activeMode: 1260x2720, refreshRate=60
name=, phyWidth=72, phyHeight=156, supportLayers=12, virtualDispCount=0, propertyCount=0, type=DISP_INTF_HDMI, supportWriteBack=false
isSamplingOn=0, samplingScale=1.00, samplingTranslateX=0.00, samplingTranslateY=0.00
enableVisibleRect=0, mainScreenVisibleRect_=[0,0,0,0]

原输出

$ hdc shell hidumper -s RenderService -a screen

-------------------------------[ability]-------------------------------

----------------------------------RenderService---------------------------------
-- ScreenInfo
screen[0]: id=0, powerstatus=POWER_STATUS_OFF, backlight=51, screenType=EXTERNAL_TYPE, render size: 1260x2720, physical screen resolution: 1260x2720, isvirtual=false, skipFrameInterval_:1

supportedMode[0]: 1260x2720, refreshrate=120
supportedMode[1]: 1260x2720, refreshrate=90
supportedMode[2]: 1260x2720, refreshrate=60
supportedMode[3]: 1260x2720, refreshrate=30
activeMode: 1260x2720, refreshrate=60
capability: name=, phywidth=72, phyheight=156,supportlayers=12, virtualDispCount=0, propCount=0, type=DISP_INTF_HDMI, supportWriteBack=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions