Re: [PATCH] platform/x86: asus-wmi: Support setting AIPT modes

From: srinivas pandruvada
Date: Sun Oct 20 2024 - 15:27:21 EST


> >

[...]

> > + adev = acpi_dev_get_first_match_dev("PNP0C14", "ATK", -1);
>
> Is there really no way of changing the AIPT mode through the WMI
> interface?
> I would prefer using the WMI interface if available, since the
> firmware might
> assume that FANL is only called through the WMI interface.
>
I wish the same. Didn't find any. Asus is aware of this change which I
submitted, they didn't suggest that there is alternative.

> Do you have a acpidump from a affected device?
>
Will send you.

Thanks,
Srinivas

> Thanks,
> Armin Wolf
>
> > + if (adev) {
> > + acpi_handle handle = acpi_device_handle(adev);
> > +
> > + acpi_dev_put(adev);
> > +
> > + if (!acpi_has_method(handle, "FANL"))
> > + return 0;
> > +
> > + asus->acpi_mgmt_handle = handle;
> > + asus->asus_aipt_present = true;
> > + dev_info(dev, "ASUS Intelligent Performance
> > Technology (AIPT) is present\n");
> > + /*
> > + * Set the mode corresponding to default Linux
> > platform power
> > + * profile Balanced
> > + */
> > + asus_wmi_write_aipt_mode(asus, AIPT_STANDARD);
> > + }
> > +
> >    return 0;
> >   }
> >