Skip to content

Commit cabbf26

Browse files
committed
disable keyboard wakeups on the claw
1 parent a428050 commit cabbf26

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hhd/device/claw/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ def open(
4646
self.context = context
4747
self.prev = None
4848

49+
# FIXME: move this somewhere else
50+
try:
51+
with open("/sys/bus/serio/devices/serio0/power/wakeup", "w") as f:
52+
f.write("disabled")
53+
logger.warning("Disabling keyboard wakeups so volume button does not wake device.")
54+
except Exception as e:
55+
logger.error(f"Failed to disable keyboard wakeup wakeup: {e}")
56+
4957
def settings(self) -> HHDSettings:
5058
base = {"controllers": {"claw": load_relative_yaml("controllers.yml")}}
5159
base["controllers"]["claw"]["children"]["controller_mode"].update(

0 commit comments

Comments
 (0)