Windows 10 sleep issues
#1
I don't know if I should be posting this in the Windows section since I don't use kodi on a windows machine, so my apologies if this is the wrong section.

I have a RPI2 and a Windows 10 desktop that I use as a video source via SMB shares. Since I care about my electric bill I have my desktop sleep after 15 min. of inactivity. I have set up my RPI2 to wake the PC when it needs something with the help of these wakeonlan.xml settings:
Code:
<onaccesswakeup>
   <netinittimeout>60</netinittimeout>
   <netsettletime>1000</netsettletime>
   <wakeup>
       <host>10.0.0.22</host>
       <mac>MY-MA-CA-DD-RE-SS</mac>
       <pingport>0</pingport>
       <pingmode>0</pingmode>
       <timeout>900</timeout>
       <waitonline>38</waitonline>
       <waitonline2>40</waitonline2>
       <waitservices>5</waitservices>
   </wakeup>
</onaccesswakeup>

The wakeonaccess works fine and that is not the problem, but after, for example, a scheduled library update has finished and the RPI2 is idle again the w10 machine doesn't go to sleep after 15 min. What I found out through running this command in the windows command prompt "powercfg -requests" that there is an active remote client active that prevents it from sleep:
Code:
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>powercfg -requests
DISPLAY:
None.

SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine.

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.


C:\WINDOWS\system32>

I also use the auto library updater on the RPI2 to run every 3 hours and it runs for example at 3am in the morning which no user activity is going on. What I learned from this, is that the driver request that prevent it from sleep goes away after 75-80 minutes and the W10 machine can sleep again. So the server sleeps but not after the normal 15min. of idle time, but after 75-80 minutes (when the request goes away).

I have searched for hours and found multiple "solutions" for this problem, but none of them works:
- disabled Homegroup
- disabled the service: wmpnetwk.exe
- Several power options like "allow the computer to sleep when sharing media"
- probably alot more that i forgot

There is one solution that worked. Overriding the request with this command:
Code:
powercfg -requestsoverride DRIVER \FileSystem\srvnet system
But this is not the way it should be, beause then it also sleeps when I'm streaming a movie and that is not an option.

Might be a relevant piece of kodi log:
Code:
03:00:00 15415.486328 T:1761834048  NOTICE: service.libraryautoupdate-0.9.8 : Starting network check
03:00:00 15415.621094 T:1761834048  NOTICE: service.libraryautoupdate-0.9.8 : Video bibliotheek bijwerken
03:00:00 15415.750977 T:1522529344  NOTICE: VideoInfoScanner: Starting scan ..
03:00:00 15415.751953 T:1522529344  NOTICE: WakeOnAccess [10.0.0.22] trigged by accessing : smb://10.0.0.22/Movies/
03:00:14 15429.375000 T:1522529344  NOTICE: WakeOnAccess sequence completed, server started
03:00:25 15440.908203 T:1522529344  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:25
03:00:25 15441.163086 T:1326445632  NOTICE: Thread LanguageInvoker start, auto delete: false
03:00:26 15441.333008 T:1326445632  NOTICE: -->Python Interpreter Initialized<--
03:00:26 15441.843750 T:1326445632  NOTICE: Artwork Downloader: ######## Artwork Downloader: Initializing...............................
03:00:26 15441.843750 T:1326445632  NOTICE: Artwork Downloader: ## Add-on Name = Artwork Downloader
03:00:26 15441.843750 T:1326445632  NOTICE: Artwork Downloader: ## Version     = 13.1.0
03:01:59 15534.949219 T:1968496640  NOTICE: Samba is idle. Closing the remaining connections
03:02:53 15589.145508 T:1326445632  NOTICE: Artwork Downloader: script stopped


ps: sorry for my english, it's not my native language.
Reply
#2
Hi...did you find any solution regarding windows 10 cannot automatically sleep after WOL?
Reply
#3
ok solved for now thanks anyway
Reply

Logout Mark Read Team Forum Stats Members Help
Windows 10 sleep issues2