Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
the_clasik_ely pe Simpatie
Femeie
24 ani
Hunedoara
cauta Barbat
24 - 80 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOWS] Powercfg to Change Monitor Timeout to 1 min or Never Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Easiest way to do it is just create two new shortcuts with each of the following two lines:
powercfg -change -monitor-timeout-ac 1
and
powercfg -change -monitor-timeout-ac 0

No CMD window, no .bat files, no VBS, just the two shortcut (LNK) files.



*************************

You can save the following 2 lines of code as 2 bat files, 1 bat for each line below.
This will change your current power plan settings for monitor timeout either to 1 minute or to never.
Save bat files where you have quick access to them (you can even set hotkey for them but you will need to make shortcuts to the bat files, then right click on shortcut and select properties - there is a Shortcut Key field.

Note: this was done on PC not on laptop. If it's not working change AC to DC in the command lines below.

OneMinute.bat

powercfg -change -monitor-timeout-ac 1


Never.bat

powercfg -change -monitor-timeout-ac 0


You can start the current power plan settings via Start - Run - control /name Microsoft.PowerOptions /page pagePlanSettings
This way you can check that the bat files work.

Sources:


_______________________________________


pus acum 5 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
If you don't want those "nasty" cmd windows showing, then you have options:

1. Make VBS file to run the bat files.

Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "E:\! Change Monitor Timeout\Never.bat" & Chr(34), 0
Set WshShell = Nothing


2. You can run another batch file with START /MIN CMD.EXE /C mybatchfile.bat from within the command prompt.
From outside it will bring the cmd console window but to avoid that, you can create a shortcut file with properties modified to start minimized.

3. To do this, use the program Bat To Exe Converter to convert your batch file to an executable file.
Bat To Exe Converter:
When converting into an executable, you will find an option to run your file as an Invisible application in the visibility section. Thus, when you run it, it will run without a window.

Source for all 3:


_______________________________________


pus acum 5 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
This is how to view power plan change timestamp in the Event Viewer (ie when you changed it):

- open Event Viewer - either search it in Start Menu or click Start - Run - eventvwr.msc

- open the Windows Logs branch

- click on System

- now right click on System and choose Filter Current Log

- look for UserModePowerService and select it then click outside the list so it remains selected (event ID for UserModePowerService is 12, you can filter by event ID too, so you don't have to search through the list)

- click the OK button

Now you get a list with all the power plan changes.


_______________________________________


pus acum 2 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
updated post #1

_______________________________________


pus acum 2 ani
   
Pagini: 1  

Mergi la