[gnome-build-meta/valentindavid/pinebook-pro: 20/21] Disable suspend
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/pinebook-pro: 20/21] Disable suspend
- Date: Sun, 3 May 2020 20:08:54 +0000 (UTC)
commit 3dd5c53068184bf82a0b2eb2c3a5a4761d954fc9
Author: Valentin David <valentin david codethink co uk>
Date: Thu Apr 23 17:44:06 2020 +0000
Disable suspend
elements/boards/pinebook-pro/deps.bst | 1 +
elements/boards/pinebook-pro/disable-suspend.bst | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
---
diff --git a/elements/boards/pinebook-pro/deps.bst b/elements/boards/pinebook-pro/deps.bst
index 18230cf2..15d474d9 100644
--- a/elements/boards/pinebook-pro/deps.bst
+++ b/elements/boards/pinebook-pro/deps.bst
@@ -41,3 +41,4 @@ runtime-depends:
- vm/wpa-supplicant-config.bst
- boards/pinebook-pro/alsa-utils.bst
+- boards/pinebook-pro/disable-suspend.bst
diff --git a/elements/boards/pinebook-pro/disable-suspend.bst
b/elements/boards/pinebook-pro/disable-suspend.bst
new file mode 100644
index 00000000..b6f12ecd
--- /dev/null
+++ b/elements/boards/pinebook-pro/disable-suspend.bst
@@ -0,0 +1,19 @@
+kind: manual
+
+build-depends:
+- freedesktop-sdk.bst:components/pkg-config.bst
+- freedesktop-sdk.bst:components/systemd.bst
+
+config:
+ build-commands:
+ - |
+ cat <<EOF >disable-suspend.conf
+ # Suspend does not yet work on Pinebook Pro
+ [Sleep]
+ AllowSuspend=no
+ EOF
+
+ install-commands:
+ - |
+ systemdutildir="$(pkg-config --variable systemdutildir systemd)"
+ install -Dm644 -t "%{install-root}${systemdutildir}/sleep.conf.d" disable-suspend.conf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]