NAME
vga – configure a VGA card |
SYNOPSIS
aux/vga [ –BcdilpvV ] [ –b bios–string ] [ –m monitor ] [ –t tilt ]
[ –x file ] [ mode [ size ] ] |
DESCRIPTION
Vga configures a VGA controller for various display sizes and
depths. Using the monitor type specified in /env/monitor (default
vga) and the mode given as argument (default 640x480x1), vga uses
the database of known VGA controllers and monitors in /lib/vgadb
(see vgadb(6)) to configure the display via
the devices provided by vga(3). The options are: –b bios–string
–c disable the use of the hardware graphics cursor. –d include the color palette in whatever actions are performed, usually printing the contents. –i when used with –p display the register values that will be loaded. –l load the desired mode. –m monitor
–v print a trace of the functions called. –V print a verbose trace of the functions called. –t can be used to change the tilt of the screen. The value is one of none, left, inverted and right. See vga(3). –x file
The mode must appear in /lib/vgadb as a value for one of the monitor entries. The usual modes are 640x480x[18], 800x600x[18], 1024x768x[18][i], 1280x1024x[18][i], 1376x1024x8, and 1600x1200x8. A trailing i indicates interlaced operation. The default mode is 640x480x8. Size is of the form X x Y and configures the display to have a virtual screen of the given size.
Using the monitor name vesa instructs vga to use VESA BIOS calls
to configure the display. Also, if our VGA controller can't be
found in vgadb, vga will try the VESA calls. There are no entries
for the vesa monitor in vgadb. For a list of available VESA modes
and connected displays, use
|
EXAMPLES
Change the display resolution:
|
FILES
/env/monitor display type (default vga). /lib/vgadb VGA configuration file. |
SOURCE
/sys/src/cmd/aux/vga |
SEE ALSO
vga(3), vgadb(6), |
BUGS
Aux/vga makes every effort possible to verify that the mode it
is about to load is valid and will bail out with an error message
before setting any registers if it encounters a problem. However,
things can go wrong, especially when playing with a new VGA controller
or monitor setting. It is useful in such cases to have
the above command for setting the controller to a known state
at your fingertips. Scaling modes currently work with Intel and NVIDIA video adapters only, using VESA. Intel doesn't support scaleaspect mode.
Display switching currently works with Intel video adapters only,
using VESA. |