From 2c2966e4ef2b80e0e1e94c45b90d609488b2ccc2 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 10 Jan 2017 18:36:36 +0100 Subject: lxdm bbappend: kill lxsession explicetely with sigkill on poweroff Signed-off-by: Max Krummenacher Acked-by: Stefan Agner --- ...e-kill-lxsession-explicitely-with-sigkill.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 recipes-lxde/lxdm/lxdm/0001-lxdm.service-kill-lxsession-explicitely-with-sigkill.patch (limited to 'recipes-lxde/lxdm/lxdm/0001-lxdm.service-kill-lxsession-explicitely-with-sigkill.patch') diff --git a/recipes-lxde/lxdm/lxdm/0001-lxdm.service-kill-lxsession-explicitely-with-sigkill.patch b/recipes-lxde/lxdm/lxdm/0001-lxdm.service-kill-lxsession-explicitely-with-sigkill.patch new file mode 100644 index 0000000..a0c7f21 --- /dev/null +++ b/recipes-lxde/lxdm/lxdm/0001-lxdm.service-kill-lxsession-explicitely-with-sigkill.patch @@ -0,0 +1,39 @@ +From 597507f6a6a05140d01db9fa16351ac158674960 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Tue, 10 Jan 2017 18:15:18 +0100 +Subject: [PATCH] lxdm.service: kill lxsession explicitely with sigkill + +When shuting down on a Colibri iMX6 we often see that the shutdown gets +delayed with: + +[ OK ] Removed slice system-serial\x2dgetty.slice. +[ **] A stop job is running for Session c1 of user root (8s / 1min 30s) + +When one examines this one or several process of lxdm/lxde are still running. +After the timeout runs out the process(es) get killed with SIGKILL, often +triggering + +[ 77.886935] [drm:drm_legacy_unlock] *ERROR* Process 536 using kernel context 0 + +Killing lxsession seems to cure the issue. + +Signed-off-by: Max Krummenacher +--- + systemd/lxdm.service | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/systemd/lxdm.service b/systemd/lxdm.service +index bf4a0a8..a116f9d 100644 +--- a/systemd/lxdm.service ++++ b/systemd/lxdm.service +@@ -5,6 +5,7 @@ After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service + + [Service] + ExecStart=/usr/sbin/lxdm ++ExecStop=/usr/bin/killall -9 lxsession + Restart=always + IgnoreSIGPIPE=no + +-- +2.5.5 + -- cgit v1.2.3