-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Magic SysRq key #1703
Add Magic SysRq key #1703
Conversation
Progress update: 2023-12-13@mtlynch - I have a POC working for pressing Alt + SysRq + H via the on-screen keyboard: Screen.Recording.2023-12-12.at.17.30.44.movHowever, I'd like the flag that the approach I'm taking is creating a lot of churn because
Known issues so far
Proposed next steps
|
Yeah, this is looking like a pretty risky change for what we're trying to accomplish. Can we do this:
Also, I'm still confused. Was this a true regression or did this functionality never work? If this functionality worked at one point, how did we do that without the broader changes that we're using now? |
Sure, I'll update the issue thread with what I know.
Looking at the code, I can't see how SysRq combination keys ever worked. However, I do believe that the PrintScreen key on its own did work. The PR that resolved the original issue was only a frontend change and the backend never wrote more than a single keycode byte to the HID: Line 44 in 4587f98
Disclaimer: I did not try resurrect the historic build to a device. |
Related #1167 This PR fixes a minor bug in our keyboard state of currently pressed keys. I discovered this issue while exploring #1703. The issue was that when I press <kbd>Meta</kbd> + <kbd>L</kbd> in chrome, the focus switches to the address bar and I release all keys, but the keyboard state still thinks `KeyL` is pressed. I used #1705 to investigate the keyboard state. <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1706"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a>
Resolves #1167