feat(rog-slash): add slash support for GU405 models - #292
Conversation
The 2026 G14 (GU405AR) exposes the slash device as 0b05:19b6, the same controller generation as GU605_2025, but fell through to Unsupported as there was no matching board name. Add a GU405_2026 variant mapped to PROD_ID2 / REPORT_ID_19B6 and match on a GU405 board name in both from_dmi() and get_slash_type().
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details🧰 Additional context used🧠 Learnings (1)📓 Common learnings🔇 Additional comments (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds public ChangesGU405_2026 support
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to This localized change adds GU405 slash-device support without any identified merge-blocking correctness, security, availability, or deployment risk; it is merge-ready after normal checks and review. Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| GU605_2024, | ||
| GU605_2025, | ||
| GU606_2026, | ||
| GU405_2026, |
| SlashType::GU605_2025 => PROD_ID2, | ||
| SlashType::GU605_2024 => PROD_ID1, | ||
| SlashType::GU606_2026 => PROD_ID2, | ||
| SlashType::GU405_2026 => PROD_ID2, |
| SlashType::GU605_2025 => PROD_ID2_STR, | ||
| SlashType::GU605_2024 => PROD_ID1_STR, | ||
| SlashType::GU606_2026 => PROD_ID2_STR, | ||
| SlashType::GU405_2026 => PROD_ID2_STR, |
| } else if board_name.contains("GU405") { | ||
| SlashType::GU405_2026 |
| "GU605_2025" => Self::GU605_2025, | ||
| "GU605_2024" => Self::GU605_2024, | ||
| "GU606_2026" => Self::GU606_2026, | ||
| "GU405_2026" => Self::GU405_2026, |
| SlashType::GU605_2025 => REPORT_ID_19B6, | ||
| SlashType::GU605_2024 => REPORT_ID_193B, | ||
| SlashType::GU606_2026 => REPORT_ID_19B6, | ||
| SlashType::GU405_2026 => REPORT_ID_19B6, |
Address review feedback
Ghoul4500
left a comment
There was a problem hiding this comment.
Thank you for your contribution
Description
Slash support for the ROG Zephyrus G14 GU405AR. Board name
GU405AR, device0b05:19b6.This adds a
GU405_2026variant mapped toPROD_ID2/REPORT_ID_19B6plus aGU405board-name match (I followed #281 for the GU606AX as an example).Like the GU606AX, this laptop exposes a single HID interface, the slash shares it with the keyboard.
After the patch:
Enable, brightness, and mode changes all working.
Tested Hardware & Environment
Verification and testing:
cargo fmt --all -- --check)cargo clippy --all -- -D warnings)cargo test --all)cargo cranky)