I was searching for an answer to a quite similar question to yours. I'm using Kodi as the client on a Raspberry Pi accessing a Windows (SMB) Share on a Win7 box. I would like to prevent the Win7 box from sleeping if Kodi is still reading files over the network i.e. I'm watching a video.
I believe this is a non-issue, because Windows will issue a "stay awake" -type request to power management, suspending sleep, when it detects the share being accessed.
To provide some evidence for this, on the Win7 box from an elevated command prompt, type powercfg /?
and it will explain:
-REQUESTS
Enumerate application and driver Power Requests. Power
Requests prevent the computer from automatically powering off
the display or entering a low-power sleep mode.
Then play back some content via Kodi.
Next, back in your elevated command prompt, type powercfg -REQUESTS
. You should see the following:
DISPLAY:
None.
SYSTEM:
[DRIVER] \FileSystem\srvnet
An active remote client has files opened on this machine.
[DRIVER] \FileSystem\srvnet
An active remote client has recently sent requests to this machine.
AWAYMODE:
None.
I'll confess that I haven't tested how this pans out in practice. However, in theory you should be able to use a Balanced power plan in Windows whilst still being able to watch content using Kodi, without Windows going to sleep part way through.
Oh, since I do NOT have media streaming on, I didn't think about this option, and it doesn't seem to work anyway. The remote device is set to use smb://pc/sharename as its source. – frumbert – 2015-08-11T21:27:16.483
@frumbert I'm afraid I can't help then :c – cascer1 – 2015-08-12T09:16:20.277