With StateFS deprecation, would be great to know how the same statistics can be gathered in the system. Interest stems from collectd which is using stateFS for several readouts. As collectd is C daemon, I am looking for something that can be read out from pure C and available for regular users, not root.
Readouts I am interested in:
-
/run/state/namespaces/Battery/
- ChargePercentage, Capacity, Current, Energy, Power, Temperature, TimeUntilFull, TimeUntilLow, Voltage
-
/run/state/namespaces/Bluetooth/
- Connected, Enabled, Visible
-
/run/state/namespaces/Cellular/
- Technology, SignalStrength
-
/run/state/namespaces/Internet/
- NetworkState, NetworkType, SignalStrength
Whether it is possible to use StateFS on 3.4.0 and later releases, I donāt know.