QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 732|回复: 28

请大家帮帮忙!

[复制链接]
发表于 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失败?
   请各位高手指点一二。
   谢谢!
发表于 2003-9-18 12:39:15 | 显示全部楼层
贴出你的XF86Config
回复

使用道具 举报

 楼主| 发表于 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[0]"
  Option       "MapName" "Standard Keyboard [ pc104 ]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "pc104"
  Option       "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  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[0]"
  ModelName    "1024X LAPTOP DISPLAY PANEL"
  VendorName   "DELL"
  VertRefresh  56-76
  UseModes     "Modes[0]"
EndSection


Section "Modes"
  Identifier   "Modes[0]"
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[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection


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


Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection

Section "DRI"
    Group      "video"
    Mode       0660
EndSection
回复

使用道具 举报

发表于 2003-9-19 08:12:22 | 显示全部楼层
Section "Monitor"
Option "CalcAlgorithm" "CheckDesktopGeometry"
HorizSync 30-61
Identifier "Monitor[0]"
ModelName "1024X LAPTOP DISPLAY PANEL"
VendorName "DELL"
VertRefresh 56-76 ------------------------->把这儿改成你要用的刷新率(注意不要超出范围)
UseModes "Modes[0]"
EndSection


Section "Modes"
Identifier "Modes[0]"
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[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection

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

使用道具 举报

发表于 2003-9-19 08:55:25 | 显示全部楼层
不是上到75吗,那应该没有超过范围的呀?
回复

使用道具 举报

发表于 2003-9-19 09:00:44 | 显示全部楼层
你试试不就知道了。
回复

使用道具 举报

 楼主| 发表于 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文件是改不出什么东西了。
回复

使用道具 举报

发表于 2003-9-19 10:12:54 | 显示全部楼层
"VertRefresh 56-76 ---------------------这个只是垂直刷新率,并不是windows下的那个60hz
回复

使用道具 举报

发表于 2003-9-19 10:19:05 | 显示全部楼层
#xrandr
看看当前刷新率多少?
回复

使用道具 举报

发表于 2003-9-19 11:03:23 | 显示全部楼层
把中间mode那一段去了试试
#Section "Modes"
#Identifier "Modes[0]"
#EndSection


还有UseModes "Modes[0]"
去了,再试
回复

使用道具 举报

 楼主| 发表于 2003-9-19 11:53:32 | 显示全部楼层
"#xrandr
看看当前刷新率多少?"

640x480 60Hz
回复

使用道具 举报

发表于 2003-9-19 11:59:36 | 显示全部楼层
xrandr -s 1024x768 -r 75.1
-r后面是刷新频率,慢慢试吧
回复

使用道具 举报

 楼主| 发表于 2003-9-19 12:04:32 | 显示全部楼层
"xrandr -s 1024x768 -r 75.1
-r后面是刷新频率,慢慢试吧 "

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

使用道具 举报

 楼主| 发表于 2003-9-19 12:06:26 | 显示全部楼层
“把中间mode那一段去了试试
#Section "Modes"
#Identifier "Modes[0]"
#EndSection


还有UseModes "Modes[0]"
去了,再试”


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

使用道具 举报

发表于 2003-9-19 12:08:33 | 显示全部楼层
我的意思是先找出适合的刷新频率。
75.1能起来75不见得能起来,差一点都不行。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-1 07:29 , Processed in 0.064228 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表