Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #7

Merged
merged 4 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ Other Lenovo Legion models from 2020 to 2023 probably also work. The following w
- Lenovo Legion 5 15IMH05 (BIOS EFCN54WW): sensors, fan curve
- Lenovo Legion 5 15ACH6H (BIOS GKCN58WW or GKCN57WW), Gen 6: sensors, fan curve, power profile
- Lenovo Legion 5 15ARH05A (BIOS FSCN14WW), Gen 5: sensors, fan curve
- Lenovo Legion 5 15ITH6H (BIOS ???, Intel): sensors, fan curve, power profile
- Lenovo Legion 5 15ITH6H (BIOS H1CN49WW, Intel): sensors, fan curve, power profile
- Lenovo Legion 5 15ARH7H (BIOS JUCN55WW), Gen7: sensors, fan curve, power profile

*Note:* Features that are not confirmed proabably also work. They were just not tested.

## :warning: Disclaimer
Expand Down
10 changes: 9 additions & 1 deletion kernel_module/legion-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@ static const struct dmi_system_id optimistic_allowlist[] = {
},
.driver_data = (void *)&model_v0
},
{
// modelyear: 2022
.ident = "JUCN",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
DMI_MATCH(DMI_BIOS_VERSION, "JUCN"),
},
.driver_data = (void *)&model_v0
},
{}
};

Expand Down Expand Up @@ -1675,7 +1684,6 @@ static struct wmi_driver legion_wmi_driver = {
.notify = legion_wmi_notify,
};


//acpi_status status = wmi_install_notify_handler(LEGION_WMI_GAMEZONE_GUID,
// legion_wmi_notify2, NULL);
//if (ACPI_FAILURE(status)) {
Expand Down