zyxw 发表于 2003-9-18 11:59:28

请大家帮帮忙!

我装了redhat,suse,但都只能进640x480的X界面,而进不了1024x768的X,我修改了XFreeconfig文件,指定用1024x768,则startx失败,说没有相应的mode。
我的显卡是intel的845,显示器是dell的E151FPb(平板显示器),resolution是:
Horizontal scan range
30 kHz to 61 kHz (automatic)

Vertical scan range
56 Hz to 76 Hz (automatic)

Optimal preset resolution
1024 x 768 at 60 Hz

Highest preset resolution
1024 x 768 at 75 Hz

   我想,问题应该不会是显卡,而是显示器,是不是linux自己对1024x768用了超过75的刷新率,致使启动X失败?
   请各位高手指点一二。
   谢谢!

Joker_cn 发表于 2003-9-18 12:39:15

贴出你的XF86Config

zyxw 发表于 2003-9-19 06:44:59

我的XF86config文件如下:

Section "Files"
FontPath   "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/local"
FontPath   "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
FontPath   "/usr/X11R6/lib/X11/fonts/URW"
FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath   "/usr/X11R6/lib/X11/fonts/PEX"
FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath   "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath   "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath   "/usr/X11R6/lib/X11/fonts/truetype"
FontPath   "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/CID"
FontPath   "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath   "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath   "/usr/X11R6/lib/X11/fonts/xtest"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/mouse"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
InputDevices "/dev/pointer0"
InputDevices "/dev/pointer1"
InputDevices "/dev/pointer2"
InputDevices "/dev/pointer3"
EndSection

Section "ServerFlags"
Option       "AllowMouseOpenFail"
Option       "RandR" "on"
EndSection

Section "Module"
Load         "dbe"
Load         "type1"
Load         "speedo"
Load         "freetype"
Load         "extmod"
Load         "glx"
Load         "v4l"
Load         "dri"
EndSection

Section "InputDevice"
Driver       "Keyboard"
Identifier   "Keyboard"
Option       "MapName" "Standard Keyboard [ pc104 ]"
Option       "Protocol" "Standard"
Option       "XkbLayout" "us"
Option       "XkbModel" "pc104"
Option       "XkbRules" "xfree86"
EndSection


Section "InputDevice"
Driver       "mouse"
Identifier   "Mouse"
Option       "ButtonNumber" "5"
Option       "Device" "/dev/mouse"
Option       "Name" "Autodetection"
Option       "Protocol" "imps/2"
Option       "Vendor" "Sysp"
Option       "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
Option       "CalcAlgorithm" "CheckDesktopGeometry"
HorizSync    30-61
Identifier   "Monitor"
ModelName    "1024X LAPTOP DISPLAY PANEL"
VendorName   "DELL"
VertRefresh56-76
UseModes   "Modes"
EndSection


Section "Modes"
Identifier   "Modes"
EndSection


Section "Screen"
DefaultDepth 16
SubSection "Display"
    Depth      15
    Modes      "640x480"
EndSubSection
SubSection "Display"
    Depth      16
    Modes      "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
    Depth      24
    Modes      "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
    Depth      32
    Modes      "640x480"
EndSubSection
SubSection "Display"
    Depth      8
    Modes      "640x480"
EndSubSection
Device       "Device"
Identifier   "Screen"
Monitor      "Monitor"
EndSection


Section "Device"
BoardName    "i845"
BusID      "0:2:0"
Driver       "i810"
Identifier   "Device"
Screen       0
Option       "Rotate" "off"
VendorName   "Intel"
EndSection


Section "ServerLayout"
Identifier   "Layout"
InputDevice"Keyboard" "CoreKeyboard"
InputDevice"Mouse" "CorePointer"
Option       "Clone" "off"
Option       "Xinerama" "off"
Screen       "Screen"
EndSection

Section "DRI"
    Group      "video"
    Mode       0660
EndSection

Joker_cn 发表于 2003-9-19 08:12:22

Section "Monitor"
Option "CalcAlgorithm" "CheckDesktopGeometry"
HorizSync 30-61
Identifier "Monitor"
ModelName "1024X LAPTOP DISPLAY PANEL"
VendorName "DELL"
VertRefresh 56-76 ------------------------->把这儿改成你要用的刷新率(注意不要超出范围)
UseModes "Modes"
EndSection


Section "Modes"
Identifier "Modes"
EndSection


Section "Screen"
DefaultDepth 16
       SubSection "Display"
                Depth 15
                Modes "640x480"
        EndSubSection
        SubSection "Display"
                Depth 16
               Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 24
                Modes "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth 32
               Modes "640x480"
        EndSubSection
        SubSection "Display"
                Depth 8
                Modes "640x480"
        EndSubSection
Device "Device"
Identifier "Screen"
Monitor "Monitor"
EndSection

红色的那儿有很多模式,你把你不用的删了就对了
只留下一个你要的
注意subsection.....endsubsection的模式

x88 发表于 2003-9-19 08:55:25

不是上到75吗,那应该没有超过范围的呀?

Veldrin 发表于 2003-9-19 09:00:44

你试试不就知道了。

zyxw 发表于 2003-9-19 09:57:40

"VertRefresh 56-76 ------------------------->把这儿改成你要用的刷新率(注意不要超出范围)"
这里直接改成60
再把这里:
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
改成:
SubSection "Display"
Depth 16
Modes "1024x768"

startx后出现:
(EE) I810(0): No valid modes.
(EE) Screen(s) found, but none have a usable configuration.

但是1024x768◎60赫兹在windows下是可以的,是不是说显卡的驱动不支持这种mode?
请大家再看看,我觉得从XF86config文件是改不出什么东西了。

Veldrin 发表于 2003-9-19 10:12:54

"VertRefresh 56-76 ---------------------这个只是垂直刷新率,并不是windows下的那个60hz

Joker_cn 发表于 2003-9-19 10:19:05

#xrandr
看看当前刷新率多少?

Joker_cn 发表于 2003-9-19 11:03:23

把中间mode那一段去了试试
#Section "Modes"
#Identifier "Modes"
#EndSection


还有UseModes "Modes"
去了,再试

zyxw 发表于 2003-9-19 11:53:32

"#xrandr
看看当前刷新率多少?"

640x480 60Hz

mozilla 发表于 2003-9-19 11:59:36

xrandr -s 1024x768 -r 75.1
-r后面是刷新频率,慢慢试吧

zyxw 发表于 2003-9-19 12:04:32

"xrandr -s 1024x768 -r 75.1
-r后面是刷新频率,慢慢试吧 "

我的理解:xrandr还是是去XF86config文件中找匹配的模式,只不过临时变换模式罢了。不知道这样理解对不对?

zyxw 发表于 2003-9-19 12:06:26

“把中间mode那一段去了试试
#Section "Modes"
#Identifier "Modes"
#EndSection


还有UseModes "Modes"
去了,再试”


问题依旧。
我想可能是linux中对intel的i810的驱动只支持640x480。

mozilla 发表于 2003-9-19 12:08:33

我的意思是先找出适合的刷新频率。
75.1能起来75不见得能起来,差一点都不行。
页: [1] 2
查看完整版本: 请大家帮帮忙!