Paraglider BartPE Plugins

SetMaxRes Plugin

This is a plugin for my SetMaxRes program which is used to set the video resolution from the command line.

SetMaxRes has the following command line parameters:


SetMaxRes {h<horizontal_res>}
          {v<vertical_res>}
          {b<bit_depth>}
          {f<frequency>}
          {d}
          {i}
          {o}
          {t<TimeoutInSeconds>}

Example Usage: 

SetMaxRes h1280 v1024 b32 f85

which sets a horizontal refresh rate of 1280, vertical refresh rate of 1024, a bit depth of 32 bits and a frequency of 85 hz.

If the d parameter is added then additional information is displayed about the supported display settings.

If the o parameter is added then the setmaxres registry settings will be ignored and values specified on the command line will be used instead.

If the optional t parameter is added then after the display settings are changed a dialog will be shown for the timeout value in seconds asking to confirm the change in settings. If nothing is selected within the timeout period then the display settings will revert to the original values.

SetMaxRes i

Display details about current display adapter and device only. Do not update display parameters.

The highest supported frequency which is less than or equal to the specified frequency will be used. If no frequency is specified then the highest supported frequency will be used.

If any of the h, v or b parameters are not specified then the default settings configured for the VgaSave device will be used instead.

Settings for specified monitor types can be configured in the registry and these will override values specified on the command line and in the VgaSave settings. The following registry keys can be used:

[Software.AddReg]
0x4, "Paraglider\SetMaxRes\SNY07B0","h", 0x00000500
0x4, "Paraglider\SetMaxRes\SNY07B0","v", 0x00000400
0x4, "Paraglider\SetMaxRes\SNY07B0","b", 0x00000020
0x4, "Paraglider\SetMaxRes\SNY07B0","f", 0x00000055
 

The above sets a horizontal refresh rate of 1280, vertical refresh rate of 1024, a bit depth of 32 bits and a frequency of 85 hz for my Sony G520 monitor. The subkey in the Paraglider\SetMaxRes registry key used corresponds to the the part of the the device id that follows Monitor\.

The VMWare video device is artificially allocated a device ID of VMWARE to allow its parameters to be specified in the SetMaxRes registry settings.