GRFCONFIG(8) NetBSD System Manager's Manual (AMIGA Architecture) GRFCONFIG(8) NNAAMMEE ggrrffccoonnffiigg - alter grf device screen mode definitions at run time SSYYNNOOPPSSIISS ggrrffccoonnffiigg [--rr] _d_e_v_i_c_e [_f_i_l_e] DDEESSCCRRIIPPTTIIOONN ggrrffccoonnffiigg is used to change or view the screen mode definition list con- tained in a grf device. You may alter the console screen definition as well as the definitions for the graphic screen. The console will auto- matically reinitialize itself to the new screen mode. The following flags and arguments are interpreted by ggrrffccoonnffiigg: --rr Print out a raw listing of the mode definitions instead of the pretty list normally shown. _d_e_v_i_c_e The grf device to manipulate. This argument is required. _f_i_l_e The file which contains the mode definitions. If this argument is not specified, ggrrffccoonnffiigg will print out of a list of the modes currently loaded into the grf device. MMOODDEE DDEEFFIINNIITTIIOONN FFIILLEE The mode definitions are taken from a file which has lines of the format: num clk wid hi dep hbs hss hse ht vbs vss vse vt flags _n_u_m The mode number or 'c' for the console mode. _c_l_k The pixel clock in Hz. _w_i_d The screen mode's width. _h_i The screen mode's height. _d_e_p The bitdepth of the mode. _h_b_s _h_s_s _h_s_e _h_t The horizontal timing parameters for the mode in pixel values. All the values are relative to the end of the horizontal blank (beginning of the displayed area). _v_b_s _v_s_s _v_s_e _v_t The vertical timing paramters for the mode in line values. All the values are relative to the end of vertical blank (beginning of the displayed area). _f_l_a_g_s By default every mode uses negative horizontal and vertical sync pulses, it is non-interlaced and does not use scandoubling. default Use the default flags: -hsync -vsync doublescan Doublescan mode interlace Interlace mode +hsync Positive horizontal sync pulses -hsync Negative horizontal sync pulses +vsync Positive vertical sync pulses -vsync Negative vertical sync pulses sync-on-green Composite sync on green ------------------------------------------------------ | ^ | | vse | | (0,0) | | *----------------------------------- | | | ^ ^ | | | | vbe ! | | | | ! | | | | ! | | |<-hse |<-hbe ! |<-hbs | | | | | ! | hss->| hse->| hbe->| | | hi | | | | | | ! | | | | ! | | | |<============ wid =========+=====>| | | | ! | | | | ! | | | | ! | | | | v | | | ------------------------------------ | | ^ | | vbs | | | ------------------------------------------------------ ^ vss - ------- - ^ vse - ------- - ^ vbe SSEEEE AALLSSOO console(4), iteconfig(8), grfcl(4), grfcv(4), grfcv3d(4), grfet(4), grfrh(4), grfrt(4), grful(4) HHIISSTTOORRYY The ggrrffccoonnffiigg command first appeared in NetBSD 1.0 The mode definition file changed two times. In NetBSD 1.0 all horizontal values were videoclock cycle values instead of pixel values: num clk wid hi dep hbs hss hse hbe ht vbs vss vse vbe vt 1 31000000 640 480 8 80 86 96 102 104 480 489 492 517 520 2 31000000 640 480 8 80 86 96 102 104 240 244 246 258 260 3 31000000 640 480 8 80 86 96 102 104 960 978 984 1034 1040 In NetBSD 1.1 and NetBSD 1.2: num clk wid hi dep hbs hss hse hbe ht vbs vss vse vbe vt 1 31000000 640 480 8 640 688 768 816 832 480 489 492 517 520 2 31000000 640 480 8 640 688 768 816 832 240 244 246 258 260 3 31000000 640 480 8 640 688 768 816 832 960 978 984 1034 1040 the vertical values were used to select the interlace or doublescan mode. All vertical values were half the width for the interlace mode and twice the width for the doublescan mode. Beginning with NetBSD 1.3: num clk wid hi dep hbs hss hse ht vbs vss vse vt flags 1 31000000 640 480 8 640 688 768 832 480 489 492 520 default 2 31000000 640 480 8 640 688 768 832 480 489 492 520 interlace 3 31000000 640 480 8 640 688 768 832 480 489 492 520 doublescan 4 31000000 640 480 8 640 688 768 832 480 489 492 520 +hsync +vsync hbe and vbe are computed in the grf drivers. BBUUGGSS ggrrffccoonnffiigg can not set the modes for /dev/grf1, /dev/grf2 and /dev/grf4 and it will not work for /dev/grf0. NetBSD October 7, 1994 3