distribution/packages/hardware/quirks/platforms/S922X/030-suspend_mode

19 lines
424 B
Text
Raw Normal View History

#!/bin/sh
2023-06-30 12:38:54 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
2023-06-30 12:38:54 +00:00
### Sleep is currently broken, so we'll disable it.
cat <<EOF >/storage/.config/sleep.conf.d/sleep.conf
[Sleep]
AllowSuspend=no
SuspendState=freeze
EOF
2023-08-09 20:10:55 +00:00
### Ignore power button presses for now, until we can finish up fixing sleep.
cat <<EOF >~/.config/logind.conf.d/login.conf
[Login]
HandlePowerKey=ignore
HandleSuspendKey=ignore
EOF