mirror of
https://github.com/monero-project/monero.git
synced 2025-05-15 08:12:15 -04:00
Add other possible paths of AC power status file on Linux
This commit is contained in:
parent
c9063c0b8f
commit
64377c90b5
1 changed files with 5 additions and 3 deletions
|
@ -812,7 +812,9 @@ namespace cryptonote
|
||||||
const std::string POWER_SUPPLY_STATUS_PATHS[] =
|
const std::string POWER_SUPPLY_STATUS_PATHS[] =
|
||||||
{
|
{
|
||||||
"/sys/class/power_supply/ACAD/online",
|
"/sys/class/power_supply/ACAD/online",
|
||||||
"/sys/class/power_supply/AC/online"
|
"/sys/class/power_supply/AC/online",
|
||||||
|
"/sys/class/power_supply/AC0/online",
|
||||||
|
"/sys/class/power_supply/ADP0/online"
|
||||||
};
|
};
|
||||||
|
|
||||||
for(const std::string& path : POWER_SUPPLY_STATUS_PATHS)
|
for(const std::string& path : POWER_SUPPLY_STATUS_PATHS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue