LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
 楼主| 发表于 2003-5-20 16:40:37 | 显示全部楼层
# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "DevInputMice" "AlwaysCore"
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"
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/psaux"
        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    "Unknown monitor"
        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    32768
EndSection

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

Section "DRI"
        Group        0
        Mode         0666
EndSection

上面是我现在的etc/X11/XF86Config
复制的时候大小写没有错。看了一下备份在fat32里面的文件,是一样的。


下面这个是当时我参照的安装说明,就在那个压缩包里,不是很明白。我把当时的顺序说一下吧。
Note: Red Hat was used by Intel because the wide variety of Linux distributions available precludes exhaustive testing. The driver file is not specific to Red Hat, just these instructions; please modify as needed for your system.

1。Install Linux
2。Log in as root or as a superuser
3。Install kernel headers
a.For Red Hat 7.3, this is on CD2, /RedHat/RPMS/kernel-source-2.4.18-3.i386.rpm
b.Alternately, load your kernel config file, save the config, then run “make dep”
4。Extract the downloaded file:
tar –zxvf 20030106-i386-Linux.tar.gz
5。Ensure X Windows is not running
6。cd dripkg
7。./install.sh
8。Follow the prompts; most users should be able to press “Enter” at each prompt
9。Make a backup copy of your XF86Config-4 (or just ‘XF86Config’) file
10。Modify the XF86Config-4 file by one of three methods:
a.Use a text editor to modify section “Device” – modify “Driver” entry to read “i810”
b.OR run ‘Xconfigurator,’ selecting “Intel 830” from the list
c.OR run ‘X –configure’ the edit ~/XF86Config.new
  1.Immediately after the "Monitor" line in the "Screen" section, add 'DefaultDepth 16'
  2.At the end of the file (if not already there), add:
Section "DRI"
Mode 0666
EndSection
  3.Make the new config file the default by copying it to XF86Config-4:
cp ~/XF86Config.new /etc/X11/XF86Config-4
11。Log out of root or superuser
12。startx


前3步我没有管他。
我当时在linux9的图形界面下。压缩包下载到了/tmp里面,解压到了/tmp/dripkg.
用Ctrl+Shift+f2进入黑底的命令符文本界面,执行了上面的6,7部。
运行./install.sh的时候,系统提示我没有退出图形界面,要我退出视窗界面,或者让他装完了以后重起。当时我试了试还是不知道怎么彻底退出图形界面(现在还是不知),就继续下一步了。
然后系统提醒我最好备份FX86Config。于是暂时退出,将其备份后重新开始安装。
继续下一步以后,好像就提示kernel什么的有错,当时也不知怎么办,就一直继续到底。最后好像是说安装结束,但我直接无法切换到视窗界面。
于是重起后,就成了现在的样子。
有办法解决吗?
发表于 2003-5-20 17:20:23 | 显示全部楼层
改文件,把这行注掉,也就是在前面加#号。
# VideoRam 32768

#Option "dpms"

另外安装驱动的时候,要以text模式登入系统。

改/etc/inittab文件
id:5:initdefault:
改为
id:3:initdefault:

然后重启系统
#reboot
重新安装驱动,重新解包,要在linux的分区下进行,以root权限登入。

另外也要把kernel-source包安装上,以及开发工具之类的,比如gcc等。

看是否安装的kernel-source
[root@linuxsir001 root]# rpm -qa | grep kernel-source
kernel-source-2.4.20-8
[root@linuxsir001 root]#
如果没有出现类似的,就要安装kernel-source,这个包在安装盘中有。可能在第二张上。
 楼主| 发表于 2003-5-20 17:52:14 | 显示全部楼层
我现在的是kernel-source-2.4.20-13
安装的时候选的是定制,然后把能选中的所有全部装了,3.3G左右,然后还在线升级了几个文件。我想基本的软件包应该都有。

VideoRam 32768
Option "dpms"
把那两行无效了以后,重起还是一样。文本界面,屏幕闪动了3次后,就是乱码的错误提示大概是要我参照/var/log/XFree86.0.log并使用config file: etc/X11/XF86Config。
之后还是在文本下面输入口令。。。

另外,在/etc下面,我也没有看见inittab文件,只有一个init.d......
 楼主| 发表于 2003-5-20 21:46:28 | 显示全部楼层
老大门也没辙么?
问一句,linux内核原码,也就是二张安装盘找到kernel-source-2.4.18-3.i386.rpm文件,首次安装RHlinux9的时候,定制安装全选的话,这个被装进去了吗?还有,为什么我现在没有initab文件?
问题除了发生在XF86Config,还有什么地方么?
发表于 2003-5-20 22:00:12 | 显示全部楼层
老大门也没辙么?
问一句,linux内核原码,也就是二张安装盘找到kernel-source-2.4.18-3.i386.rpm文件,首次安装RHlinux9的时候,定制安装全选的话,这个被装进去了吗?还有,为什么我现在没有initab文件?
问题除了发生在XF86Config,还有什么地方么?


用下面的命令测试一下就知道,是否安装的kernel-source了。
# rpm -qa | grep kernel-source

如果完全安装,要4.6G 的空间左右,感觉少了好多软件。如果定制安装,开发工具和kernel-source以及比较重要的库文件也没有安装上。在这种情况下,安装不上驱动也十分正常。


因为这个驱动是比较老一点的,最好不要升级内核,否则更没有办法支持了。感觉是内核版本太高。开发工具没有安装,kernel-source也没有安装。

建议用完全安装,用[升级]的办法也行,如果对linux比较熟的话,就用升级的办法。象安装时一样[update]
如果重新安装,就要把所有的东西都选中,也就是选取软件包时,最后的一项,[全部]

其实还有一个办法,也可以试一下,编译内核。
 楼主| 发表于 2003-5-20 22:09:58 | 显示全部楼层
# rpm -qa | grep kernel-source
过了上10秒,显示的结果为
kernel-source-2.4.20-13.9

因为ext3的空间只有4.1G,所以定制的时候没有选完全(系统提示需要5G多,比所有的候选项加起来还要多很多),而是手动将开发工具等所有候选项全部选中安装了。

这么看来,可以认为我是装了开发工具和内核了吧。
现在不光是分辨率的问题,连所谓的“windows的安全模式”下的图形界面也进不了,所有提示也是中文乱码。
是不是只有修复重装了??

如果必须这样的话,能讲讲方法吗,我手上有红帽9的三张光盘,目前可以在linux下访问
发表于 2003-5-21 11:01:45 | 显示全部楼层
/etc/inittab这个文件应该有,真是搞的头晕的

用下面的命令来查看一下。
#more /etc/inittab
 楼主| 发表于 2003-5-21 14:58:58 | 显示全部楼层
之前确实没有 inttab这个文件...

我刚刚已经把Red Hat linux 9 重新安装了,这回是4.8G左右的完全安装。inttab的文件这回有。

又重新试了一下安装Intel® 82830M Graphics Controller的驱动,还是没搞定。大致过程如下:



1。我将 http://downloadfinder.intel.com/ ... %2CARC& 的驱动下载到linux的/temp下面,并解压缩到/temp/dripkg

2。改/etc/inittab文件,把文件下面的
id:5:initdefault:
改为 id:3:initdefault:

3。reboot重启linux,在文本界面下以root登陆。

4。进入解压缩后的文件夹,运行./install.sh

5。一连串的确认路径,以及提醒备份数据的提示过后,出现了下述的提示:

The script will now compile the agpgart module and DRM kernel modules for your machine.
Press ENTER to continue or CTRL+C to exit.

//我按了回车键以后,系统提示如下:
Compiling new agpgart module......  

ERROR: AGPGART module did not compile

Compiling DRM module......

ERROR: kernel modual did not compile
//为什么AGPGART module和kernel modual 没有compile 呢??

WARNIG: The existing DRM kernel modual available on your system might work; however, using an older module may servely limit functionlity or performance!!! It is recommended that you upgrade to the latest DRM kernel module. For further details see:
http://dri.sourceforge.net/doc/DRIcompile.html#s4
//它这里好像是要我最好去升级kernel吧?

Press ENTER to Continue with the existing kernel module or CTRL+C to exit.

//这些安装提示,和我之前安装的时候好像是一样的。前天到这一步的时候,我按了回车,结果就出现了无法进入图形界面的情况。
这回不敢了,直接结束了安装。
请问这回我该怎么办,出现那些错误提示的原因在哪儿呢?


附:系统信息(linux菜鸟一个,请大家帮帮忙)
uname -a
Linux Localhost.localdoma in 2.4.20-8 #1 Thu MAR 13 17:54:28 EST 2003 i686 i686 i386 GUN/Linux

arch
i686
发表于 2003-5-21 21:45:09 | 显示全部楼层
AGPGART这项是内核支持才行。因为默认的情况下,这项是不会打开的,如果想打开,就得重编内核。
另外DRM这项,就是3D功能。上面提示说,这个模块太旧了。这个模块也没有什么,可以不用,注掉就是了。下面是这个模块的作用。
The direct rendering infrastructure (DRI) allows is a means of safely and efficiently accessing graphics hardware while still interacting with the X environment.

建议大胆的试一下,有问题咱们再讨论。如果不试怎么能成功呢???
 楼主| 发表于 2003-5-21 23:07:18 | 显示全部楼层
听了老兄的,在那一步继续按了回车。
运行结束后,重启。

还是进不了X界面!!不同的是开机后,不像以前那样开始闪屏。
检查了/etc/inittab,好像已经被自动改回了id:5:initdefault:

现在怎么办啊?不会要我再重装一次吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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