Fedora 顯示設備配置工具介紹(二)
以下主要講Fedora 顯示設備配置工具介紹,希望對于Fedora 顯示設置不太懂的可以看看,希望對大家有所幫助。以下接《Fedora 顯示設備配置工具介紹(一)》。
3、gtf的用法;
gtf h-resolution v-resolution refresh [-v|--verbose] [-f|--fbmode] [-x|--xorgmode]
舉例:我的顯示器支持1024x768 ,能達到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等;顯示屏的定義的標識符號序列從0開始,以此類推;其實定義好一個就足夠用;默認的一般就行;如果我們自己調(diào)整,把1024x768類似的加入到screen 中色深為24那段的 Modes 行中;然后把默認色深設置為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 顯示設備配置工具介紹》對大家有所幫助。
【編輯推薦】
- Fedora 顯示設備 配置工具介紹(一)
- Fedora 顯示設備 配置工具介紹(二)
- Linux 系統(tǒng)硬件管理的基礎知識(三)
- Linux 系統(tǒng)硬件管理的基礎知識(四)
- Ubuntu Linux至少適合5種人