Add Acer Nitro AN515-45 support and enable four-zone keyboard - #92
Open
uchihashahin01 wants to merge 2 commits into
Open
Add Acer Nitro AN515-45 support and enable four-zone keyboard#92uchihashahin01 wants to merge 2 commits into
uchihashahin01 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds model-specific quirks so the Acer Nitro AN515-45 is recognized as a Nitro v4 variant with four-zone keyboard support, enabling the related sysfs attributes for that laptop.
Changes:
- Added a new quirk profile for Nitro AN515-45 enabling
nitro_v4andfour_zone_kb. - Added a DMI match entry mapping Nitro AN515-45 to the new quirk profile.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| .four_zone_kb = 1, | ||
| }; | ||
|
|
||
| static struct quirk_entry quirk_acer_nitro_an515_45 = { |
Comment on lines
+520
to
+523
| static struct quirk_entry quirk_acer_nitro_an515_45 = { | ||
| .nitro_v4 = 1, | ||
| .four_zone_kb = 1, | ||
| }; |
Comment on lines
+669
to
+677
| { | ||
| .callback = dmi_matched, | ||
| .ident = "Acer Nitro AN515-45", | ||
| .matches = { | ||
| DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | ||
| DMI_MATCH(DMI_PRODUCT_NAME, "Nitro AN515-45"), | ||
| }, | ||
| .driver_data = &quirk_acer_nitro_an515_45, | ||
| }, |
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.
Description
This PR adds a DMI entry and quirk profile for the Acer Nitro AN515-45. While the device was previously detected as a Nitro model, the four-zone RGB keyboard functionality was not being exposed.
Changes:
AN515-45.nitro_v4andfour_zone_kb.This enables
four_zone_modeandper_zone_modesysfs attributes for this specific model.Testing Performed
6.17.0-19-genericDetected laptop type: NITROFour-zone keyboard: Yesfour_zone_modeandper_zone_modeare now visible and functional.