From 0cd758ccdca605c9ff28e2f925b47d67c8ec7942 Mon Sep 17 00:00:00 2001 From: Arulpandiyan Vadivel Date: Fri, 7 Jul 2023 18:51:45 +0530 Subject: [PATCH] lightdm-fb: add hotplug support for display port Add hotplug support for display port. Add lightdm-fb package to lxde.yml by default Fixes: https://github.com/siemens/meta-iot2050/issues/463 Signed-off-by: Arulpandiyan Vadivel --- kas/opt/lxde.yml | 2 +- recipes-core/lightdm-fb/files/postinst | 12 ++++++++++++ recipes-core/lightdm-fb/lightdm-fb_0.1.bb | 14 ++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 recipes-core/lightdm-fb/files/postinst create mode 100644 recipes-core/lightdm-fb/lightdm-fb_0.1.bb diff --git a/kas/opt/lxde.yml b/kas/opt/lxde.yml index cf0e35866..8cbd87c69 100644 --- a/kas/opt/lxde.yml +++ b/kas/opt/lxde.yml @@ -13,4 +13,4 @@ header: local_conf_header: add-lxde: | - IMAGE_INSTALL += "lxde-touch" + IMAGE_INSTALL += "lxde-touch lightdm-fb" diff --git a/recipes-core/lightdm-fb/files/postinst b/recipes-core/lightdm-fb/files/postinst new file mode 100644 index 000000000..9bbe05860 --- /dev/null +++ b/recipes-core/lightdm-fb/files/postinst @@ -0,0 +1,12 @@ +# +# Copyright (c) Siemens AG, 2023 +# +# This file is subject to the terms and conditions of the MIT License. See +# COPYING.MIT file in the top-level directory. +# + +# Add support for hotplug of Display Port +sed -i 's/LABEL="systemd_end"/SUBSYSTEM=="graphics", KERNEL=="fb0", SYMLINK="fb0", TAG+="systemd"\nLABEL="systemd_end"/g' /lib/udev/rules.d/99-systemd.rules + +sed -i '/plymouth/d' /lib/systemd/system/lightdm.service +sed -i '/Service/i Conflicts=getty@tty1.service getty@tty7.service\nAfter=getty@tty1.service getty@tty7.service\nBindsTo=dev-fb0.device\nAfter=dev-fb0.device\n' /lib/systemd/system/lightdm.service diff --git a/recipes-core/lightdm-fb/lightdm-fb_0.1.bb b/recipes-core/lightdm-fb/lightdm-fb_0.1.bb new file mode 100644 index 000000000..d06cc0bf7 --- /dev/null +++ b/recipes-core/lightdm-fb/lightdm-fb_0.1.bb @@ -0,0 +1,14 @@ +# +# Copyright (c) Siemens AG, 2023 +# +# This file is subject to the terms and conditions of the MIT License. See +# COPYING.MIT file in the top-level directory. +# + +inherit dpkg-raw + +DESCRIPTION = "Add hotplug Display Port support for Light Desktop Manager" + +DEBIAN_DEPENDS = "lightdm,systemd" + +SRC_URI = "file://postinst"