[HowTo] Alternate way of saving battery when using 4G/LTE
-
@AmauryDBZ said in [HowTo] Alternate way of saving battery when using 4G/LTE:
@lduboeuf thanks for your 'dirty hack' !
after installing it says I have to upgrade, butsudo apt upgrade
returnsLecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Calcul de la mise à jour... Fait Get more security updates through Ubuntu Pro with 'esm-apps' enabled: libswresample3 libmediainfo0v5 libavcodec58 libavutil56 libopenexr24 libsdl2-2.0-0 Learn more about Ubuntu Pro at https://ubuntu.com/pro W: Verrou non utilisé pour le fichier /var/lib/dpkg/lock-frontend en lecture seule W: Verrou non utilisé pour le fichier /var/lib/dpkg/lock en lecture seule E: Le répertoire d'archive /var/cache/apt/archives/partial n'existe pas. - Acquire (30: Read-only file system)
Any idea how to resolve ?
Moreover, is it possible to add an exception when hotspot is on ?Well, your device must be up to date before doing any
ubports-qa
things.
You can either reinstall UT or go by mouting rw the partition and then upgrade. -
@lduboeuf said in [HowTo] Alternate way of saving battery when using 4G/LTE:
by mouting rw the partition and then upgrade.
do you have a tutorial ?
-
@AmauryDBZ said in [HowTo] Alternate way of saving battery when using 4G/LTE:
@lduboeuf said in [HowTo] Alternate way of saving battery when using 4G/LTE:
by mouting rw the partition and then upgrade.
do you have a tutorial ?
Well, if you ask, maybe you don't know the possible consequences ?
If ok then remount rw the partition:sudo mount -o remount,rw /
thensudo apt upgrade
-
@lduboeuf you're right I have no idea of what consequence it could have ! Thanks for your help !
To come back on the subject of this topic, would it be possible to add an exception when the hotspot is activated ?
-
@AmauryDBZ said in [HowTo] Alternate way of saving battery when using 4G/LTE:
@lduboeuf you're right I have no idea of what consequence it could have ! Thanks for your help !
To come back on the subject of this topic, would it be possible to add an exception when the hotspot is activated ?
Humm, what would be the bahavior for hotspot, if enable then auto switch to 4G ?
-
@lduboeuf I would have say if enable stay on 4G even if the screen shutsdown, but that's the idea.
-
@AmauryDBZ said in [HowTo] Alternate way of saving battery when using 4G/LTE:
@lduboeuf I would have say if enable stay on 4G even if the screen shutsdown, but that's the idea.
ah ok but might not be related to my work around. It only toggles on 4G when request data and toggle 2G when data off.
-
-
-
@AmauryDBZ said in [HowTo] Alternate way of saving battery when using 4G/LTE:
@lkroll Thanks a lot for your script, works like a charm !
As I said to @lduboeuf , I was wondering if it could be possible to add some exceptions ?
For instance, 4G could be maintained when the device is charging, or when hotspot activated, or even when an specific app is running (Futify for me).Of course it should be possible but takes time. But would be better to look at the root cause, why LTE need so much battery. There are room for improvement, e.g we still don't manage the FastDormancy.
-
@lduboeuf I didn't knew about FastDormancy, make sense to priorise it.
Thank you for your answers and patience -
Hi all,
[20.04 only]
I've made an app to allow to auto toggle LTE (4G) when cellular data is requested, and back to GSM (2G) when no data.If anyone interested:
https://gitlab.com/lduboeuf/battery-saver/-/artifactssource code:
https://gitlab.com/lduboeuf/battery-saverthe app can be closed after clicking "start" and if you see "Running...", it will create a background service
Edit: don't know if it is related but connectivity tends to have issue on upgrading to 4G. Or maybe only an indicator issue.
-
Would you release it on openstore ?
Is this for Xenial or Focal, or both ? -
@Keneda said in [HowTo] Alternate way of saving battery when using 4G/LTE:
Would you release it on openstore ?
Maybe in the future, the ideal would be to have it integrated, but much much work involved + the fact that upcoming volTE will probably conflict with.
Is this for Xenial or Focal, or both ?
Focal only, only 24h a day
-
-
Hello @lduboeuf . When i saw https://open-store.io/app/batterysaver.lduboeuf , i thought first it was a GUI of this topic. Or could your app evolve towards this?
-
@domubpkm said in [HowTo] Alternate way of saving battery when using 4G/LTE:
Hello @lduboeuf . When i saw https://open-store.io/app/batterysaver.lduboeuf , i thought first it was a GUI of this topic. Or could your app evolve towards this?
A bit different yes than always switching 2g/4g according tp screen state. But if i have 100 notif a day, it means 100 times the screen will turn on, i doubt it would be efficient...
But could be improved for sure -
@lduboeuf Thanks for your new project. Well personally, in normal use, I generally completely turn off cellular data and activate it when necessary. I don't know how difficult it can be to develop, but I imagine an option that automatically turns on cellular data in case of one or more open apps or web-apps using it, and automatically turns off cellular data when apps or web-apps that used cellular data are all closed...