Hitchhiker's Guide to Openbsd


Download 1.27 Mb.
Pdf ko'rish
bet172/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   168   169   170   171   172   173   174   175   ...   258
Bog'liq
obsd-faq49

DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0 
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
These two changes tell X we want to use a 24 bit display depth, and for 24 bit depths, we want the 
resolution 1280x1024. As no other resolution is listed for "Depth 24", the system will be forced to that 
resolution. 
We test as above, and... SUCCESS! We have what appears to be a very nice, high resolution display. 
http://www.openbsd.org/faq/faq11.html (9 of 14)9/4/2011 10:02:17 AM


11 - The X Window System
Note that ALL that is expected is a mesh pattern (very good for seeing how good your monitor 
REALLY is and also great for calibrating LCD displays, called the "
root weave
") and a movable cursor. 
It is not intended to be functional at this point. 
Now, we want to install this xorg.conf file so we can see how well we are really doing with usable 
running of X. 
# cp xorg.conf.new /etc/X11/xorg.conf
We can now try X using the normal startx(1) command. It works! 
It would probably be good to verify that we are at the resolution and color depth we desire, and also that 
we are running at a respectable refresh rate. We can do that with the 
xrandr(1)
and 
xdpyinfo(1)
commands. Among other things, xdpyinfo(1) tells us: 
[...]
screen #0:
print screen: no
dimensions: 1280x1024 pixels (433x347 millimeters)
resolution: 75x75 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x44
depth of root window: 24 planes
[...]
So, yes, we are running at 1280x1024 with a depth of 24 planes (bits). 
xrandr(4) tells us: 
SZ: Pixels Physical Refresh
*0 1280 x 1024 ( 433mm x 347mm ) *85 75 60
1 1280 x 960 ( 433mm x 347mm ) 85 60
[...]
which tells us we are running with an 85Hz refresh rate, so this should be a very comfortable setting for 
most users. 

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   168   169   170   171   172   173   174   175   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling