Merge pull request #10150 from valadaa48/battery_match

Add match on "battery" instead of just "BAT" to appease some unices
This commit is contained in:
Twinaphex 2020-02-23 04:41:56 +01:00 committed by GitHub
commit 41230c05b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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