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