title: How to avoid the screen to lock while the Windows Phone is plugged in
body: <p>Easy as that, in <a href="/questions/tagged/android" class="post-tag" title="show questions tagged &#39;android&#39;" rel="tag"><img src="https://i.stack.imgur.com/tKsDb.png" height="16" width="18" alt="" class="sponsor-tag-img">android</a> there's a setting called <code>Stay awake</code> that will prevent your phone to lock down while you're using it for debugging an app.</p>
  
  <p>I'm looking for the same thing (could be better) for Windows Phone 8.1.</p>
  
  <p>Every time I hit <kbd>F5</kbd> I need to unlock my phone or I would get the following error: </p>
  
  <blockquote>
    <p>DEP6600 : Deployment failed. Cannot deploy app when device screen is locked. Please make sure that the device screen is not locked, and try again.</p>
  </blockquote>
  
  <p>or  </p>
  
  <blockquote>
    <p>Error: Application launch failed. Ensure that the device screen is unlocked and device is developer unlocked. For details on developer unlock, visit <a href="http://go.microsoft.com/fwlink/?LinkId=195284" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkId=195284</a></p>
  </blockquote>
  
  <p>if I run the <code>AppDeployCmd</code> tool myself.</p>
  
  <p>Is there a way I can avoid that? (without changing my lock screen time out every time of course)</p>