LAN-Plugin used a lot of power

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
33kk99
Junior Member
Junior Member
Posts: 18
Joined: 2016-11-14, 05:00 UTC

LAN-Plugin used a lot of power

Post by *33kk99 »

https://play.google.com/store/apps/details?id=me.piebridge.brevent

In general, we will use a similar tool to ensure that the app exits to save power.
Plugins cannot be added to the power save list can cause errors during use.
FTP and WiFi plugins don't add the list then work fine, normal power consumption.
After the LAN plug-in is launched once, even if you exit, it will use a lot of power in the subsequent time.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: LAN-Plugin used a lot of power

Post by *ghisler(Author) »

That's strange, it should use any CPU power at all when not used. Do you connect via SMB1 or SMB2?
Author of Total Commander
https://www.ghisler.com
33kk99
Junior Member
Junior Member
Posts: 18
Joined: 2016-11-14, 05:00 UTC

Re: LAN-Plugin used a lot of power

Post by *33kk99 »

Smb2, server had disabled smb1.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: LAN-Plugin used a lot of power

Post by *ghisler(Author) »

I see - it looks like the SMB2 library doesn't have a disconnect function - the connection stays open in the background. But this shouldn't cause any activity as long as there is no data traffic...
Author of Total Commander
https://www.ghisler.com
33kk99
Junior Member
Junior Member
Posts: 18
Joined: 2016-11-14, 05:00 UTC

Re: LAN-Plugin used a lot of power

Post by *33kk99 »

Reproduce the problem and try to solve it?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: LAN-Plugin used a lot of power

Post by *ghisler(Author) »

I have tried to reproduce the problem:
1. Connect via SMB2
2. Check with app "System Panel" - the plugin has used 1s CPU
3. Checked an hour later - the plugin has still only used 1s CPU
4. Checked again 3 hours later - the plugin has disappeared from the active tasks

I have also checked the source of the SMB library - there is just one background thread, and it sits idle, waiting on InputStream.read().
Sorry, I have no idea how I should reproduce your findings.
Author of Total Commander
https://www.ghisler.com
Post Reply