Sleep mode activated when PC not idle - why?

Some programs may have a "prevent idling to sleep" option while they are running, and it sounds like that is what you want.
Yes, but more accurately, I want my backup program (for example) to "suppress sleep mode activation while running".

I don't understand why Win7 doesn't have a program attribute that could be specified by the user to do this very thing (ie, "while this program is running do not enter sleep mode").
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
Some Backup programs have options that can prevent sleeping.
Have you checked your Backup program documentation or forum for this?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Some programs may have a "prevent idling to sleep" option while they are running, and it sounds like that is what you want.
Yes, but more accurately, I want my backup program (for example) to "suppress sleep mode activation while running".

I don't understand why Win7 doesn't have a program attribute that could be specified by the user to do this very thing (ie, "while this program is running do not enter sleep mode").

Here is an article that pretty much says what these guys have said. It might answer some questions for you. https://support.sosonlinebackup.com/entries/21663546-can-a-backup-run-if-sleep-mode-is-turned-on
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium 32-Bit - Build 7600 SP1
CPU
Intel Core i3-2120 3.30Ghz
Motherboard
Asus P8Z68-V LX Intel Z68 Socket H2 ATX
Memory
Kingston 4 GB DDR3 1333 mhz
Graphics Card(s)
AMD Radeon HD6670
Sound Card
Sound Blaster Audigy SE 24-Bit
Monitor(s) Displays
Asus VE228
Screen Resolution
1440 X 900
Hard Drives
OCZ Vertex 3 120 GB Sata 3 SSD ==
Kingston SH103/S3 120 G Hyper X 120 GB SSD ==
Western Digital 500 GB Caviar Green 7200 RPM ==
PSU
Corsair CX600M == 600 Watt
Case
NZXT Apollo - Silver with Clear Side Panel
Cooling
Three 120 mm Fans
Keyboard
Microsoft Natural 4000
Mouse
Microsoft Custom Optical 3000
Internet Speed
AT&T Fiber Optic Wireless Network
Antivirus
Microsoft Security Essentials
Browser
Chrome
Other Info
120 mm Blue LED Fan -- Three Blue LED Lazer Light Sticks
I'll bet you that the paid version of Macrium Reflect has this sleep control in it.

Otherwise, I suggestion one of the following:
  • Determine your average backup time and change your sleep time to this plus some padding of minutes
  • Turn off automatic sleep and launch your backup program using a shell that will follow with a command to put the computer to sleep once the backup program completes (see nircmd)
  • Switch to backup software that has sleep mode control
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavillion dv6 (dv6-6165dx)
OS
Windows 7 Home Premium x64
CPU
AMD Vision A8-3500M 4 Core
Motherboard
AMD
Memory
8Gb
Graphics Card(s)
AMD Radeon HD 6620G
Screen Resolution
1366x768
Hard Drives
Hitachi Travelstar 500Gb
Internet Speed
Realtek RTL8188CE 802.11b/g/n
unbob let me see if I understand this correctly. You don't like how Windows 7 sleep mode works when you are backing up. Thats okay, some like it and some don't. It has been explained how Windows Sleep works and how you can change some settings that might help but they don't solve your problem. You have been given suggestion on 3rd party program you might want to investigate to see if they will meet your needs. If I understand you correctly (post # 15) your main concern is that you are on solar power so you need to backup using the least amount of power possible. My understanding is a back up will use what ever power is needed no mater what mode the computer is in to complete the backup job. I don't know of any laptop that will draw enough power in any mode to effect any quality solar system installed for use in a dwelling. The point being, I don't think what every method or program you decide on for your back up will effect your solar power system.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
^ He really should have said that he runs on "battery power"... the solar cells recharge the batteries; he doesn't run directly off of the solar cells. :)
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavillion dv6 (dv6-6165dx)
OS
Windows 7 Home Premium x64
CPU
AMD Vision A8-3500M 4 Core
Motherboard
AMD
Memory
8Gb
Graphics Card(s)
AMD Radeon HD 6620G
Screen Resolution
1366x768
Hard Drives
Hitachi Travelstar 500Gb
Internet Speed
Realtek RTL8188CE 802.11b/g/n
cytherian thank you. I have a better understanding now.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
No problem, Mr. Bear. Incidentally, ever seen this polar bear video? :)
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavillion dv6 (dv6-6165dx)
OS
Windows 7 Home Premium x64
CPU
AMD Vision A8-3500M 4 Core
Motherboard
AMD
Memory
8Gb
Graphics Card(s)
AMD Radeon HD 6620G
Screen Resolution
1366x768
Hard Drives
Hitachi Travelstar 500Gb
Internet Speed
Realtek RTL8188CE 802.11b/g/n
No not until now. It just shows how wonderful Polar Bears are.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
I'll bet you that the paid version of Macrium Reflect has this sleep control in it.

Otherwise, I suggestion one of the following:
  • Determine your average backup time and change your sleep time to this plus some padding of minutes
  • Turn off automatic sleep and launch your backup program using a shell that will follow with a command to put the computer to sleep once the backup program completes (see nircmd)
  • Switch to backup software that has sleep mode control
  • Your 2nd suggestion is probably the best solution for me. The NirCmd command-line utility looks like a very handy tool and I'll research further to see if I can use it. Thanks for your post.
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
^ He really should have said that he runs on "battery power"... the solar cells recharge the batteries; he doesn't run directly off of the solar cells. :)
Yes, of course, I'm running on battery power which is charged by my solar panels during the day.
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
No. That is not my main concern - in fact it has nothing to do with my concern.

My concern is that sleep mode (as defined by Mr. Softy) actually means "put the computer into sleep mode if the user is idle". It has nothing to with whether the computer is idle or not. That makes no sense to me.

To prove my point, if the user initiates one or more programs which are actively running and performing work, and the user either falls asleep, drops dead or leaves the computer to do whatever, sleep mode is entered after x minutes (assuming the sleep mode feature is "turned-on").

Yes, I understand how Win7 sleep mode works - no, I don't agree with it's implementation.
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
Yup, it's when the USER is idle, so when the computer detects no keyboard/mouse input for X time.
LOL@the user dropping dead :)
 

My Computer My Computer

OS
N/A
Post #15 by unbob
If there are no application programs running, I don't want the PC sitting there for 2 hours and wasting power (I'm solar powered so that's a big deal).

Sorry I though that something that is a big deal was a concern.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Post #15 by unbob
If there are no application programs running, I don't want the PC sitting there for 2 hours and wasting power (I'm solar powered so that's a big deal).

Sorry I though that something that is a big deal was a concern.
My point is that my #1 concern (and the topic of this thread) is the way sleep mode functions. The topic here is not how to prevent wasting power.

Of course, I don't want to waste power - doesn't everyone?
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
SetThreadExecutionState function

I think this is what I've been looking for ...

SetThreadExecutionState function

"Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running."

Exactly!
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
I'll bet you that the paid version of Macrium Reflect has this sleep control in it.

Otherwise, I suggestion one of the following:
  • Determine your average backup time and change your sleep time to this plus some padding of minutes
  • Turn off automatic sleep and launch your backup program using a shell that will follow with a command to put the computer to sleep once the backup program completes (see nircmd)
  • Switch to backup software that has sleep mode control
Re nircmd, has this function: "Put your computer in 'standby' mode". Is that the same as "sleep mode"?

The nircmd page does not mention "sleep" at all.
 

My Computer My Computer

Computer Manufacturer/Model Number
HP dv6t-2100
OS
Windows 7 Home Premium 64bit.
CPU
Intel Core i5 CPU M 430 @ 2.27GHz, 2261 MHz
Memory
4GB
Hard Drives
Toshiba MK5056GSY
Back
Top