Skip to content

Commit

Permalink
Disable suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed May 4, 2020
1 parent 2a67794 commit 307fc37
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions elements/boards/pinebook-pro/deps.bst
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ runtime-depends:

- vm/wpa-supplicant-config.bst
- boards/pinebook-pro/alsa-utils.bst
- boards/pinebook-pro/disable-suspend.bst
19 changes: 19 additions & 0 deletions elements/boards/pinebook-pro/disable-suspend.bst
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 307fc37

Please sign in to comment.