Solved Turn off display after 10 mins; lock desktop after 30 mins?

swiftie

Old git Member
Member
VIP
Local time
9:36 PM
Messages
149
Location
Hampshire, England
Is it possible to turn the displays off after 10 minutes of inactivity, but for the display to lock only after 30 minutes of inactivity? The numbers are examples, but probably close to what I'd set.

I'm keen to save power, but having a short inactivity period, but I don't want to be entering my password all the time.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x643.40 gigahertz Intel Core i7-3770 Multi-core ...16GbAMD Radeon HD 7700
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
You can use the power saver options to turn the screen off after a certain amount of time.

Even if the monitor is turned off due to inactivity, you can also set a screen saver to blank screen after the same about of time that you used in the power options to turn off the monitor. Put a check by the "On resume, display logon screen". Then add a delay between the time that the screen saver comes on and the time that the computer locks:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ScreenSaverGracePeriod"="1111"
You can change the 1111 to any number between 0 seconds and 2,147,483 seconds.


If you would rather not use the screen saver method...
...you could use a scheduled task that triggers after an idle period:
Code:
rundll32.exe user32.dll, LockWorkStation
 

Attachments

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Then add a delay between the time that the screen saver comes on and the time that the computer locks:

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"ScreenSaverGracePeriod"="1111"
You can change the 1111 to any number between 0 seconds and 2,147,483 seconds.
Thanks for reminding me of this. I've recently done a test of the grace period, and found that it didn't work at all. Unfortunately, I can't remember if this was on my previous XP system or my newer Win7 system. I'll experiment.

I discovered that I didn't have a screensaver set at all on this Win7 system. Maybe this is why the grace period wasn't working.

There's one thing about the display power saving that puzzles me. Usually, it goes into "hardware" power saving, which has a totally black screen, and the power light changes colour. But occasionally, I get a "pseudo" power saving mode where the screens are black, but the mouse pointer remains in the middle of the primary display. I'd like to know what's going on here...
 

My Computer My Computer

At a glance

Windows 7 Ultimate x643.40 gigahertz Intel Core i7-3770 Multi-core ...16GbAMD Radeon HD 7700
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
I tested the ScreenSaverGracePeriod key before posting. It worked for me :-)

Custom screen savers might not check/use that key.

I'm not sure why your mouse/cursor still shows sometimes. Maybe a screensaver will cure that too.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
I tested the ScreenSaverGracePeriod key before posting. It worked for me :-)
My problem is that with my memory (the one in my head), I can't remember how long it's been since I left my PC.

With the screensaver and power set to trigger after 10 minutes of inactivity, and the lock with a 20 minute (1200 sec) grace period, it seems to be locked every time.

I know... I'll leave my PC now, and come back in 20 minutes... if only I can remember!

OK, the 20 minute alarm went off, and my display was locked. I wonder if it was locked after 15 minutes (i.e. halfway between the power/screensaver timeouts, and the length of the grace period.

I had the screensaver set to "Blank", but I've changed that to "3D Text".

This time, the screen didn't blank at all, presumably because a popup (from a scheduled task) intervened.

On the second attempt, the screen blanked after 10 minutes, and was locked at 12 minutes. My guess is that, as I experienced in the past, the grace period is effectively zero.

Put another way: I've never found the grace period setting has any effect at all, on my PC. It always requires the password, even within two seconds of the screensaver.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x643.40 gigahertz Intel Core i7-3770 Multi-core ...16GbAMD Radeon HD 7700
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
Just as a test, set the power settings to "Turn off the display:" = Never
Set (leave?) the grace period to 1200 seconds.
Set the screen saver to 1 minute.
Use blank screen as the screen saver.

Open the Control Panel applet for Date and Time.

Wiggle the mouse until the second hand on the clock reaches an easy to remember spot.
Then don't touch anything for one minute.

Once the screen saver comes on...
...wait 10 seconds
...then wiggle the mouse.

If the computer requires a password, then we have missed some setting or some part of your system is non-standard (e.g. custom log on screen and/or custom screen savers).
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Just as a test, set the power settings to "Turn off the display:" = Never
I really appreciate your help - it keeps me going when I loose interest in things; this is happening a lot as I get older... things just don't seem as important any more.

Anyway, in the interim I had a flash of inspiration (having a good day yesterday). Why not change the settings in the obvious way to achieve what I was after:
  1. Power: Turn Display off after 10 minutes
  2. Screen Saver: Wait 30 mins; require password
  3. Grace Period: I left this at 20 mins
I tested this setup, and obviously it did what it says. My display now turns off after 10 mins inactivity, and doesn't initially need a password when I become active again. But after 30 minutes, it needs a password.

I'd been running without "Require a password" ever since I got this new PC in late 2012. I have a "Lock Desktop" button on my keyboard, and habitually use that. I think I'd confused the password prompt which this caused with the screensaver:requires one, and was assuming I had automatic locking enabled.
One of these days I'll buy one of those proximity detectors which automatically lock your desktop when you're away from the PC.

I'll go back and set the grace period to 5 seconds, just to be closer to "standard" settings. (I wonder if regedit keeps a log of changes, so it would be on record that I'd "fiddled")

You probably assumed that I'd already tried this, so suggested alternative settings, but the "kiss" principle applies here... especially that second "s"!
 

My Computer My Computer

At a glance

Windows 7 Ultimate x643.40 gigahertz Intel Core i7-3770 Multi-core ...16GbAMD Radeon HD 7700
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
Sadly, the simple solution did not come to my old mind :-(

Glad that you got it working.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
It would be interesting to find out why the grace period (which was set to 1200 seconds) has no effect - I'm prompted for my password after 30 minutes; the "wait+grace" should have equated to 50 minutes.

Still, no mind. Life really is too short to worry about this one. It's nice to know that there's a limit to my preoccupation for detail.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x643.40 gigahertz Intel Core i7-3770 Multi-core ...16GbAMD Radeon HD 7700
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
Back
Top