Skip to content

Add Acer Nitro AN515-45 support and enable four-zone keyboard - #92

Open
uchihashahin01 wants to merge 2 commits into
0x7375646F:mainfrom
uchihashahin01:feat/an515-45-support
Open

Add Acer Nitro AN515-45 support and enable four-zone keyboard#92
uchihashahin01 wants to merge 2 commits into
0x7375646F:mainfrom
uchihashahin01:feat/an515-45-support

Conversation

@uchihashahin01

Copy link
Copy Markdown

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:

  • Added DMI entry for AN515-45.
  • Created a new quirk profile enabling nitro_v4 and four_zone_kb.
  • Improved DAMX detection logic to ensure four-zone keyboard features are correctly identified and exposed.

This enables four_zone_mode and per_zone_mode sysfs attributes for this specific model.


Testing Performed

  • Environment: Kernel 6.17.0-19-generic
  • Procedure: Built and installed the updated module, restarted the daemon, and reloaded the module.
  • Verification: Confirmed via system logs that the device is correctly identified:
    • Detected laptop type: NITRO
    • Four-zone keyboard: Yes
  • Functionality: Verified that four_zone_mode and per_zone_mode are now visible and functional.

Copilot AI review requested due to automatic review settings March 17, 2026 18:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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_v4 and four_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.

Comment thread src/linuwu_sense.c
.four_zone_kb = 1,
};

static struct quirk_entry quirk_acer_nitro_an515_45 = {
Comment thread src/linuwu_sense.c
Comment on lines +520 to +523
static struct quirk_entry quirk_acer_nitro_an515_45 = {
.nitro_v4 = 1,
.four_zone_kb = 1,
};
Comment thread src/linuwu_sense.c
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,
},
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.

2 participants