Ubuntu 10.04 安装中 intel 显卡的问题以及解决

小编辑 发布于 2010/05/17 13:13
阅读 8K+
收藏 3

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

最近装了一下 10.04,我的电脑比较老了,在 intel 集成显卡(Intel Corporation 82852/855GM Integrated Graphics Device)上出了不少问题:
1. 安装系统时,出现 LOGO,然后持续黑屏
解决方案,强制采用 vesa 驱动,做法如下:
a. 在选择安装的界面点击 F6,此时出现 grub 命令行
b. 在 grub 命令行后加上 xforcevesa,使用 vesa 驱动

就此 安装好系统。

2. vesa 驱动效率不高,不推荐使用(This driver is not recommended for use unless you have a problem with the normal driver for your card, because it will peform very badly。见:http://packages.ubuntu.com/lucid/xserver-xorg-video-vesa
按 照上面的方式安装完成系统后,显卡采用 vesa 驱动,效率不高,gfxgears 跑出来数据如下:
269 frames in 5.0 seconds
280 frames in 5.0 seconds
290 frames in 5.0 seconds
290 frames in 5.0 seconds
274 frames in 5.0 seconds

虽然已经安装了 xf86-video-intel 包,不过如果修改驱动的话还是会悲剧:黑屏,无法进入系统。

解决办法也就只有自己编译驱动了,这里下 载驱动:
http://intellinuxgraphics.org/index.html(我用的是 http://lists.freedesktop.org/archives/intel-gfx/2010-January/005276.html
按 此处http://intellinuxgraphics.org/install.html把 该装的 dev 包都装上,然后:
./configure --prefix=/usr
make
sudo make install
(可以参考:http://www.mythtv.org/wiki/XvMC

然后,修改驱动:
vim /etc/X11/xorg.conf

Section "Device"
Identifier "Configured Video Device"
Driver "vesa" # 这里改为 intel
EndSection

3. 不出意外,如果重启电脑就会出现:No kernel modesetting driver detected 的问题,这时候加上命令:i915.modeset=1

sudo vim /boot/grub/grub.cfg
找到第一个 menuentry,在这里加:
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=67bbdaa8-ce00-4349-84f1-4c7003e44d7d ro quiet splash i915.modeset=1

注意,本来是不建议修改 grub.cfg 文件的,但是我对 grub2 不熟悉 。

4. 重启,OK
再用 glxgears 测了一下:
$ glxgears
1466 frames in 5.0 seconds
1537 frames in 5.0 seconds
1540 frames in 5.0 seconds
1540 frames in 5.0 seconds
1538 frames in 5.0 seconds
1540 frames in 5.0 seconds
1465 frames in 5.0 seconds

5.9 号更新
对显卡做了一些配置,参考以前的一篇文章:http://ubuntuforums.org/showthread.php?t=1130582。 优化之后发现效率提高不少,虽然 glxgears 分数没有太多变化,不过看 flash 非常流畅(在此过程中我还升级了 chrome 浏览器)

总 结一下效果:
多开几个页面就非常卡,开一个 flash 页面时,几乎卡的没有办法进行输入(没有使用新驱动时)---------> 可以看 flash 打开的时候会有点卡,过一下就好了(安装了驱动后)----------> 播放 flash 很流畅,大概耗用 50% 的 CPU,其中 flash 插件大概消耗 30%,chrome 消耗 20%(优化后)

我仅仅使用了 Safe Configuration。具体如下:
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "AccelMethod" "EXA"
Option "EXAOptimizeMigration" "true"
Option "MigrationHeuristic" "greedy"
Option "Tiling" "false"
VideoRam 130560
# 这里是显存设置,855GM 设置为此值,具体计算方式可以参考 http://www.ubuntugeek.com/intel-graphics-performance-guide-for-ubuntu-904-jaunty-users.html
EndSection
红 色部分为新增加的。
另增加 Bartec's fixmtrr.sh script(http://ubuntuforums.org/showthread.php?t=1130582 Download Bartec's fixmtrr.sh script and make it executable 部分)

有 图有真相:

附件:
Screenshot.png


另外,遇见使用 mplayer, totem 播放视频时死机的问题:
解决方案是,安装 smplayer 后,修改输出驱动(output driver)为 gl(感觉 gl 性能不错),另外使用 gl(fast) 时图像是灰色,不知如何解决(gl(fast) 性能最好)

希望对大家有帮助

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部