- Posts: 17
- Thank you received: 0
screen blanking
9 months 4 weeks ago #340843
by mark-v-d
Replied by mark-v-d on topic screen blanking
There is some good information in there, thanks.
Please Log in to join the conversation.
9 months 4 weeks ago #340912
by mark-v-d
Replied by mark-v-d on topic screen blanking
I've added the following line to hal_input, and it get's me 90% of what I want.
diff --git a/src/hal/user_comps/hal_input.py b/src/hal/user_comps/hal_input.py
index 87c90e716d..3e0a720384 100644
--- a/src/hal/user_comps/hal_input.py
+++ b/src/hal/user_comps/hal_input.py
@@ -165,6 +165,7 @@ class HalInputDevice:
print("Unexpected event", ev.type, ev.code, file=sys.stderr)
continue
if ev.type == 'EV_KEY':
+ subprocess.call(["xdotool", "key", "Control_L"])
if ev.value:
self.set(code, 1)
self.set(code + "-not", 0)
diff --git a/src/hal/user_comps/hal_input.py b/src/hal/user_comps/hal_input.py
index 87c90e716d..3e0a720384 100644
--- a/src/hal/user_comps/hal_input.py
+++ b/src/hal/user_comps/hal_input.py
@@ -165,6 +165,7 @@ class HalInputDevice:
print("Unexpected event", ev.type, ev.code, file=sys.stderr)
continue
if ev.type == 'EV_KEY':
+ subprocess.call(["xdotool", "key", "Control_L"])
if ev.value:
self.set(code, 1)
self.set(code + "-not", 0)
Please Log in to join the conversation.
Time to create page: 0.221 seconds
