LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: seantokyo

笔记本集成显示卡i830,如何解决显示分辩率的问题

[复制链接]
 楼主| 发表于 2003-5-21 23:42:22 | 显示全部楼层
不知道需要哪些信息才能解决这个问题。

先附上安装前和安装后的XF86Config文件。


//******安装前备份的XF86Config**********//
# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
# Or if you just want both to be control, use:
#        Option        "XkbOptions"        "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbRules" "xfree86"
        Option            "XkbModel" "jp106"
        Option            "XkbLayout" "jp"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
        Identifier  "DevInputMice"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "銉儖銈裤兗鏈鍑?
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
        VendorName  "Videocard vendor"
        BoardName   "Intel 830"
        VideoRam    16384
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection




//******安装结束后的XF86Config**********//
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
# Or if you just want both to be control, use:
#        Option        "XkbOptions"        "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbRules" "xfree86"
        Option            "XkbModel" "jp106"
        Option            "XkbLayout" "jp"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
        Identifier  "DevInputMice"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "銉儖銈裤兗鏈鍑?
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
        VendorName  "Videocard vendor"
        BoardName   "Intel 830"
        VideoRam    16384
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection
发表于 2003-5-22 09:33:54 | 显示全部楼层
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection


把这段中的Load "dri"和Load "dbe"以及Load "dri"前面加上#号

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "銉€儖銈裤兗鏈鍑?
HorizSync 31.5 - 37.9
VertRefresh 50.0 - 70.0
Option "dpms"
EndSection


这段的ModelName "銉€儖銈裤兗鏈鍑?,怎么有乱码???

把Option "dpms"前面加#号


Section "Device"
Identifier "Videocard0"
Driver "i810"
VendorName "Videocard vendor"
BoardName "Intel 830"
VideoRam 16384
EndSection


这段中的VideoRam 16384前面加#号

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection


在这段中,把DefaultDepth 24改为DefaultDepth 16

另不要太着急,我看一下README和INSTALL。有问题咱们再来研究。记得把/etc/inittab改一下,改成用text模式启动。启动X,要用startx,这样会有错误提示,不要忘记帖上来。
 楼主| 发表于 2003-5-22 13:36:18 | 显示全部楼层

又还原到之前的状态了~

我在/etc目录下用vi编辑inittab的时候,用命令:
#vi inittab
然后按i
然后将id:5:initdefault: 改为 id:3:initdefault:
然后Esc, :wq保存退出,  但最下面总有红字提示说
E45:'readonly' option is set(add ! to override)

先问个很弱的问题:因为刚接触,我对vi的相关指令还不熟,能不能把修改保存等最简单的几个方法指令在这里稍微说一下?(看了相关的介绍vi的帖子,里面好像就是说命令符模式下的:w是保存啊)
//*****二次编辑:刚发现修改后用 :exit! 似乎可以保存退出,不知道对不对。*****//



总之,我现在是在windows的fat32下修改了inittab,用cp -f /mnt/windata/inittab /etc/inittab 覆盖了。已改为3,但因为不停地重启切换系统,感觉很麻烦,呵呵。

XF86Config文件也按你说的加上了#。(也是像上面那样在fat32下编辑后,在linux用cp直接覆盖的。已在linux下面用vi打开确认内容无误)

至于那个显示器的ModelName的乱码,是因为这次重装的时候,好玩,选的是日文的安装界面下进行的,那些字好像是日文的“未检测到显示器”的意思。
另外,DefaultDepth 24已改为16,但Depth 24不用改吧(你上面没写,所以我没改)





在上述状态下,我重新启动linux,这时的状态和上回安装linux以后一样!!!等于说我是白重装了的!!(区别好像在于这回有inittab文件)


重启后,先是显示
Red Hat Linux release 9(Shrike)
kernel 2.4.20-8 on an i686

Localhost Login:

还没来得及输入,屏幕就闪了三次,随后弹出蓝色乱码窗口。
如果是选择 yes 确认以后,
切换到另一蓝底全屏窗口,结果显示如下:
XFree86 Version 4.3.0(Red Hat Linux release:4.3.0-2)
Release Date: 27 February 2003
X Protocal Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host: porky.devel.redhat.com

    Before reporting problems, check http://www.XFree86.org/ to make sure that you have the latest version.

Module Loader present
OS Kernel: Linux version 2.4.20-8(bhcompile@porky.devel.redhat.com)(gcc

version 3.2.2 20030222(Red Hat Linux 3.2.2-5))#1 Thu Mar 13 17:54:28 EST2003

Markers--)probed, (**)from config file, (==)default setting, (++)from

command line, (!!)notice, (II)informational, (WW)warning, (EE)error, (NI)not

implemented, (??)unknown.

(==)Log file:"/var/log/XFree86.0.log", Time: Thu May 22 13:03:50 2003
(==)Using config file:"/etc/X11/XF86Config"

        ***if unresolved symbols were reported above,they might not
        ***be the reason for the server aborting.

Fatal server error:
Caught signal 11. Server aborting


When reporting a problem related to a server crash, please send the full

server output, not just the last massages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@free86.org

        to make sure that you have the latest version


看完退出后,又出现一乱码蓝底小窗口。选了yes(如果这2个窗口都选no的话,就会直接进入正常的文本登陆界面,让你输入登陆帐号密码)以后,切换到了黑底的文字界面。
第一行是乱码提示符,第2行Password:  要你输密码。试了一下,好像是要求root的密码登陆。
密码输入后,下面出现

%$*))__+*+_(前面是乱码)inter830
)((×……※¥◎(这一行都是乱码)
*ddcprobe returned ID bogus values.
ID: NONE
NAME: NONE
HorizSync: NONE
VertSync:NONE

以上信息,伴随着闪屏,重复出现好几次以后,又自动返回最开始的提示错误信息的蓝底窗口。于是又重复以上过程(确认错误信息并退出,在文本界面输入root密码,显示那些none之类的提示)。

如此循环了3次左右,最后终于屏幕稳定下来了。显示:

Red Hat Linux release 9(Shrike)
kernel 2.4.20-8 on an i686

Localhost Login:

这时,以root登陆,运行startx,显示结果如下(和之前的窗口内容基本一样)
Module Loader present
OS Kernel: Linux version 2.4.20-8(bhcompile@porky.devel.redhat.com)(gcc

version 3.2.2 20030222(Red Hat Linux 3.2.2-5))#1 Thu Mar 13 17:54:28 EST2003

Markers--)probed, (**)from config file, (==)default setting, (++)from

command line, (!!)notice, (II)informational, (WW)warning, (EE)error, (NI)not

implemented, (??)unknown.

(==)Log file:"/var/log/XFree86.0.log", Time: Thu May 22 13:03:50 2003
(==)Using config file:"/etc/X11/XF86Config"

        ***if unresolved symbols were reported above,they might not
        ***be the reason for the server aborting.

Fatal server error:
Caught signal 11. Server aborting


When reporting a problem related to a server crash, please send the full

server output, not just the last massages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@free86.org

XIO: fatal IO error 104 (connection reset by peer) on X server ":0.0" after 0

requests (0 known processed) with 0 events remaining.

[root@localhost]#


上面提到的XFree86.0.log文件我也备份了,需要吗?(发现还有XFree86.0.log.backup,XFree86.1.log文件存在)




以上现象,和我第一次装完linux后装驱动的情形已经完全相同了。。。。。。不知道这回又该怎么办(编写这篇回复写了我近2小时,^_^)。
不想第三次再重装了。大侠们帮帮忙吧。
发表于 2003-5-22 16:45:55 | 显示全部楼层
看一下root用户的根目录下是否有 XF86Config.new 这个文件。有一步可能没有做。

#more ~/XF86Config.new
 楼主| 发表于 2003-5-22 16:53:25 | 显示全部楼层
显示结果:

[root@localhost root]# more ~/XF86Config.new
/root/XF86Config.new:冒号后面显示乱码,有20个字符长度左右
发表于 2003-5-22 17:25:23 | 显示全部楼层
把原文件备份一下
#mv /etc/X11/XF86Config /etc/X11/XF86ConfigBAK
#cp /root/XF86Config.new /etc/X11/XF86Config
#startx
 楼主| 发表于 2003-5-22 17:47:22 | 显示全部楼层
如大哥所说,将/etc/X11/XF86Config 移动改名为XF86ConfigBAK,正常。

可是在执行#cp /root/XF86Config.new /etc/X11/XF86Config以后,结果显示:
cp: stat(后面2个符号乱码)/root/XF86Config.new后面一串乱码

#startx 的结果还是和以前一样。


ls检查了一下/X11目录下的文件,现在相关文件有XF86ConfigBAK,XF86Config.backup,XF86Config.README-OBSOLETE
发表于 2003-5-22 18:06:08 | 显示全部楼层
是不是没有拷过去??
 楼主| 发表于 2003-5-22 18:16:37 | 显示全部楼层
应该是没有拷过去。都不知道那个.new的文件究竟存不存在
 楼主| 发表于 2003-5-22 18:26:05 | 显示全部楼层
#lspci
列出来的VGA compatible、Display controller、显示的都是:
Intel Corp. 82830 CGC [Chipset Graphics Controller]

可我记得在windows下面显示的是82830MGC呀,这个有关系吗。

另外发现 http://downloadfinder.intel.com/ ... %2CARC& 上面出了新的驱动,需要把它装一遍试试吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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