Page 1 of 1

Auto-Refresh auto-suspend

Posted: 27 Feb 2016 14:53
by eil
i found myself in this situation quite often: i'm using browser, start to download some files, click on XY that was in background, XY appears to be opened on a folder where saving of downloads is happening so it starts to refresh like crazy and becoms not responsive. in 60% Ctrl+R take care of it, but in 40% i have just to close XY process, start again i be fast to switch to another tab.

what i'm asking for/proposing is to make auto-refresh smarter and suspend itself(#481) if it gets refresh too often(meant downloading is happening and XY does 10+ refresh in a row). even a tweak for this would be cool to have.!

Re: Auto-Refresh auto-suspend

Posted: 08 Mar 2016 13:24
by eil
bump
at least some hints will be appreciated.. :cry:

Re: Auto-Refresh auto-suspend

Posted: 20 Sep 2020 12:44
by eil
i had this wish years ago and still have this problem. at least an answer if i may hope for some solution would be appreciated.

Re: Auto-Refresh auto-suspend

Posted: 28 Sep 2020 14:21
by admin
Sounds like a good idea.

Please enable auto-refresh logging:

Code: Select all

::logchange 5;
Then let me see the log (dlog;). This will show me what's happening and how fast.

Re: Auto-Refresh auto-suspend

Posted: 03 Oct 2020 13:13
by eil
for some reason after that command dlog; showed nothing, but only Win version. still it seems i found the "culprit" and way to reproduce behaviour.
i have working folder, where i download everything and keep temporary/unnecessary files, on flash drive. seems like the difference of I/O speed compared to HDD makes this magic, and if i am in the folder of this drive(exactly where download is happening right now), this over-refresh behaviour happens. maybe this will help you catch the reason and solution.

Re: Auto-Refresh auto-suspend

Posted: 04 Oct 2020 10:32
by admin
Here is a way for you to stop it:

Code: Select all

v16.00.0106 - 2015-11-22 16:40
    + Added tweak to fine-tune what is watched by Auto-refresh. If this tweak is 
      set it is processed before the following settings are processed:
        - Include network locations (Refresh, Icons, History - Auto-Refresh)
        - Include removable drives (Refresh, Icons, History - Auto-Refresh)
        - Refresh during file operations (Refresh, Icons, History - Auto-Refresh)
      The tweak value consists of a list of locations, separated by | (pipe). 
      XYplorer variables and environment variables are allowed here. To include 
      a location's subfolders suffix a * (asterisk). To exclude a location from 
      Auto-refresh prefix a - (minus). The list is processed from left to 
      right. The first match wins.
      For example:
        WatchIt=-%user%\Downloads|C:\*|-N:\*
      This would mean the following:
        1) -%user%\Downloads = exclude path %user%\Downloads from Auto-refresh.
        2) Include anything on drive C: in Auto-refresh.
        3) Exclude anything on drive N: from Auto-refresh.
      Use Case:
        Windows sometimes does not recognize a removable drive as removable. 
        This will trick XYplorer into watching this drive even if you turned off 
        "Include removable drives". When you now try to eject the drive it will 
        be locked by XYplorer and refuse ejection.
        This simple tweak can work around this Windows issue, assuming the drive 
        letter is N. It will suspend Auto-refresh when you browse any folder on 
        this drive:
          WatchIt=-N:\*

Re: Auto-Refresh auto-suspend

Posted: 04 Oct 2020 20:24
by eil
this tweak only kinda solves over-refresh, 'cause basically i already could do manual switch off. the problem is that i constantly forget to switch refresh back on, and it's not really comfortable to constantly manual refresh working folder. that's why i was searching/wishing for some automatization, instead of either having refresh or not.

Re: Auto-Refresh auto-suspend

Posted: 05 Oct 2020 18:23
by admin
Well, not on my list right now. :|

Re: Auto-Refresh auto-suspend

Posted: 05 Oct 2020 18:36
by eil
will wait for better times. :ninja: