Skip to content
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 FnLock key #263

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Add FnLock key #263

merged 1 commit into from
Aug 1, 2023

Conversation

crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Dec 21, 2021

Implement a FnLock toggle and a custom key for it.

  • When disabled, F1-F12 behave normally
  • When enabled, F1-F12 behave as the alternate function

Set it to Fn+Esc by default.

NOTE: Holding Fn+Esc at power on (S5 to S0) is used for resetting the EC configs. After S0, Fn+Esc will only act as FnLock.

NOTE: System76 laptops do not have an indicator for FnLock state.

Resolves: system76/firmware-open#78

@Stojek139808
Copy link

Hello, is there a reason why this is left as draft and not merged? I've tested this change on clevo/ns70mu and works correctly.

@crawfxrd crawfxrd marked this pull request as ready for review January 13, 2023 21:12
@crawfxrd crawfxrd requested review from a team January 13, 2023 21:13
jackpot51
jackpot51 previously approved these changes Jan 18, 2023
leviport
leviport previously approved these changes Jan 30, 2023
Copy link
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great on darp8.

I've opened pop-os/keyboard-configurator#159 so we can track getting it added to the configurator.

@crawfxrd crawfxrd dismissed stale reviews from leviport and jackpot51 via 9528c30 January 30, 2023 23:34
@crawfxrd crawfxrd force-pushed the wip/fnlock-custom-key branch 2 times, most recently from 9528c30 to fa2a4d8 Compare January 30, 2023 23:35
leviport
leviport previously approved these changes Jan 30, 2023
Copy link
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-tested on darp8 and it's still working well.

Sorry if my trying to update the branch messed something up 😅

Implement a FnLock toggle that behaves as follows:

- Disabled: F1-F12 are normal
- Enabled: F1-F12 are the alternate function

Signed-off-by: Tim Crawford <[email protected]>
@crawfxrd
Copy link
Member Author

Default key has been changed from Fn+Caps to Fn+Esc to match what I see as the most common key used by other keyboards.

@crawfxrd crawfxrd requested review from a team and jackpot51 July 24, 2023 14:12
leviport
leviport previously approved these changes Jul 24, 2023
Copy link
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working nicely on the lemp12. I confused myself after resetting the keyboard layout to default in the configurator during testing, which made it stop working, but that's because the configurator doesn't yet support FnLock.

@jackpot51
Copy link
Member

I have concerns with the lack of an indicator. This is a great thing for users who want it, but for users who are unaware of this feature, accidentally toggling function lock could be very hard for them to undo.

@crawfxrd
Copy link
Member Author

I've dropped the commit adding it to the default layouts.

Users will have to explicitly add the key to their layout if desired.

@crawfxrd crawfxrd requested a review from a team July 31, 2023 20:35
Copy link
Member

@leviport leviport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me

@jackpot51 jackpot51 merged commit 0190701 into master Aug 1, 2023
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement Request: Fn key toggle in Firmware/BIOs Options
4 participants