I do not know what is the best option to have a command run every ten minutes. Your while script will post it every 10 seconds and never let the system suspend/sleep.
If its no issue about your script. You can drop the while loop and run this script with cron every hour. I am not sure how well purism use the cron or kernel methods for sleep and wake up.
But if its well implemented it should wake up the system and check time as a very low level at low cost, because for that the Linux Kernel and Cron was designed in the first place.
Sleep itself is just kind of counting high level with high coast program/interface and do not match real time requirements.
I am not sure about the suspend mode - but with my daily use its a feeling that my not crimson phone will not use/enter the suspend mode via idle only if i push the “Suspend now” button in the L5 Mobile Settings Options.
At last I gave suspend a test. Unfortunately my Liberty phone does not handle call after waking up. Caller confirms call is on-going, but no app pops up on my screen that will allow me to accept the call. Also phone does not produce sound
Is there a way to measure the real capacity in mAh of a battery which says 100% ? Maybe a normal resistor and measuring the current and time to empty? The battery has three connectors, which must be used and how much Ohm the resistor should have best to simulate the discharge of a L5?
Thanks
There is a lot of information in /sys/class/power_supply/max170xx_battery/
capacity is an integer in % that matches the value displayed in various battery monitor tools (where they probably get it). That needs to be calibrated from time to time by letting it go as low as you are comfortable, followed by charging as high as you are comfortable, maybe several cycles of this. (Please do not shoot the messenger.)
charge_counter is an integer integration of the current (in unknown to me units) and possibly together with voltage_now and is the basis of the value in capacity. There are also various voltage, current, and temperature values.
…and of course some of its answers are useless or borderline misleading.
We don’t have to guess, there are high quality information sources available publicly:
The datasheet describes all the registers, and the driver is straightforward enough that you can just read it to find out what the reported values and units are.
WWAN disabled by killswitch, other kill switches not engaged
charged to 100%, then unplugged charger and sent to suspend
Result: After 11.5 hrs, the battery reports a remaining capacity of 61%. This would roughly mean a battery drain of 3,4% in suspend which would be very high, given radios were disabled.
However, I noticed that immediately after waking the device up it was connected to wifi and had bluetooth enabled, stating that software was not up to date. Hence, I am not sure how deep it was actually sleeping. Also, when I had woken it up before it usually came back with a slightly disorted lock screen and needed more presses of the power button to wake up while this time it was awake instantly.
I guess I should redo the same experiment, but this time disabling as much as possible via kill switches.
After 22.5hrs, the charge dropped to 28%. This is around 3.16% per hour, so almost the same stats as before. And this time the device woke up with the slightly disorted screen, so it seems to have been “sleeping”. Very sad results.
Yes, “kill switch” is both great terminology and terrible terminology.
If we didn’t call it a “kill” switch and just called it a, you know, switch, I don’t think that anyone would then be confused about the meaning of “on” and the meaning of “off”.
The English language is terrible, thats why i stopped learning it. It seems that Spanish is more precise in everything.
It seems that Spanish is more Precise, Clear, and Fancy than English.
With engaged I meant that the kill switch was used to disconnect power so it was down (kill power? yes). And yes I agree that terminology is difficult here.
No. You can’t tell without taking into account the context. If a killswitch - a switch that disables power - is engaged, it effectively means that power is disabled.
Anyways, can we please stay on topic and not waste our time on this pointless discussion?