1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-11-22 14:02:35 +00:00
pinephone-sway-poc/usr/local/bin/swayphone_power_sleep

11 lines
169 B
Plaintext
Raw Normal View History

#!/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