But nevertheless the system soemhow has to define a level under which the system will be shut down. It makes no difference whether I read the charge level using some script or the system reading the level using some dbus-call or similar. In the end we all get the same level and the system has to decide wether to shut down or not. If there is such implementation at all. That's part of my question too.