fn_row_policy=7 for UX8406 Mode B swap (F4–F12) + 7.1.3 port - #1
Merged
Conversation
Intercept UX8406 main keyboard HID reports before evdev when fn_row_policy bit 3 is set, toggle if4 kbd backlight, and fix sniff to watch Asus Keyboard nodes without detaching USB drivers. Co-authored-by: Cursor <cursoragent@cursor.com>
When policy bits 0–2 are set, plain F1–F3 inject KEY_MUTE, KEY_VOLUMEDOWN, and KEY_VOLUMEUP on the main keyboard input node; F4 backlight path unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
Media keys were appearing on if3 (event6) without affecting volume. Default simulate now matches Mode B Fn+F (KEY_F1–F3 on if0); optional fn_row_media_keys=1 restores KEY_MUTE/VOLDOWN/VOLUP with input_set_capability. Co-authored-by: Cursor <cursoragent@cursor.com>
F1-F3 bits set route plain presses to if3 consumer media; clear bits emit KEY_F1-F3 on if0. F4+ bits set stepped Fn+F4 backlight on if4 and plain KEY_Fn passthrough; Meta held bypasses policy. Removes wrong plain-F4 toggle. Co-authored-by: Cursor <cursoragent@cursor.com>
Plain F1-F3 on if3 consumer (03e2/ea/e9) remaps to KEY_F1-F3 on if0 when bits clear; block duplicate if4 5ac7 during plain F4 on if0; swallow injected KEY_F4 vs Fn+F4 stepped backlight on if0. Co-authored-by: Cursor <cursoragent@cursor.com>
Docked Mode B baseline remapped so plain F4–F12 are KEY_Fn and Fn+F runs specials (BL, brightness, Win+P display, MyASUS 0x86). F1–F3 left on firmware EC volume; default policy 7 via kmod_deploy and OpenRC conf. Co-authored-by: Cursor <cursoragent@cursor.com>
Port script accepts 7.0.12/7.1.3 asus_event whitespace; regenerate both kernel patches (7.1.3 build verified). Rename README.md to README.ux8406.md ahead of multi-model docs work. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fn_row_policy=7: plain F4–F12 →KEY_Fn, Fn+F → specials (kbd BL, brightness, Win+P display, MyASUS0x86/KEY_PROG1); F1–F3 left on firmware EC volume; Meta+F workspace preserved.port-ux8406.pyaligned for linux-7.1.3 (asus_event whitespace); bothux8406-hid-asuspatches regenerated; 7.1.3 OOT module builds.README.md→README.ux8406.mdfor upcoming multi-model docs; OpenRC/kmod_deploydefaultfn_row_policy=7.Test plan
make patchesfor 7.0.12 + 7.1.3make build-7.1.3succeeds