Navigation |
Display SettingsWhen I'm working at my desk, my laptop sits in a docking station with a dual monitor configuration. However, I often work undocked, or work with a projector attached (i.e. in a meeting). When I return my laptop to the dock, I have to re-configure my monitor configuration. It is not a difficult task, involving only about half a dozen clicks, and taking only about 20 seconds. Right click on the desktop, select properties, adjust monitor 1 size, click monitor 2, click "Extend the desktop", click OK. It is not difficult, but it is annoying. So I did what any able-bodied developer would do; I wrote a utility to make things easier for me: dispsetc.exe With this utility, you can save your display settings configuration to a snapshot, and restore your display settings from a snapshot. Here are the options:
To use the utility, you first configure you display settings to a point you'd like to keep. Then run the utility with the -s argument:
When you want to restore your configuration, run the utility with the -r argument:
If you want to see the display settings stored in a configuration, run the utility with the -p argument:
I personally have configurations for single monitors in (1400x900), (1280x1024) and (1024x768); and for dual monitors in (1400x900; 1280x1024) and (1280x1024,1280x1024). There is one problem I've run into with this code - when I'm displaying a single screen simultaneously on both the built-in screen, and an external screen (i.e. projector), the utility fails to change the configuration.
|
Recent blog postsUser login |