Scroll to navigation

XF86VIDMODE(3X11) X FUNCTIONS XF86VIDMODE(3X11)

̾??

XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort - XFree86-VidMode ??ĥ???󥿥ե??????ؿ?

????

#include <X11/extensions/xf86vmode.h>
Bool XF86VidModeQueryExtension(

Display *display,
int *event_base_return,
int *error_base_return);
Bool XF86VidModeQueryVersion(

Display *display,
int *major_version_return,
int *minor_version_return);
Bool XF86VidModeGetModeLine(

Display *display,
int screen,
int *dotclock_return,
XF86VidModeModeLine *modeline);
Bool XF86VidModeGetAllModeLines(

Display *display,
int screen,
int *modecount_return,
XF86VidModeModeInfo **modesinfo);
Bool XF86VidModeDeleteModeLine(

Display *display,
int screen,
XF86VidModeModeInfo *modeline);
Bool XF86VidModeModModeLine(

Display *display,
int screen,
XF86VidModeModeLine *modeline);
Status XF86VidModeValidateModeLine(

Display *display,
int screen,
XF86VidModeModeLine *modeline);
Bool XF86VidModeSwitchMode(

Display *display,
int screen,
int zoom);
Bool XF86VidModeSwitchToMode(

Display *display,
int screen,
XF86VidModeModeInfo *modeline);
Bool XF86VidModeLockModeSwitch(

Display *display,
int screen,
int lock);
Bool XF86VidModeGetMonitor(

Display *display,
int screen,
XF86VidModeMonitor *monitor);
Bool XF86VidModeGetViewPort(

Display *display,
int screen,
int *x_return,
int *y_return);
Bool XF86VidModeSetViewPort(

Display *display,
int screen,
int x,
int y);

??????

X ?????Фؤ???³?????ꤹ?롣
???꤬Ŭ?Ѥ????륹???꡼?????ֹ??????ꤹ?롣
??ĥ???Ф??????ܥ??٥????ֹ椬?֤????롣
??ĥ???Ф??????ܥ??顼?ֹ椬?֤????롣
??ĥ?Υ᥸?㡼?С????????ֹ椬?֤????롣
??ĥ?Υޥ??ʡ??С????????ֹ椬?֤????롣
?⡼?ɹԤ??Ф??륯???å????֤????롣
???Υ????Ф????ѤǤ????ӥǥ??⡼?ɤο????֤????롣
0 ?????礭???????ˤϡ??????Ф????Υ⡼?ɤ??ڤ??ؤ??뤳?Ȥ򼨤??????? ?Ǥʤ??????ˤϡ????Υ⡼?ɤ??ڤ??ؤ??뤳?Ȥ򼨤???
0 ?Ǥʤ????硢?⡼?????ؤ??????å????뤳?Ȥ??ؼ??????롣
?ӥǥ??⡼?ɤΥ????ߥ????ͤ????ꡣ?ޤ????????ߥ????ͤ??֤????롣
??ǽ?ʥӥǥ??⡼?????Ƥ??Ф??륿???ߥ????ͤȥɥåȥ????å????֤????롣
???˥??˴ؤ??????????֤????롣
?ӥ塼?ݡ??Ȥ??Ф???˾?ޤ??? X ???֤????ꤹ?롣
?ӥ塼?ݡ??Ȥθ??ߤ? X ???֤??֤????롣
?ӥ塼?ݡ??Ȥ??Ф???˾?ޤ??? Y ???֤????ꤹ?롣
?ӥ塼?ݡ??Ȥθ??ߤ? Y ???֤??֤????롣

??¤??

Video Mode Settings:
typedef struct {

unsigned short hdisplay;
unsigned short hsyncstart;
unsigned short hsyncend;
unsigned short htotal;
unsigned short vdisplay;
unsigned short vsyncstart;
unsigned short vsyncend;
unsigned short vtotal;
unsigned int flags;
int privsize;
INT32 *private; } XF86VidModeModeLine; typedef struct {
unsigned int dotclock;
unsigned short hdisplay;
unsigned short hsyncstart;
unsigned short hsyncend;
unsigned short htotal;
unsigned short vdisplay;
unsigned short vsyncstart;
unsigned short vsyncend;
unsigned short vtotal;
unsigned int flags;
int privsize;
INT32 *private; } XF86VidModeModeInfo;
Monitor information:
typedef struct {

char* vendor;
char* model;
float bandwidth;
unsigned char nhsync;
XF86VidModeSyncRange* hsync;
unsigned char nvsync;
XF86VidModeSyncRange* vsync; } XF86VidModeMonitor; typedef struct {
float hi;
float lo; } XF86VidModeSyncRange;

????

???????δؿ??? XFree86-VidModeExtension ?????г?ĥ?ؤΥ??󥿥ե????????󶡤??롣 ???γ?ĥ?ϡ??ӥǥ??⡼?ɤ??䤤???碌??ưŪ???ѹ????⡼?????ؤ????????? ?Ǥ????褦?ˤ??롣 ???????δؿ????Ȥ????ץꥱ?????????ϡ? -lXxf86vm ?????ꤷ?ƥ??󥯤??Ԥ??ʤ????Фʤ??ʤ???

?⡼?ɹԴؿ?

?ؿ? XF86VidModeGetModeLine ?ϡ????????򤵤??Ƥ????ӥǥ??⡼?ɤ????????䤤???碌?˻??Ѥ????롣 ???δؿ????ƤӽФ??ץ????????ϡ?ͽ?????????Ƥ????Ƥ??? XF86VidModeModeLine ??¤?ΤؤΥݥ??󥿤??Ϥ??ʤ????Фʤ??ʤ??????δؿ??ϡ????ι?¤?Τ? ?ƥե??????ɤ??ͤ????ꤹ?롣

?????ФΥץ饤?١??Ȥ??ͤ?????????(???ߤ? S3 ?????ФˤΤ????ƤϤޤ?)?? ???δؿ??Ϥ????ͤΤ????˥??????????????Ƥ롣 ???????äơ? privsize ?? 0 ?Ǥʤ????硢?ƤӽФ????ץ????????? XFree(private) ???ƤӽФ??ƥ??????????????ʤ????Фʤ??ʤ???

XF86VidModeGetAllModeLines ?????ƤΥӥǥ??⡼?ɤ??Ф??????????֤??? ???δؿ????ƤӽФ??ץ????????ϡ? XF86VidModeModeInfo ??¤?Τ????????ؤ??褦?˴ؿ??????ꤹ???ݥ??󥿤Υ??ɥ쥹??Ϳ???롣 ???󤬳?Ǽ?????????????ϡ??ؿ? XF86VidModeGetAllModeLines ??ưŪ?˳??????Ƥ??Τǡ??ƤӽФ???¦?Ϥ????????????ʤ????Фʤ??ʤ??? ?????κǽ??????Ǥϡ????ߤΥӥǥ??⡼?ɤ??б????롣

?ؿ? XF86VidModeModModeLine ?ϡ??ꥯ?????Ȥ??줿???꤬ͭ??(?㤨?Х??˥???ǽ?Ϥ??ۤ??Ƥ??ʤ?)?ʤ??С? ???ߤΥӥǥ??⡼?ɤ򤽤????????ѹ??Ǥ??롣

XF86VidModeDeleteModeLine ???Ȥäƥ⡼?ɤ????????뤳?Ȥ??Ǥ??롣???ꤵ?줿?⡼?ɤϡ?¸?ߤ????⡼ ?ɤȥޥå????ʤ????Фʤ??ʤ??? ?ޥå??????ȸ??ʤ??????ˤϡ?Ϳ?????줿 XF86VidModeModeInfo ??¤?Τ????ƤΥե??????ɤ??ޥå????ʤ????Фʤ??ʤ??????????? privsize ?ե??????ɤ? private ?ե??????ɤϽ????? ?????????⡼?ɤ????ߤΥ⡼?ɤǤ??????硢?ǽ??˼??Υ⡼?ɤؤ????ؤ????? ?????롣?Ǹ??ޤǻĤä??⡼?ɤ????????뤳?ȤϤǤ??ʤ???

?????⡼?ɤ?ͭ???Ǥ????ɤ????ϡ??ؿ? XF86VidModeValidateModeLine ?ǥ????å??Ǥ??롣 ???ꤵ?줿?⡼?ɤ򥵡??Ф????ѤǤ????ʤ???(???ʤ??????????С??????ɡ? ???˥????Ȥ߹??碌?ˤ????⡼?ɤ??Ф??????郎?????????????Ƥ???)???? ?δؿ??? MODE_OK ???֤??? ?????Ǥʤ??????ˤϡ??ؿ??ϥ⡼?ɤ??????Ǥ?????ͳ?򼨤??ͤ??֤?(?????? xf86.h ???????????Ƥ???)??

?⡼?????ؤ??ؿ?

?ؿ? XF86VidModeSwitchMode ???ƤФ????ȡ?X ?????Фϥӥǥ??⡼?ɤ???(???뤤????)?Υӥǥ??⡼?ɤ? ?ѹ????롣?ؿ? XF86VidModeSwitchToMode ???Ȥ??ȡ????ꤷ???⡼?ɤ?ľ???ѹ????뤳?Ȥ??Ǥ??롣 ?ޥå??󥰤Ͼ??Ҥδؿ? XF86VidModeAddModeLine ????????Ʊ???褦?˻??ꤹ?롣 ?ؿ? XF86VidModeLockModeSwitch ???Ȥ??ȡ??⡼?????ؤ??ε??Ĥȶػߤ??Ԥ????Ȥ??Ǥ??롣 ?⡼?????ؤ??Υꥯ?????Ȥϡ??ؿ? XF86VidModeSwitchMode ?? XF86VidModeSwitchToMode ?θƤӽФ????ޤ??ϥ⡼?????ؤ??Υ??????????󥹤ˤ??ä??????롣

???˥??ؿ?

?ؿ? XF86VidModeGetMonitor ?ϡ??????Ф????˥??ˤĤ???ǧ?????Ƥ??????????֤??? hsync ?ե??????ɤ? vsync ?ե??????ɤϤ??줾?? XF86VidModeSyncRange ??¤?Τ????????ؤ??? ???? hsync ?? nhsync ?Ĥ????Ǥ??ޤߡ????? vsync ?? nvsync ?Ĥ????Ǥ??ޤࡣ Υ??Ū???ͤ? XF86Config ?ե???????Ϳ?????줿???硢 hi ?? low ???ͤ????????ʤ롣

vendor, model, hsync, vsync ?γƥե??????ɤˤ?ưŪ?˥????꤬???????Ƥ??????Τǡ??ƤӽФ?¦?????? ???ʤ????Фʤ??ʤ???

?ӥ塼?ݡ??ȴؿ?

?ؿ? XF86VidModeGetViewPort ?ϲ??ۥ????꡼???ˤ??????ӥ塼?ݡ??Ȥκ??????ΰ??֤??䤤???碌?롣 ?ޤ????ؿ? XF86VidModeSetViewPort ?Ϥ??ΰ??֤??ѹ????롣

????¾?δؿ?

?ؿ? XF86VidModeQueryVersion ???Ȥ??ȡ??????Ф??Ȥ߹??ޤ??Ƥ??뤳?γ?ĥ?ΥС?????????Ĵ?٤????롣

?ؿ? XF86VidModeQueryExtension ?ϡ????γ?ĥ?˳??????Ƥ??줿?Ǥ⾮?????ֹ??Υ??顼?ֹ??ȥ??٥????ֹ??? ?֤???

??Ϣ????

XFree86(1), XF86Config(4/5), xvidtune(1)

????

Kaleb Keithley, Jon Tombs, David Dawes, Joe Moss

Version 4.1.0 XFree86