We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9e9390 + 149dfbc commit ba08591Copy full SHA for ba08591
spruce/scripts/platform/device_functions/Pixel2.sh
@@ -201,6 +201,8 @@ map_mainui_volume_to_system_value() {
201
WAKE_ALARM_PATH="/sys/class/rtc/rtc0/wakealarm"
202
203
device_enter_sleep() {
204
+ turn_off_screen
205
+
206
IDLE_TIMEOUT="$1"
207
log_message "Entering sleep w/ IDLE_TIMEOUT of $IDLE_TIMEOUT"
208
@@ -210,6 +212,7 @@ device_enter_sleep() {
210
212
}
211
213
214
device_exit_sleep() {
215
+ turn_on_screen
216
echo 0 >"$WAKE_ALARM_PATH" 2>/dev/null
217
218
@@ -347,4 +350,4 @@ set_default_ra_hotkeys() {
347
350
"input_toggle_slowmotion_axis = \"+4\"" \
348
351
"input_toggle_fast_forward_axis = \"+5\""
349
352
-}
353
+}
0 commit comments