Page 4 of 5

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-03, 18:22 UTC
by McConnor
Das spart immerhin einen Schritt. Ich sehe allerdings schon dass ich das vergesse und erst merke wenn der Akku geleert ist. Gibt es ne Möglichkeit diesen Befehl nach einer definierten Leerlaufzeit auszuführen - sagen wir mal 2-3 Minuten?

Eine andere Log App mit der man der Sache auf die Spur kommen kann (ohne root) gibt's nicht? Ich würde sonst schon definiert testen und loggen...

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-06, 12:54 UTC
by BudCord
Nach dem hohen Akkuverbrauch unter v3.40 bis v3.42beta1 hatte ich ein Rollback zu v3.33 gemacht, wo das Problem nicht auftrat - siehe Posts weiter oben.

Gestern früh habe ich über F-Droid ein Update zu aktuellen v3.42beta4d gemacht und den TC zunächst mit 2 leeren Ordnerfenstern laufen lassen.
Da am Abend der TC noch nicht in der Akku-Verbauchs-Liste ab 1% auftauchte, habe ich zu 2 Ordnerfenstern mit vielen Dateitypen gewechselt.
Jetzt, 7 Stunden nach Entfernen des Ladegerätes, sehe ich noch immer keinen hohen Akkuverbrauch und der TC ist, wie schon mit den leeren Fenstern, aus der Liste der laufenden Apps (von mir auch als Hintergrundaktivität bezeichnet) verschwunden. :D
Nur bei den Diensten im Cache sehe ich ihn noch.

Wenn es so bleibt, wäre das wunderbar! :mrgreen:
--
After the high battery consumption under v3.40 to v3.42beta1 I had made a rollback to v3.33, where the problem did not occur - see posts above.

Yesterday morning I did an update to current v3.42beta4d via F-Droid and initially ran the TC with 2 empty folder windows.
Since in the evening the TC still did not show up in the battery consumption list from 1%, I switched to 2 folder windows with many file types.
Now, 7 hours after removing the charger, I still do not see high battery consumption and the TC has disappeared from the list of running apps (also called background activity by me), as it did with the empty windows. :D
Only with the services in the cache I still see him.

If it stays like this, that would be wonderful! :mrgreen:

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-06, 14:34 UTC
by ghisler(Author)
Seltsam, ich habe nichts geändert was das bewirken könnte. Es muss schon durch irgend ein Verzeichnis auf ihrem Gerät verursacht werden.

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-06, 15:31 UTC
by BudCord
Seltsam
Absolut!

Meine Versionswechsel erfolgten ohne Veränderungen der Einstellungen vom Total Commander und die Testordner leer / voll waren stets identisch.
Ich habe in der gesamten Zeit der Test nur minimal und kurz mit dem Total Commander gearbeitet.
Weder beim Android, noch beim Google-Play-Systemupdate gab es in der Zeit eine Aktualisierung.
Mindestens @McConnor ist auch vom Problem betroffen.

Eine nicht erklärbare Lösung wäre mir trotzdem lieber, als ein nicht lösbares bekanntes Problem.

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-09, 10:57 UTC
by BudCord
@MrConnor
Wie schaut es auf dem Samsung aus, auch keine Akku-Probleme mehr mit der 3.42beta4d?

Mein Pixel 6 zeigt mir damit, trotz seit 6h laufendem TC im Hintergrund (geöffnete APP mit gut gefülltem Ordnerpaar), an "Keine Akkunutzung in den letzten 24h".

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-09, 12:28 UTC
by McConnor
Ich habe die Version direkt nach deiner Rückmeldung installiert. Ich hatte allerdings dennoch einen erhöhten Akkuverbrauch wenn ich mir auch eingebildet habe dass es weniger geworden ist.... ;)
Ich habe daraufhin Total Commander deinstalliert und danach die Beta Version erneut installiert.

Jetzt habe ich den vorher benannten Hintergrund Task nicht mehr bzw er wird vom System wohl automatisch nach kurzer Zeit entfernt. Der Akkuverbrauch ist damit wieder im bekannten Rahmen.

Ich vermute das deinstallieren und neu installieren hat mehr Effekt gehabt als die Beta Version alleine....

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-09, 13:24 UTC
by BudCord
McConnor wrote: 2023-03-09, 12:28 UTCIch vermute das deinstallieren und neu installieren hat mehr Effekt gehabt als die Beta Version alleine....
Mein Rollback von der 3.42beta1 zur 3.33, gefolgt vom erneuten Update zur 3.42beta4 hat dann wohl den ähnlichen Effekt gehabt.

Der initiale Übergang von der 3.x auf die 4.x hat scheinbar zu dem Akkuproblem geführt.
Für uns Anwender ist das Problem damit wohl gelöst.
Ich hoffe, es bleibt keines für Christian!
Vielen Dank an ihn für den Support! :D

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-03-09, 15:14 UTC
by McConnor
Absolut! Vielen Dank für den Support und diese einmalige App!

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-04-10, 12:29 UTC
by Lewis Fletcher
To automatically execute a command after a defined idle time, you can use a script and a tool like xprintidle to measure the idle time of your system. Here's an example of how you can create a script that runs a command after a specified idle time (in seconds):

bash
Copy code
#!/bin/bash

# Define the idle time in seconds
idle_time=$((2 * 60)) # 2 minutes

# Loop indefinitely
while true; do
# Get the current idle time in milliseconds
current_idle=$(xprintidle)

# Convert the idle time to seconds
current_idle=$((current_idle / 1000))

# Check if the idle time is greater than the specified idle time
if [ $current_idle -gt $idle_time ]; then
# Execute your command here
your_command_here

# Reset the idle time
idle_time=$((2 * 60)) # 2 minutes
fi

# Sleep for 1 second before checking again
sleep 1
done
In this example, the script checks the idle time of the system every second using xprintidle and runs a command (replace "your_command_here" with the command you want to execute) if the idle time is greater than the specified idle time (2 minutes in this case). After the command is executed, the idle time is reset to 2 minutes.

You can modify the idle time to any value you want by changing the idle_time variable. Save this script to a file (e.g. auto_command.sh) and make it executable using chmod +x auto_command.sh. Then, you can run it in the background using ./auto_command.sh & and it will continue to run even if you log out of your system.

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-08-10, 14:25 UTC
by McConnor
He is back again.... Still on beta 3.42 beta 4d. Did not change anything but for quite some time now I see the background task again even if only starting Total Commander and not doing anything with it... You seriously have to remind yourself to kill the background process after whatever you plan to do with TC or your battery will be empty pretty quick...

I hope the reason for this will wash up and can be remedied...

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-08-10, 17:27 UTC
by Usher
McConnor wrote: 2023-08-10, 14:25 UTC Still on beta 3.42 beta 4d.
There is already 3.42d final available. Update your TC and send a new report, please.

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-08-10, 17:29 UTC
by petermad
2McConnor
Still on beta 3.42 beta 4d.
Why are you still on beta 4? 3.42 final has been available for awhile now.

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-08-10, 18:31 UTC
by McConnor
Probably because of running a beta I haven't been issued an update... Had to uninstall and manually install it again.

Further testing is about to happen BUT: the background task has disappeared. Upon hitting "back"and thereby getting to the Homescreen there is no more background task in the task manager. Hopes are therefore high that the battery drain is no longer existent...

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-11-03, 21:38 UTC
by mcc
Well, I had my hopes too high. For some time it seemed ok. But now the problem is back in the same manner - I cannot think of a reason that might be responsible. I didn't change anything and I am still on 3.42 final

Re: Akku Drain mit Total Commander im Hintergrund

Posted: 2023-11-05, 11:40 UTC
by ghisler(Author)
Did you start the media player at least once?