From 036d70a50505e48481debba608c487e65236452d Mon Sep 17 00:00:00 2001 From: j1nx Date: Sun, 17 May 2020 20:09:09 +0200 Subject: [PATCH] MycroftOS: GUI: Make sure the splash starts after DRM --- .../package/mycroft-splash/mycroft-splash-start.service | 4 ++-- .../rootfs-overlay/usr/lib/udev/rules.d/60-drm.rules | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 buildroot-external/rootfs-overlay/usr/lib/udev/rules.d/60-drm.rules diff --git a/buildroot-external/package/mycroft-splash/mycroft-splash-start.service b/buildroot-external/package/mycroft-splash/mycroft-splash-start.service index c2a4c9c9..ba7e4005 100644 --- a/buildroot-external/package/mycroft-splash/mycroft-splash-start.service +++ b/buildroot-external/package/mycroft-splash/mycroft-splash-start.service @@ -1,7 +1,7 @@ [Unit] Description=Starts Mycroft splash boot screen -Wants=systemd-vconsole-setup.service -After=systemd-vconsole-setup.service systemd-udev-trigger.service systemd-udevd.service +Wants=dev-dri-card0.device +After=dev-dri-card0.device DefaultDependencies=no [Service] diff --git a/buildroot-external/rootfs-overlay/usr/lib/udev/rules.d/60-drm.rules b/buildroot-external/rootfs-overlay/usr/lib/udev/rules.d/60-drm.rules new file mode 100644 index 00000000..63055cda --- /dev/null +++ b/buildroot-external/rootfs-overlay/usr/lib/udev/rules.d/60-drm.rules @@ -0,0 +1,9 @@ +# do not edit this file, it will be overwritten on update + +ACTION!="remove", SUBSYSTEM=="drm", SUBSYSTEMS=="pci|usb|platform", IMPORT{builtin}="path_id" + +# by-path +ENV{ID_PATH}=="?*", KERNEL=="card*", SYMLINK+="dri/by-path/$env{ID_PATH}-card" TAG+="systemd" +ENV{ID_PATH}=="?*", KERNEL=="controlD*", SYMLINK+="dri/by-path/$env{ID_PATH}-control" +ENV{ID_PATH}=="?*", KERNEL=="renderD*", SYMLINK+="dri/by-path/$env{ID_PATH}-render" +