Skip to content

Commit

Permalink
lightdm-fb: add hotplug support for display port
Browse files Browse the repository at this point in the history
Add hotplug support for display port.
Add lightdm-fb package to lxde.yml by default

Fixes: siemens#463

Signed-off-by: Arulpandiyan Vadivel <[email protected]>
  • Loading branch information
arulcse2008 committed Jul 7, 2023
1 parent 14d3c6b commit 0cd758c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kas/opt/lxde.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ header:

local_conf_header:
add-lxde: |
IMAGE_INSTALL += "lxde-touch"
IMAGE_INSTALL += "lxde-touch lightdm-fb"
12 changes: 12 additions & 0 deletions recipes-core/lightdm-fb/files/postinst
Original file line number Diff line number Diff line change
@@ -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 [email protected] [email protected]\[email protected] [email protected]\nBindsTo=dev-fb0.device\nAfter=dev-fb0.device\n' /lib/systemd/system/lightdm.service
14 changes: 14 additions & 0 deletions recipes-core/lightdm-fb/lightdm-fb_0.1.bb
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0cd758c

Please sign in to comment.