溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Fedora中顯示設(shè)備配置工具gtf和xdpyinfo怎么用

發(fā)布時間:2021-12-07 14:00:59 來源:億速云 閱讀:157 作者:小新 欄目:系統(tǒng)運維

這篇文章主要介紹Fedora中顯示設(shè)備配置工具gtf和xdpyinfo怎么用,文中介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們一定要看完!

3、gtf的用法;

gtf  h-resolution  v-resolution  refresh  [-v|--verbose]  [-f|--fbmode] [-x|--xorgmode]

舉例:我的顯示器支持1024x768 ,能達(dá)到85HZ,在X模式下;
[beinan@localhost ~]# /usr/X11R6/bin/gtf 1024 768 85 -x
# 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
Modeline "1024x768_85.00"  94.39  1024 1088 1200 1376  768 769 772 807  -HSync +Vsync

把上面的輸出的信息中Modeline一行,插入到/etc/X11/xorg.conf配置文件中的顯示器(Monitor)配置那段中;加入后類似;

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "LCD Panel 1280x1024"
        HorizSync    31.5 - 67.0
        VertRefresh  50.0 - 75.0
        Option      "dpms"
Modeline "1024x768_85.00"  94.39  1024 1088 1200 1376  768 769 772 807  -HSync +Vsync
EndSection

改動后,重啟X;重新進入桌面模式;

4、 xdpyinfo工具;

我們通過gtf 工具調(diào)整了顯示器的屬性,我們通過觀察一般就知道是不是可行了;比如屏幕不閃動的過于厲害;顯示區(qū)域處于顯示屏正中等;但我們還有一個測試工具xdpyinfo 來測試我們的調(diào)整 ;

xdpyinfo - display information utility for X (用于X的顯示信息測試工具);

[beinan@localhost ~]$ /usr/X11R6/bin/xdpyinfo

通過這個輸出,我們能查看到很多信息,最重要的有如下一段;

default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1024x768 pixels (302x232 millimeters)
  resolution:    86x84 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x3f
  depth of root window:    24 planes

我們可以在 xorg.conf中定義多個顯示屏幕,比如 1024x768;800x600等;顯示屏的定義的標(biāo)識符號序列從0開始,以此類推;其實定義好一個就足夠用;默認(rèn)的一般就行;如果我們自己調(diào)整,把1024x768類似的加入到screen 中色深為24那段的 Modes 行中;然后把默認(rèn)色深設(shè)置為24就好;

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

其實上面的一段,我們足可以把色深為16的那段刪除或者下面的一段每行前面加#號注掉;因為我們用的是 24的;

SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "800x600" "640x480"
EndSubSection

如果我們只有把 DefaultDepth 24 中的24改為16時,這段才起作用;

以上是“Fedora中顯示設(shè)備配置工具gtf和xdpyinfo怎么用”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI