1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-12-22 18:48:48 +00:00
pinephone-sway-poc/usr/local/bin/swayphone_power_sleep

11 lines
169 B
Bash
Executable File

#!/bin/bash
pptk-led set red 1
pptk-cpu-sleep enable
# save current backlight for wakeup
pptk-backlight get > ~/.backlight
# shut down backlight
pptk-backlight set 0