Incorrect display size for non-apple external monitors on macOS
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp, macos
调研方向
首先,跟踪 libpointing 在 macOS 上对显示器尺寸的处理,并将 CGDisplayScreenSize 与链接 gist 中所示的 EDID 解析进行比较。在报告中的 HP Compaq LA2205wg 显示器上验证其行为;完成的标准是:在保留现有显示器处理方式的同时,为非 Apple 外接显示器返回正确的物理尺寸。
由索引模型根据 Issue 内容生成。
描述
The display physical size returned by libpointing is incorrect on my external monitors (HP Compaq LA2205wg).
The problem seems to be coming from the native function "CGDisplayScreenSize", from the documentation :
"If Extended Display Identification Data (EDID) for the display device is not available, the size is estimated based on the device width and height in pixels from CGDisplayBounds, with an assumed resolution of 2.835 pixels/mm or 72 dpi, a reasonable guess for displays predating EDID support."
It seems to be what is happening because I obtain a DPI of 72 (instead of 86), but it should not be the case because my monitors have an EDID.
And I am able to retrieve the correct physical size by directly parsing the EDID of my monitors.
I wrote this code to compare the result obtained by parsing the EDID vs CGDisplayScreenSize :
https://gist.github.com/m-damien/75617b3eba1b125aac1be4af7444acad
I am on macOS Sierra.
The value returned by Qt using QScreen#logicalDotsPerInch is also incorrect.
- 主要语言
- C++
- 星标
- 54
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
INRIA/libpointing 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 42/100
INRIA/libpointing#40 ·
-
难度 5/5 一周以上 新手友好度 20/100
INRIA/libpointing#37 ·
-
难度 3/5 1-2 天 新手友好度 38/100
INRIA/libpointing#26 ·
-
难度 4/5 3-5 天 新手友好度 28/100
INRIA/libpointing#17 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 20/100
INRIA/libpointing#10 ·
查看 INRIA/libpointing 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
FriendsofECCE/ECCE#336 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
bitcoin-core/gui-qml#1030 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
tesseract-robotics/tesseract#1384 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
NVIDIA/nccl-extensions#26 ·