Akku Drain mit Total Commander im Hintergrund

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

McConnor
Junior Member
Junior Member
Posts: 22
Joined: 2013-11-29, 07:22 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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...
User avatar
BudCord
Junior Member
Junior Member
Posts: 61
Joined: 2003-02-25, 08:18 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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:
Make it idiotproof and someone will make a better idiot.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Akku Drain mit Total Commander im Hintergrund

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
BudCord
Junior Member
Junior Member
Posts: 61
Joined: 2003-02-25, 08:18 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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.
Make it idiotproof and someone will make a better idiot.
User avatar
BudCord
Junior Member
Junior Member
Posts: 61
Joined: 2003-02-25, 08:18 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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".
Make it idiotproof and someone will make a better idiot.
McConnor
Junior Member
Junior Member
Posts: 22
Joined: 2013-11-29, 07:22 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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....
User avatar
BudCord
Junior Member
Junior Member
Posts: 61
Joined: 2003-02-25, 08:18 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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
Make it idiotproof and someone will make a better idiot.
McConnor
Junior Member
Junior Member
Posts: 22
Joined: 2013-11-29, 07:22 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post by *McConnor »

Absolut! Vielen Dank für den Support und diese einmalige App!
Lewis Fletcher
Junior Member
Junior Member
Posts: 3
Joined: 2023-04-10, 12:25 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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.
McConnor
Junior Member
Junior Member
Posts: 22
Joined: 2013-11-29, 07:22 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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...
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Akku Drain mit Total Commander im Hintergrund

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
McConnor
Junior Member
Junior Member
Posts: 22
Joined: 2013-11-29, 07:22 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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...
mcc
Junior Member
Junior Member
Posts: 5
Joined: 2022-02-26, 10:24 UTC

Re: Akku Drain mit Total Commander im Hintergrund

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Akku Drain mit Total Commander im Hintergrund

Post by *ghisler(Author) »

Did you start the media player at least once?
Author of Total Commander
https://www.ghisler.com
Post Reply