Add service to restart Weston on suspend
- Add a service linked by systemd's suspend target that restarts the
Weston service on resume.
Change-Id: I1eeed29eb51156f803ee2f2c375f9ad2d12cb259
diff --git a/debian/changelog b/debian/changelog
index 2439bf3..d7766ac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+weston-mtk (5.0.0-3+mtku1) mendel-eagle; urgency=medium
+
+ * Add restart service.
+
+ -- Coral Team <coral-support@google.com> Mon, 19 Oct 2020 14:10:28 -0700
+
weston-mtk (5.0.0-3+mtk) mendel-day; urgency=medium
* Update to 5.0.0-3 for Day release
diff --git a/debian/lib/systemd/system/weston-restart.service b/debian/lib/systemd/system/weston-restart.service
new file mode 100644
index 0000000..a98b7f3
--- /dev/null
+++ b/debian/lib/systemd/system/weston-restart.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Restart Weston after resume
+After=suspend.target
+
+[Service]
+Type=simple
+ExecStart=/etc/udev/scripts/hdmi_hotplug.sh
+
+[Install]
+WantedBy=suspend.target