Fix automatic resolution change on monitor power off/sleep

Get your trial key

Live community: https://discord.gg/s39XdMV
​New user ? Check guides

scenezx
DONATOR
Joined: 06/01/2014 - 14:23
Tue, 10/20/2015 - 15:37 #1

Hello all,

I have seen a few posts on the forums regarding an issue that only causes issues when powering off the monitor/screen the bot fails as the screen resolution is changed by windows automatically.

This is an issue caused by Windows changing the resolution automatically when the monitor is either powered off or goes into sleep mode, thankfully there is a very easy workaround to this by modifying specific files in the registry, i can confirm this resolves all issues.

Please note this was copied from a guide online, credit to original poster - https://xcitestudios.com/blog/2015/05/15/does-windows-screw-up-your-monitor-resolution-when-your-monitor-sleeps-notably-when-a-game-is-open/
(mods if against rules please remove)

1. Fire up the registry editor by launching regedit.exe – Start->Run (or hold the Win key and press R) or if you use the Windows 8/8.1 screen, just start typing it.

2. You’ll get a a UAC prompt if you have it enabled, so click Yes on that.

3. Once in the Registry Editor, navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration

4.Under there you’ll see several keys, one that begins with SIMULATED_. Open that and there should be a folder called 00. Click it

5. On the right hand side look for the keys PrimSurfSize.cx and PrimSurfSize.cy. Set these (using decimal!) to your monitor resolution, e.g. PrimSurfSize.cx to 1920 and PrimSurfSize.cy to 1080.

6. Under the 00 key is another 00 key, go in to that.

7. Set ActiveSize.cx and ActiveSize.cy to your resolution (again click decimal!) as above.

8. Restart so Windows pays attention to your demands.

This resolves all issues with windows changing the resolution on monitor power off/sleep, preventing ROS-BOT from failling.

Happy botting all!

diablo2fan31
Joined: 10/21/2015 - 21:23
Tue, 10/27/2015 - 13:59

Thanks for this. Also can the bot be ran with the monitor turned off? (Obviously it will still run, but the other day i turned it off and when i came back the bot was acting funny and im pretty sure the window was slightly resized and im wondering if this was actually my problem and had nothing to do with turning off/on monitor).


stormyj
Joined: 11/18/2015 - 21:11
Fri, 11/20/2015 - 12:30 (Reply to #2)

New to the forum, hi all, new to the botting, with this bot anyway, but Id thought I would answer this question and also make a suggestion.  First of all, turning off your monitor is simply doing that.  It has no affect on the computer itself. The data streaming to your monitor is still there, coming from the computer, but the monitor, not being on, is not receiving it.  The computer itself, or video card, doesnt know this. So, simply turning off the monitor will not affect the computer operation.  If there is a change in resolution, it is coming from the computer somewhere.  With newer video cards, there are multiple programs that might affect the resolution, ie. windows, video card applications, or some other program.  Im having problems with errors when I leave the computer and it goes into sleep mode, shuts off the bot. Im going to turn off all sleep settings, screensavers, hard drive shutdown commands, and simply shut off the monitor.  Anyways, check all your settings on all programs that might cause a sleep mode, color change, or even a screen saver.  Please anyone if you see any incorrect info, please reply and let me know.
Me


OuttaControlX
DONATOR
Joined: 11/28/2014 - 10:56
Mon, 11/23/2015 - 19:20
  1. Fire up the registry editor by launching regedit.exe – Start->Run (or hold the Win key and press R) or if you use the Windows 8/8.1 screen, just start typing it.
  2. You’ll get a a UAC prompt if you have it enabled, so click Yes on that.
  3. Once in the Registry Editor, navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration
  4. Under there you’ll see several keys, one that begins with SIMULATED_. Open that and there should be a folder called 00. Click it
  5. On the right hand side look for the keys PrimSurfSize.cx and PrimSurfSize.cy. Set these (using decimal!) to your monitor resolution, e.g. PrimSurfSize.cx to 1920 and PrimSurfSize.cy to 1080.
  6. Under the 00 key is another 00 key, go in to that.
  7. Set ActiveSize.cx and ActiveSize.cy to your resolution (again click decimal!) as above.
  8. Restart so Windows pays attention to your demands

loki40
Joined: 11/13/2015 - 18:10
Tue, 02/16/2016 - 06:31

Hello.
I purchased a new monitor and had this issue, i changed the settings as above but when i turning off the monitor the bot stop- When turning on i have a msg (above a grey screen) saying something about D3D error. The bot still running (i must push F6 to stop the bot and close the error´s window)
Any one know how to fix it??


hurzfurz
Joined: 03/01/2016 - 09:07
Wed, 03/02/2016 - 18:06

cant find "simulated" in windows 10....
may someone help me..?

thx


thewook
DONATOR
Joined: 05/10/2014 - 18:05
Thu, 03/03/2016 - 08:15

Thanks for posting this. Solved a problem I was trying to resolve for sometime!


WilleWallo
Joined: 10/01/2015 - 21:48
Tue, 03/15/2016 - 13:43

Awesome. Thank you very much for sharing !


papyparis
Joined: 05/17/2016 - 08:58
Fri, 05/27/2016 - 02:11

Hey there,

I'm new to all this, so f​irst off, thank you guys for all the guides out here

 

I read and try to apply your advice to my laptop but can't seem to find the SIMULATED folder

Here is what i find after following every step to the opening of the Configuration folder

Does anyone know how to proceed?

So far I can't bot for mone than 2 hours without the d3 window closing and RoS BoT running without it, clicking around the desktop


Advertisements

Advertisements