DisplayServer (Linux): support --ds-force-drm sysfs-only

This commit is contained in:
李通洲
2023-12-11 13:25:58 +08:00
parent f20b6d4387
commit a28dc8a9bf
7 changed files with 81 additions and 13 deletions
+18 -3
View File
@@ -251,9 +251,24 @@
"description": "Set the path to the file containing OS information. Linux only"
},
"dsForceDrm": {
"type": "boolean",
"description": "Force display detection to use `/sys/class/drm`. Linux only",
"default": false
"description": "Force display detection to use DRM. Linux only",
"oneOf": [
{
"type": "bool",
"const": false,
"description": "Try `libdrm` first, then `sysfs` if libdrm failed"
},
{
"type": "string",
"description": "Use `/sys/class/drm` only.",
"const": "sysfs-only"
},
{
"type": "bool",
"const": true,
"description": "Don't force using DRM"
}
]
},
"wmiTimeout": {
"type": "integer",