这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Biswa96
Copy link
Member

@Biswa96 Biswa96 commented Sep 14, 2024

Fixes #595

@Rudxain
Copy link

Rudxain commented Sep 15, 2024

/data/data/com.termux/files/usr/libexec/termux-api-broadcast DisplayInfo

My stdout:

[
  {
    "Name": "Built-in Screen",
    "DisplayId": 0,
    "AppVsyncOffset": 0,
    "PresentationDeadline": 17666667,
    "RefreshRate": 60.0,
    "Rotation": 0,
    "SupportedModes": [
      {
        "ModeId": 1,
        "PhysicalHeight": 2400,
        "PhysicalWidth": 1080,
        "RefreshRate": 60.0
      }
    ],
    "HdrCapabilities": {
      "DesiredMaxAverageLuminance": 500.0,
      "DesiredMaxLuminance": 500.0,
      "DesiredMinLuminance": 0.0
    },
    "DisplayMetrics": {
      "Density": 3.375,
      "DensityDPI": 540,
      "HeightPixels": 2321,
      "ScaledDensity": 3.375,
      "WidthPixels": 1080,
      "xDPI": 409.4320068359375,
      "yDPI": 411.8909912109375
    }
  }
]

@Biswa96 Biswa96 closed this by deleting the head repository Mar 15, 2025
@Biswa96
Copy link
Member Author

Biswa96 commented Mar 15, 2025

I accidentally closed this PR. Please feel free to copy the patch file.

@agnostic-apollo
Copy link
Member

Okay will look into it, but for next release, not current one, this requires spending time on correct api design for output. This was on my todo list, but no time now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DisplayAPI

3 participants