Schwoby Posted October 22, 2022 Share Posted October 22, 2022 relative information: i have two systems that share a monitor. one system is a laptop for work that i must log in and out of, the other is my personal system that has a power save mode turning the monitors off after 10 minutes of inactivity. the problem: work laptop, when logged out, has login screen that outputs to all connected monitors all the time (no power save mode for this screen). desired fix: i already have log-in and log-out scripts, so i'd like to add a script to the logout to disable the external monitors and a script for log-in to enable the external monitors (and adjust their relative position/placement). i've attached an image to show the configuration of the screens in their enabled state. screen 1 is the laptop and screen 2 & 3 are what i need to disable. i have found around half a dozen forum articles that are about a decade old. most, if not all, suggest actively running scripts to keep the monitors off. i believe this to mean their effect would be lost once the laptop is logged out of as the script would end with the session. Link to comment Share on other sites More sharing options...
Solution spudw2k Posted October 22, 2022 Solution Share Posted October 22, 2022 If you turn off extended displays (using Winkey+P for example), and back on, does it remember your last layout correctly? If so, perhaps simply calling displayswitch.exe from your logon and logout scripts will do the job? https://ss64.com/nt/displayswitch.html Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Schwoby Posted October 22, 2022 Author Share Posted October 22, 2022 i had no idea about the Win+P keyboard shortcut. the laptop does hold it's memory, so i think your solution of the dos DisplaySwitch command will work perfectly! spudw2k 1 Link to comment Share on other sites More sharing options...
Nine Posted October 22, 2022 Share Posted October 22, 2022 I made a Monitor Management example, that you could use if you need more control over your monitors (see my signature). Xandy 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now