chvmode Command
Purpose
Changes the current output device and viewport size of the X server.
Note: This command is usable only while the X server is running.
Syntax
chvmode [ { + | - } l ] [ { + | - } c ] [ -vsize WidthxHeight [ @ VSync ]
Description
The chvmode command changes the current output device and viewport size used by the X server.
Viewport size specification is usable only for a CRT display and its resolution has panning option.
You could also use the System Management Interface Tool (SMIT) to run this command.
Flags
Item | Description |
---|---|
+/-c | Enables or disables CRT output. |
+/-l | Enables or disables LCD output. |
-vsize WidthxHeight[ @VSync ] | Specifies viewport size of CRT display and the vertical synchronization (refresh rate in Hz). If @VSync is not specified, the current vertical synchronization frequency is used. |
Security
Access Control: Any User
Auditing Events: None
Exit Status
The following exit values are returned:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Examples
- To disable the LCD
panel and enable the CRT display, enter:
chvmode -l +c
- To change the current
CRT viewport to be 1024x768, enter:
chvmode -vsize 1024x768
- To specify VGA mode
with high refresh rate of 75Hz, enter:
chvmode -vsize 640x480@75
Files
Item | Description |
---|---|
/usr/bin/X11/chvmode | Contains the chvmode command. |