Xmrig does not detect if the computer is charging (specific hardware and linux kernel)
- hardware: M1 MacBook Pro (2020)
- software: gentoo linux on ARM64/AARCH64, runs [this kernel](https://github.com/AsahiLinux/linux/tree/asahi-5.19-rc7-1) (for hardware support reasons), [manually configured](https://wiki.gentoo.org/wiki/Kernel/Configuration)
- xmrig: emerged from the [`gentoo` repository](https://packages.gentoo.org/packages/net-misc/xmrig)
part of `emerge --info`:
```
=================================================================
                        Package Settings
=================================================================

net-misc/xmrig-6.18.0::gentoo was built with the following:
USE="hwloc ssl -donate (-opencl)"
```

to summarize the problem, here's just a single screenshot with most of the details:
![](https://user-images.githubusercontent.com/50755746/182206130-594c7b57-c05c-4f49-85e9-b45402f67c4f.png)

- pause on battery is enabled
- xmrig does not detect if the charger is plugged in or not, or does not respond to the charger state. (`/sys/class/power_supply/macsmc-ac/online`)
- plasma battery status in the taskbar is able to detect if the computer is charging