Skip to content

Commit da84a6d

Browse files
author
mofeng-git
committed
feat: 为 Onecloud Pro、Octopus-Planet 添加 DRM 设备支持(HDMI 环出模拟)
1 parent 9c35c68 commit da84a6d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build/functions/devices.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ config_octopus_flanet_files() {
331331
download_file_if_missing "$config_file" || echo "警告:下载 Octopus-Planet 配置文件失败"
332332

333333
sudo cp "$config_file" "$ROOTFS/etc/model_database.conf" || echo "警告:复制 model_database.conf 失败"
334+
335+
echo "信息:为 Octopus-Planet 添加 DRM 设备支持..."
336+
run_in_chroot "sed -i \"/--device=\\/dev\\/video0/a\\ - \\\"--drm-device=/dev/dri/card0\\\"\" /etc/kvmd/override.yaml"
334337
}
335338

336339
config_orangepi_zero_files() {
@@ -344,13 +347,14 @@ config_orangepi_zero_files() {
344347

345348
config_onecloud_pro_files() {
346349
echo "信息:配置 Onecloud Pro 特定文件..."
347-
echo "信息:Onecloud Pro 特定配置完成。"
350+
351+
echo "信息:为 Onecloud Pro 添加 DRM 设备支持..."
352+
run_in_chroot "sed -i \"/--device=\\/dev\\/video0/a\\ - \\\"--drm-device=/dev/dri/card0\\\"\" /etc/kvmd/override.yaml"
348353
}
349354

350355
config_onecloud_files() {
351356
echo "信息:配置 Onecloud 特定文件..."
352357

353-
# 在 ustreamer 命令中添加 DRM 设备配置
354358
echo "信息:为 Onecloud 添加 DRM 设备支持..."
355359
run_in_chroot "sed -i \"/--device=\\/dev\\/video0/a\\ - \\\"--drm-device=/dev/dri/card1\\\"\" /etc/kvmd/override.yaml"
356360

0 commit comments

Comments
 (0)