Add sysctls to allow enable/disable some keyboard combinations.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
What are these key combinations? Does it have something to do with Ctrl+Alt+Esc in syscons to break into ddb?
What are these key combinations?
Yes, the key map converts a few combinations into halt / reboot / debugger etc. "keys" -- see halt/pdwn/debug/susp/saver/panic in kbdmap(5)
See inline comments.
Also, where are those key combinations documented? Are they configurable? If not, it may be helpful to have them in the sysctl description.
sys/dev/vt/vt_core.c | ||
---|---|---|
531 | I know that syscons used the same call, but you may use the RB_AUTOBOOT flag instead of 0. |
They are configurable by a keymap, meaning we'd need something like
"Enable key combination to enter debugger (typically Ctrl-Alt-Esc)"
(or "by default" etc.)
Yeah, I think that this description helps. For instance, I don't know the combinations for reboot/halt/poweroff :) I thought Ctrl-Alt-Del was handled by init(8) but I may be wrong and simply confuse with Linux.
Regarding the text, I like your second suggestion, "... (by default, Ctrl-Alt-Esc)".
Lets look it from other point of view:
o Implement all special combinations that syscons(4) have.
o Point to kbdmap(5) for reference.
sys/dev/vt/vt_core.c | ||
---|---|---|
138 | Thanks, the description is way more helpful like this. Just a minor comment: I would move the "(typically ...)" brackets after the "See kbdmap(5)" but before the final ".": VT_SYSCTL_INT(kbd_reboot, 1, "Enable reboot keyboard combination. " "See kbdmap(5) to configure (typically Ctrl-Alt-Delete)."); And don't mix single-space and double-space after a ".". |
Committed as r271381.
Thank you guys!
sys/dev/vt/vt_core.c | ||
---|---|---|
138 | ok, get it. And fixed. |