FYI, I live in a 3 story wood house. The floors giggle when we walk, and it is enough to trigger something in my mouse.
I turn my mouse off if I want to let my computer and display goto sleep
For the super lazy, display the current state of sleep in powershell
Code: Select all
# ac main dc battery
# for shortcut target powershell.exe -ExecutionPolicy Bypass -File "This file"
#Get a list of all options for this plan
$Options = powercfg -query SCHEME_CURRENT
$index = 0
$line = '';
#Find index of line that contains Sleep Settings
For($i=0; $i -lt $Options.Length; $i++)
{
$line = $Options[$i]
# if($line -contains "VIDEOIDLE")
if($line.ToLower() -like "*standbyidle*")
{
echo $line.Trim()
$index = $i
break
}
}
#AC Setting is 5 lines later
$sleepSetting = $Options[$index + 5]
#trim off the beginning of the string, leaving only the value
$sleepSettingTrimmed = $sleepSetting.Substring($sleepSetting.IndexOf(":")+2)
#Show Current Setting
#hex to dec
$sleeptime = [uint32]"$sleepSettingTrimmed"
if($sleepSettingTrimmed -eq "0x00000000")
{
Write-Host "Set for Streaming - Sleep is currently disabled on AC."
}
else
{
write-host "Sleep Normal Time to Sleep on AC is currently $sleeptime seconds."
}
pause
------
adapted from
https://superuser.com/questions/739658/ ... -windows-7
There are lots of premade power settings see below
Subgroup GUID: 9596fb26-9850-41fd-ac3e-f7c3c00afd4b (Multimedia settings)
Power Setting GUID: 03680956-93bc-4294-bba6-4e0f09bb717f (When sharing media)
Possible Setting Index: 000
Possible Setting Friendly Name: Allow the computer to sleep
Possible Setting Index: 001
Possible Setting Friendly Name: Prevent idling to sleep
Possible Setting Index: 002
Possible Setting Friendly Name: Allow the computer to enter Away Mode
Current AC Power Setting Index: 0x00000001
Current DC Power Setting Index: 0x00000000
Be nice if MickeySoft told us how to use them