Skip to content

Commit 767d18b

Browse files
committed
add log when changing standby state
1 parent 17ee987 commit 767d18b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hhd/plugins/overlay/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def standby_transition(state: str):
6565
return
6666

6767
with open("/sys/power/standby", "w") as f:
68+
logger.info(f"Setting standby state to '{state}'.")
6869
f.write(state)
6970
except Exception as e:
7071
logger.error(f"Failed to set standby state to {state}:\n{e}")
@@ -214,7 +215,7 @@ def loop_manage_overlay(
214215
s = wake_handler()
215216
if s == "entry":
216217
set_dpms(disp, True)
217-
standby_transition("screen_off")
218+
standby_transition("sleep")
218219
dpms_time = start
219220
logger.info("Enabling gamescope DPMS.")
220221
wake_handler.inhibit(False)

0 commit comments

Comments
 (0)