* [PATCH] ACPI / battery: Add quirk for Asus UX360UA and UX410UAK
@ 2018-01-29 5:40 Kai-Heng Feng
2018-02-08 9:59 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Kai-Heng Feng @ 2018-01-29 5:40 UTC (permalink / raw)
To: rjw, lenb; +Cc: linux-acpi, linux-kernel, Kai-Heng Feng
Same issue as other Asus laptops, ACPI incorrectly reports discharging
when battery is full and AC is plugged.
Use the same battery quirk can workaround the issue.
BugLink: https://bugs.launchpad.net/bugs/1661876
BugLink: https://bugs.launchpad.net/bugs/1745032
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
drivers/acpi/battery.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 19bc440820e6..7128488a3a72 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -1209,6 +1209,22 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = {
DMI_MATCH(DMI_PRODUCT_NAME, "UX305LA"),
},
},
+ {
+ .callback = battery_full_discharging_quirk,
+ .ident = "ASUS UX360UA",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "UX360UA"),
+ },
+ },
+ {
+ .callback = battery_full_discharging_quirk,
+ .ident = "ASUS UX410UAK",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "UX410UAK"),
+ },
+ },
{},
};
--
2.15.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI / battery: Add quirk for Asus UX360UA and UX410UAK
2018-01-29 5:40 [PATCH] ACPI / battery: Add quirk for Asus UX360UA and UX410UAK Kai-Heng Feng
@ 2018-02-08 9:59 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2018-02-08 9:59 UTC (permalink / raw)
To: Kai-Heng Feng; +Cc: lenb, linux-acpi, linux-kernel
On Monday, January 29, 2018 6:40:36 AM CET Kai-Heng Feng wrote:
> Same issue as other Asus laptops, ACPI incorrectly reports discharging
> when battery is full and AC is plugged.
>
> Use the same battery quirk can workaround the issue.
>
> BugLink: https://bugs.launchpad.net/bugs/1661876
> BugLink: https://bugs.launchpad.net/bugs/1745032
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> ---
> drivers/acpi/battery.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
> index 19bc440820e6..7128488a3a72 100644
> --- a/drivers/acpi/battery.c
> +++ b/drivers/acpi/battery.c
> @@ -1209,6 +1209,22 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = {
> DMI_MATCH(DMI_PRODUCT_NAME, "UX305LA"),
> },
> },
> + {
> + .callback = battery_full_discharging_quirk,
> + .ident = "ASUS UX360UA",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "UX360UA"),
> + },
> + },
> + {
> + .callback = battery_full_discharging_quirk,
> + .ident = "ASUS UX410UAK",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "UX410UAK"),
> + },
> + },
> {},
> };
>
>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-08 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29 5:40 [PATCH] ACPI / battery: Add quirk for Asus UX360UA and UX410UAK Kai-Heng Feng
2018-02-08 9:59 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®