Skip to content

Commit 8aeeed0

Browse files
stefanpricopieuser
authored andcommitted
Add TTY switching support for Chromebook keyboards
Enable Ctrl+Alt+F1-F8 TTY switching for both keyboard modes: - Inverted mode: F-keys map directly to TTY switches - Non-inverted mode: Chrome keys (back/forward/refresh/etc) map to TTY switches This allows proper virtual console access on Chromebooks running Linux, which is essential for troubleshooting, recovery, and server management.
1 parent 7f7bfe5 commit 8aeeed0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

cros-keyboard-map.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,24 @@ def get_keyd_config(physmap, inverted):
157157
158158
[control+alt]
159159
backspace = C-A-delete
160+
# TTY switching for inverted mode (F-keys by default)
161+
f1 = C-A-f1
162+
f2 = C-A-f2
163+
f3 = C-A-f3
164+
f4 = C-A-f4
165+
f5 = C-A-f5
166+
f6 = C-A-f6
167+
f7 = C-A-f7
168+
f8 = C-A-f8
169+
# TTY switching for non-inverted mode (Chrome keys by default)
170+
back = C-A-f1
171+
forward = C-A-f2
172+
refresh = C-A-f3
173+
zoom = C-A-f4
174+
scale = C-A-f5
175+
brightnessdown = C-A-f6
176+
brightnessup = C-A-f7
177+
mute = C-A-f8
160178
"""
161179
return config
162180

0 commit comments

Comments
 (0)