1. markjjordan's Avatar
    I recently bought an HP Stream 7. One of the major problems I've had with it is battery drain when not in use. In older computers and operating systems, sleep mode was a heavy sleep; apparently sleep mode for today's computers and O/S's means light sleep, whereby the device can still execute some things, including Wi-Fi. This is great for those that want a table to function like a phone, but not for those like me that just want it for a reader and occasional use.

    I was losing 50% or more of battery over the course of 8 hours over night… not cool. Research on the web showed that the 2 major causes of the drain were the Wi-Fi and the volume not being muted. So… my manual procedure for putting my device away was to disable the Wi-Fi and set the volume to mute. This worked greatly; yesterday evening I went to bed and unplugged my 100% charged HP Stream 7 after disabling the Wi-Fi and setting the volume to mute.

    10 hours later, my battery was still at 100%... Yes, you read that correctly.

    I keep testing this, and it still rings true… every time there is no more than 1% loss.

    But how tedious is it to disable the Wi-Fi and set to mute when setting the device aside, and re-enabling when I resume use? Windows Task Scheduler and PowerShell to the rescue.

    I created a couple of PowerShell scripts that will automate this for both scenarios. I also created a couple of task scheduler definitions that will execute the PowerShell scripts as a reaction to entering and exiting the connected standby mode.

    So… now whenever my device goes into connected standby, either by pressing the power button or via timeout, the Wi-Fi will automatically get disabled and the volume set to mute. Conversely, when the unit comes out of connected standby mode, the Wi-Fi will automatically get enabled and the volume unmuted.

    Following is a link to the ConnectedStandbyAutomation.zip that contains the PowerShell scripts, as well as the exports of my 2 task scheduler definitions. Just unzip the contents of the zip file to a folder called <c:\program files\ConnectedStandbyAutomation>, and import the task scheduler definitions to task scheduler.

    1drv.ms/179rdI1 (paste into your browser's URL/address bar... apparently I don't have enough points to post URL's yet)

    Hope this helps someone. I'm sure this could also be used on other tablets as well, such as the Dell Venue, with like results.
    Last edited by markjjordan; 02-20-2015 at 10:23 AM.
    02-15-2015 06:57 PM
  2. k72's Avatar
    Great idea. Thanks.
    02-16-2015 08:12 PM
  3. markjjordan's Avatar
    Many have asked for the URL... the URL is above... paste it into your browser's address / URL field. I've increase the size of it above so it can stand out more.
    02-20-2015 10:21 AM
  4. Derausgewanderte's Avatar
    thank you. Just imported the tasks. Will see if I see improvements.
    02-22-2015 03:29 PM
  5. brad63's Avatar
    I find that just shutting down the tablet and restarting the stream it boots up quick enough that I am not having this problem.
    k72 likes this.
    02-22-2015 03:56 PM
  6. os1019's Avatar
    Once this script is installed is there a way to uninstall it as well? I would love to do a compare and contrast.
    02-27-2015 10:09 AM
  7. markjjordan's Avatar
    Go into Sheduled Tasks and either disable the tasks, or delete them.
    os1019 likes this.
    02-27-2015 01:02 PM
  8. Tilgado's Avatar
    It seems that you have to load the link in the desktop version of IE on the Stream 7 for the link to work not the IE on the start screen. Thank you and sorry for the pm.
    02-27-2015 09:08 PM
  9. tksuther's Avatar

    Do I have to create the (sub)folder "ConnectedStandbyAutomation" under C:>Program files. I do not have an existing ConnectedStandbyAutomation folder.

    Also, What happens with the PowerShell Scripts? Do I add only the .xml files to the task scheduler?
    Last edited by tksuther; 03-17-2015 at 10:08 AM. Reason: Added a question
    03-17-2015 09:26 AM
  10. marthugh's Avatar

    decided to register just to say thanks. My new tablet was going completely flat in less than 6 hours. I installed the two tasks and over a 48 hour soak, sleeping with no power connected it only dropped from 97% to 56%.

    Thank you for posting this.

    03-25-2015 11:42 AM
  11. dorelse's Avatar
    First, thanks for the scripts to help with battery life!

    Do the scripts happen to take into account if the Stream is on AC power, that it wouldn't shut WiFi down? I kind of think that might be an ideal solution perhaps?

    I've gotten used to shutting it down now, so that my still be my best option since boot times are so small...
    03-26-2015 01:31 PM
  12. bells0's Avatar
    Can anyone give a windows simpleton like me a step by step guide on how to do this??
    03-27-2015 05:32 PM
  13. alex_morris's Avatar
    Those scripts are fantastic, but I found they required one small tweak to work correctly on my Stream 7.

    In line 2 of both scripts I had to change 'wi-fi' to 'WiFi' to reflect the name assigned to the wireless adapter on my tablet; Windows had called it "WiFi" instead of "wi-fi". Of course, I could have renamed the adapter from "WiFi" to "wi-fi"; either approach would work.
    03-27-2015 10:42 PM
  14. WhistlerQD's Avatar
    I'm having issues with this automated solution. The powershell scripts both work just fine. The problem is that the task which is meant to disable wifi and enable mute actually runs after the tabled is woken up. I have not messed with those tasks in any way.
    Do any of you guys have similar problem?
    04-05-2015 02:11 AM
  15. nobb's Avatar
    I'm trying to use this on my Dell Venue 8 Pro which has the same problem. I've followed the instructions and successfully imported the scripts but it doesn't seem to work. Any ideas on how to troubleshoot?

    Interestingly, I've actually made my own script a while ago using a simple .bat file to turn the wifi adapter on and off triggered by the same event IDs as per the OP. It works great, but once in a while the script doesn't get a chance to run before the computer goes to sleep even though the task priority has been set to the highest. So I'd like to try this Power Shell script to see if it might work better.
    05-11-2015 07:26 PM
  16. nobb's Avatar
    I think I found the answer to my problem above. It was a privilege problem. I would suggest you add the following argument to your .xml schedule file to bypass any issues with privileges:

    -executionpolicy bypass

    That fixed my problem.

    I also removed the mute part of the script since I have a Dell Venue 8 Pro and I don't believe that really effects my tablet. Will have to test further to be able to confirm.

    Lastly, I would also recommend in the .xml file to set the task priority from 7 (default) to 0 (the highest). This ensures the task will always run with high priority.
    chovan and WhistlerQD like this.
    05-11-2015 10:11 PM
  17. xterminus's Avatar
    Thanks for this. I was able to get everything running correctly. It's a pretty sweet tweak.
    07-12-2015 06:51 PM
  18. Matthew Hardgrove's Avatar
    I tried to install this on my Steam 7, it doesn't seem to be working at all. I put in the folder it asks for and imported both. My wifi and volume are not being muted or turned off when I put in idle mode. Can anyone help please? I have four files in the folder, imported both, but it isn't working and the battery drain is still terrible. I also tried shutting off all live tiles as well as disabling anything from running in the background. This thing is still guzzling the battery and when in idle mode still losing battery life by leaps and bounds.
    07-21-2015 04:08 PM
  19. mkdr's Avatar
    Anyone still have the script? The download links is dead.
    08-06-2017 05:12 PM

Similar Threads

  1. What to do with my lumia 535
    By Petar Liovic in forum Windows Phones
    Replies: 2
    Last Post: 02-24-2015, 04:20 AM
  2. How do I stop my text messages from being cc'd to my inbox in group messaging?
    By Windows Central Question in forum Ask a Question
    Replies: 1
    Last Post: 02-16-2015, 05:50 AM
  3. Everything you need to know about Windows 10 for phones
    By WindowsCentral.com in forum Windows Central News Discussion & Contests
    Replies: 0
    Last Post: 02-15-2015, 06:11 PM
  4. Replies: 0
    Last Post: 02-15-2015, 05:11 PM