Commit Graph

17 Commits

Author SHA1 Message Date
Daniel Schaefer
1ad69d4b5f fl16: Reenable standard capslock LED behavior
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-12-01 10:27:39 +08:00
Daniel Schaefer
6e226cb481 fl16: ifdef for os detect debug
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-30 11:41:38 +08:00
Daniel Schaefer
05798c19c1 fl16: cleanup
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-30 09:09:33 +08:00
Daniel Schaefer
9533b165fc fl16: Re-enable NKRO but only in OS
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-27 14:12:17 +08:00
Daniel Schaefer
45f8b07d39 fl16: Disable BIOS hotkeys in linux
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-27 13:09:47 +08:00
Daniel Schaefer
c6ba5ad0a2 DEBUG: Working BIOS hotkeys
Works from cold boot and from reboot in windows.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-27 12:55:38 +08:00
Daniel Schaefer
341fb18199 fl16: Force disable RGB controller if RGB disabled
Helps faster startup

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-24 15:44:28 +08:00
Daniel Schaefer
67be5557fb fl16: Signal bios mode also via capslock LED
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-24 14:50:42 +08:00
Daniel Schaefer
1e7fc086a1 fl16: Allow next/prev effect keys to turn RGB on
If using VIA the backlight was set to effect 0, the only way to turn it
back on is using VIA or the RGB toggle key. But the user would expect
the next/prev animation key to also work.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-24 14:41:28 +08:00
Daniel Schaefer
1e6896999f fl16: Don't turn off LEDs in USB suspend
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-11-17 19:04:24 +08:00
Daniel Schaefer
b71e202389 fl16: Extend UEFI hotkey mode to all F keys
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-08-30 14:48:14 +08:00
Daniel Schaefer
21fd6d199c fl16: Implement BIOS mode
When enabled, overrides whatever keyboard layout and always makes the
keys in the physical location of F2, F10 and F12 send the keycodes for
F2/F10/F12.
BIOS is supposed to enable this right after USB enumeration, so that the
BIOS hot keys always work, even if FN-lock is enabled or the user has
remapped their keyboard.
BIOS mode is exited either by the keyboard resetting or by sending the
disable message.

How to send:

1. Find USB devices with Framework VID 0x32AC
2. Filter by interface number == 0x01 and usage page == 0xFF60
3. Set HID report with the following body:

Enable:  0x00 0x0B 0x05 0x01 0xFE 0xFE ... pad the 32 byte buffer with 0xFE
Disable: 0x00 0x0B 0x05 0x00 0xFE 0xFE ... pad the 32 byte buffer with 0xFE
Where the first byte is the report ID 0x00

TODO:

- [ ] Test on ANSI keyboard
- [x] Test on ISO keyboard
- [ ] Test on JIS keyboard
- [ ] Add method to get current status

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-07-21 15:56:46 +08:00
Daniel Schaefer
c88903142d fl16: Save RGB brightness step level
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-07-11 09:56:06 +08:00
Daniel Schaefer
be3d3eed91 fl16: Add backlight step key to macropad
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-07-11 04:44:44 +08:00
Daniel Schaefer
ed8cbb8975 fl16: Implement step brightness for RGB keyboards
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-07-11 04:25:55 +08:00
Daniel Schaefer
da053f2cdc fl16: Fix display switch
Works already but sometimes opens the windows start menu.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-05-03 17:13:22 +08:00
Daniel Schaefer
966f2e7822 Rename lotus to framework
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-03-23 13:29:15 +08:00