gpt4 book ai didi

Linux 帧缓冲模式

转载 作者:太空狗 更新时间:2023-10-29 11:43:25 24 4
gpt4 key购买 nike

我目前正在研究嵌入式 Linux 帧缓冲区。我知道如何通过键入显示我的系统的可用分辨率:

cat /sys/class/graphics/fb0/modes

这给了我一个决议列表,例如:

U:720x576p-50
D:1920x1080p-50
D:1280x720p-50
D:1920x1080i-60
D:1920x1080i-50
U:1440x900p-60
S:1280x1024p-60
V:1024x768p-60
V:800x600p-60
V:640x480p-60
D:1280x720p-60
D:1920x1080p-60

我想知道每行的第一个字符是什么意思(S、U、V 或 D)。是否有列出所有可能字符的标准/文档?

最佳答案

来自 linux 内核 source函数 mode_string()

char m = 'U';
if (mode->flag & FB_MODE_IS_DETAILED)
m = 'D';
if (mode->flag & FB_MODE_IS_VESA)
m = 'V';
if (mode->flag & FB_MODE_IS_STANDARD)
m = 'S';

所以它是 U 未知,D 详细,V vesa,S 标准。

关于Linux 帧缓冲模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31851651/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com