From 2dbb13d8dd6c4a4cfbd61ad803338b27cd19b79a Mon Sep 17 00:00:00 2001 From: valadaa48 Date: Sat, 22 Feb 2020 22:16:57 -0500 Subject: [PATCH] Add match on "battery" instead of just "BAT" to appease some unices - required for odroid go advance --- frontend/drivers/platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c index 07321303e5..9a8d9e3592 100644 --- a/frontend/drivers/platform_unix.c +++ b/frontend/drivers/platform_unix.c @@ -1094,7 +1094,7 @@ static bool frontend_unix_powerstate_check_acpi_sysfs( #ifdef HAVE_LAKKA_SWITCH if (node && strstr(node, "max170xx_battery")) #else - if (node && strstr(node, "BAT")) + if (node && (strstr(node, "BAT") || strstr(node, "battery"))) #endif check_proc_acpi_sysfs_battery(node, &have_battery, &charging, seconds, percent);