In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the Fedora display device configuration tools gtf and xdpyinfo how to use, the article is very detailed, has a certain reference value, interested friends must read it!
3. The usage of gtf
Gtf h-resolution v-resolution refresh [- v |-- verbose] [- f |-- fbmode] [- x |-- xorgmode]
For example: my monitor supports 1024x768, can reach 85HZ, in X mode
[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
Insert the output information above into the Modeline line and insert it into the Monitor configuration section in the / etc/X11/xorg.conf configuration file; similar to
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
After the change, restart X; re-enter desktop mode
4. Xdpyinfo tool
We adjust the properties of the monitor through the gtf tool, and we generally know whether it is feasible by observing; for example, the screen does not flash too much; the display area is in the middle of the display screen; but we also have a test tool xdpyinfo to test our adjustment.
Xdpyinfo-display information utility for X (display information testing tool for X)
[beinan@localhost ~] $/ usr/X11R6/bin/xdpyinfo
Through this output, we can see a lot of information, the most important of which is the following paragraph
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
We can define multiple display screens in xorg.conf, such as 1024x768 / 800x600, etc.; the sequence of identifiers defined by the display screen starts from 0, and so on; in fact, defining one is enough; the default is general; if we adjust it ourselves, add 1024x768 similar to the Modes line with a color depth of 24 in screen; then set the default color depth to 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
In fact, in the above paragraph, we can delete the paragraph with a depth of 16 or the paragraph below with a # sign in front of each line; because we use 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600"640x480"
EndSubSection
This will only work if we change 24 in DefaultDepth 24 to 16:00.
The above is all the contents of the article "showing how to use gtf and xdpyinfo in Fedora". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.