Losing Wi-Fi AFTER Sleep

Page 1 of 4 123 ... LastLast
  1. Paul Black's Avatar
    Posts : 15,097
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1

    Losing Wi-Fi AFTER Sleep


    Occasionally [ NOT ALL the time ], I have TWO problems, one of which I have a workaround for [ Problem 1 ], and the other is at present unsolved [ Problem 2 ], but BOTH occur after waking from sleep, whereby the Wireless Icon in the Taskbar shows as a globe [ NO Wi-Fi and NO Wi-Fi list ].

    There is NO problem with Ethernet [ Wired ].

    BOTH Problem 1, AND, Problem 2, work correctly if I perform a Restart because it Re-Establishes the Wi-Fi Connection.

    I have tried MANY MANY different methods [ Looked at Log files, Event Logs, run PowerCFG Reports, etc, etc to name a few ] to resolve this, and if I were to list them ALL, this would make this post VERY VERY long indeed. Therefore I am happy to use workarounds until such time that I can address this again when I have more time.



    Problem 1: [ Workaround ]

    If the Wi-Fi DOES show in Control Panel > Network and Internet > Network Connections, then running the below Batch Script gets me back online . . .

    Code:
    
    @echo off
    echo. & echo  Processing . . .
                  netsh interface set interface "Wi-Fi" disable
                  netsh interface set interface "Wi-Fi" enable & timeout /t 5 /nobreak >nul
    echo  Current Network Adapter Status . . .
                  netsh interface show interface
    echo. & echo  Processing Complete.
    echo. & echo ^>Press ANY key to EXIT . . . & pause >nul & Exit

    It only takes a few seconds and I can live with that. The bonus is that the above does NOT require a Restart.



    Problem 2:

    If the Wi-Fi does NOT show in Control Panel > Network and Internet > Network Connections, I have to Restart the Laptop to Re-Establish the Wi-Fi Connection, hence trying to find a Workaround rather than keep Restarting the Laptop, which is OLD and takes a while.

    [ Screenshots ]

    WITHOUT Network Adapter
    Losing Wi-Fi AFTER Sleep-tf_network_adapters_without.jpg
    WITH Network Adapter
    Losing Wi-Fi AFTER Sleep-tf_network_adapters_with.jpg
    WITHOUT Network Adapter ERROR
    Losing Wi-Fi AFTER Sleep-tf_network_adapters_with_error.jpg
    Wi-Fi MISSING
    Losing Wi-Fi AFTER Sleep-tf_network_connections_without.jpg
    Wi-Fi Adapter - Power Management
    Losing Wi-Fi AFTER Sleep-tf_wireless_adapter_power_management.jpg
    Wi-Fi Class GUID
    Losing Wi-Fi AFTER Sleep-tf_wi-fi_class_guid.jpg

    [ Collection of Data ]

    In order to get ALL the Wi-Fi information that I need, I have run . . .

    Code:
    
    ipconfig /all
    wmic nic get name, index
    netsh interface show interface
    powershell Get-NetAdapter ^| format-list
    netsh wlan export profile key=clear folder="C:"
    netsh wlan show profiles
    netsh wlan show drivers
    netsh wlan show wirelesscapabilities
    netsh wlan show wlanreport

    I also have the TWO Qualcomm Atheros AR9285 Wireless Network Adapter System Files that are found in the C:\Windows\System32\Drivers [ athwnx.sys & vwifibus.sys ] folder. I also have a netathrx.inf file in the C:\Windows\INF folder.

    The above is just background information on PART of what I have performed SO FAR.

    [ Workaround ]

    MY QUESTION:

    As I have Exported the Wi-Fi Profile [ When FULLY working ] as an .xml file . . .

    > netsh wlan export profile key=clear folder="C:"

    . . . would it be enough to use a Batch Script to Import the .xml file and have the Wi-Fi back ONLINE using . . .

    > netsh wlan add profile filename="C:\XML_FileName.xml" user=all

    If NOT, is there a way that this can be achieved please?



    NOTE:

    I REALLY want a Workaround for this rather than resetting SETTINGS or producing and posting pages and pages of logs or data.



    EDIT:

    I have been thinking about this.

    In order to Add / Setup a Wi-Fi Network Offline [ Manually ] so to speak, which is what this Tutorial does . . .

    > How to Add a Wireless Network Profile in Windows 10

    . . . would . . .

    > netsh wlan add profile filename="C:\XML_FileName.xml" user=all

    . . . do EXACTLY the same thing?

    I am waiting for this problem to reoccur so that I can test the above methods, but ANY input would be appreciated.



    Thanks in advance,
    Last edited by Paul Black; 01 Sep 2021 at 08:13.
      My Computer

  2. RickC's Avatar
    Posts : 872
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #2

    Have you tried whether DevCon's Restart will do the trick as a workaround? It looks like it can be used in a batch file to restart devices.

    Info from Microsoft:
    Windows Device Console (Devcon.exe)
    DevCon Restart - parameters
    Example: Restart a device

    Other info:
    Downloading DevCon for Windows 10

      My Computer

  3. Paul Black's Avatar
    Posts : 15,097
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #3

    Thanks for the reply @RickC, it is appreciated,

    RickC said:
    Have you tried whether DevCon's Restart will do the trick as a workaround? It looks like it can be used in a batch file to restart devices.

    Info from Microsoft:
    Windows Device Console (Devcon.exe)
    DevCon Restart - parameters
    Example: Restart a device

    Other info:
    Downloading DevCon for Windows 10

    It will take some time to go through this so it is a job for tomorrow.
      My Computer

  4. Paul Black's Avatar
    Posts : 15,097
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #4

    Hello @RickC,

    Thanks for the reply.

    That appears to require the download of the WDK which is quite big.

    The problem I have is that the Wi-Fi disappears from the Network Connections page, so there is NO Device to Restart. That is why I am waiting for the problem to happen again and then use the .XML file to see if I can get it back Online.

      My Computer

  5. RickC's Avatar
    Posts : 872
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #5

    The specific Windows 10 version downloads appear to be ~6MB but you have to hunt them out rather than download the entire WDK... just MS being typically helpful MS.
      My Computer

  6. MaloK's Avatar
    Posts : 933
    Windows 7
       #6

    @Paul Black,

    I think you must enable "Allow computer to turn off this device" for sleep to work correctly.

    I remember a laptop crashing completely while resuming because of that.
    Last edited by MaloK; 08 Sep 2021 at 09:16.
      My Computer


  7. Paul Black's Avatar
    Posts : 15,097
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #7

    Hello @RickC,

    RickC said:
    Have you tried whether DevCon's Restart will do the trick as a workaround? It looks like it can be used in a batch file to restart devices.
    RickC said:
    The specific Windows 10 version downloads appear to be ~6MB but you have to hunt them out rather than download the entire WDK... just MS being typically helpful MS.
    First of all, many thanks for the links and information.

    There is indeed a Batch Script that performs the renaming [ conversion process ] from the CAB to devcon.exe.

    Unfortunately, the latest version that is available is v1809.
      My Computer

  8. Paul Black's Avatar
    Posts : 15,097
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #8

    Hello @MaloK,

    MaloK said:
    I think you must enable "Allow computer to turn off this device" for sleep to work correctly.

    I had initially tried that setting BOTH On and Off as part of my diagnostics prior to posting this thread, but thanks for input.

      My Computer

  9. Paul Black's Avatar
    Posts : 15,097
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #9

    UPDATE:

    The problem occurred again this morning when I woke up the Laptop, the FIRST time in about 4 days. The Laptop is ALWAYS put to sleep & woken up several times a day.

    I did notice that the Wi-Fi Tab was MISSING from Settings > Network & Internet > Wi-Fi [ I blanked out some of the Network info ] . . .

    Losing Wi-Fi AFTER Sleep-wi-fi_1.png

    I tried running . . .

    Code:
    
    ipconfig /release
    ipconfig /renew
    arp -d *
    nbtstat -R
    nbtstat -RR
    ipconfig /flushdns
    ipconfig /registerdns

    . . . but to NO avail.

    I also ran FreeBooters ResetNetworkCompenents.bat file, but that required a Restart, which is NOT what I want. I am looking for LIVE solution that does NOT require a Restart.

    I also tried Importing the Profile that I had previously Exported . . .

    Code:
    
    netsh wlan add profile filename="C:\XML_FileName.xml" user=all

    . . . again to NO avail.

    I also checked that the Network Drivers were NOT being removed from the System32 folder for some reason, and they were STILL there.

    I have another couple of options that I can try the next time this occurs, which I will report.

    I am looking at these at the moment => 7 Ways to Import and Export Wireless Network Profile Settings
      My Computer

  10. MaloK's Avatar
    Posts : 933
    Windows 7
       #10

    @Paul Black

    Did you try: just to restart "WLAN AutoConfig" Service see how it goes.

    Powershell:
    Code:
    $WLANProc = Get-CimInstance Win32_Process | Where-Object {$_.CommandLine -eq "c:\windows\system32\svchost.exe -k LocalSystemNetworkRestricted -p"}
    Stop-Process -Id $WLANProc.ProcessId -Force
    Start-Service WlanSvc
      My Computer


 
Page 1 of 4 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:11.
Find Us




Windows 10 Forums