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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 20.10.24 um 21:27 schrieb srinivas pandruvada:

[...]

+	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,

the return value of DSTS() on your device contains:

- 8-bit current AIPT mode
- 8-bit nothing
- 8-bit constant 0x07
- 8-bit constant 0x0a

Maybe you can try to find out more about the unknown constants. For the rest, you can use
the helper functions provided by the driver.

Thanks,
Armin Wolf

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;
   }







[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux