[原创]i915系列显卡3D驱动修复以及[翻译]aiglx的应用(xgl-like)。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01

[原创]i915系列显卡3D驱动修复以及[翻译]aiglx的应用(xgl-like)。

#1

帖子 xiechy » 2006-04-02 14:33

1、i915系列显卡3D驱动
系统自带的驱动只要在xorg.conf中使用i810即可正常使用3D加速,不需要另外设置。但有些同学为了尝试最新的CVS上的DRI驱动,安装了之后反而没有的3D加速。(例如说本人,呵呵)。那么怎么恢复呢?经过昨晚大概一个小时的摸索。解决方案如下:

重新安装以下包:

代码: 全选

sudo aptitude reinstall libgl1mesa
sudo aptitude reinstall libgl1-mesa-dri
sudo aptitude reinstall libglu1-mesa
sudo aptitude reinstall xserver-xorg-driver-i810
然后检查以下三个文件:
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
其中除libGL.so.1.2之外,都是指向libGL.so.1.2的连接,如果没有,又或者是死连接,那么手动建立一个:

代码: 全选

sudo ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
sudo ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so
此时再试试3D:

代码: 全选

glxgears -printfps
大概帧率应该是1250到1300之间吧。
大功告成了吗?还没呢,谁说915没有eye candy?请看第二楼。continue
上次由 xiechy 在 2006-04-11 21:17,总共编辑 1 次。
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01

#2

帖子 xiechy » 2006-04-02 15:21

以下部分大部分是从英文论坛上翻译的。就算不得原创了,原文地址

http://www.ubuntuforums.org/showthread.php?t=145068

有趣的是,这款由fedora开发的类似xgl的桌面3D引擎反而对915比对ati和nvidia的大部分显卡的支持还要好的多,在官方主页上有支持显卡的列表:

http://fedoraproject.org/wiki/Rendering ... 28aiglx%29

我的915GM本本在此下面也有DRI支持,和没装时性能一样,而且有一个调节插件,比Xgl还方便些:

下面是安装方法:

下载以下软件包:

http://gandalfn.club.fr/ubuntu/xserver- ... 2_i386.deb
http://gandalfn.club.fr/ubuntu/libsvg_0.1.4-0_i386.deb
http://gandalfn.club.fr/ubuntu/libsvg-c ... 0_i386.deb
http://gandalfn.club.fr/ubuntu/compiz-a ... 6_i386.deb
http://gandalfn.club.fr/ubuntu/compiz-a ... 6_i386.deb
http://gandalfn.club.fr/ubuntu/compiz-a ... 6_i386.deb
http://gandalfn.club.fr/ubuntu/gnome-se ... 2_i386.deb

安装:

代码: 全选

sudo dpkg -i xserver-xorg-air-core_0.99.1-0ubuntu1_i386.deb
sudo dpkg -i libsvg_0.1.4-0_i386.deb
sudo dpkg -i libsvg-cairo_0.1.5-0_i386.deb
sudo dpkg -i compiz-aiglx_0.0.7-0ubuntu6_i386.deb
sudo dpkg -i compiz-aiglx-gnome_0.0.7-0ubuntu6_i386.deb
sudo dpkg -i gnome-session-2.14.0-0ubuntu4_i386.deb
sudo dpkg -i compiz-aiglx-kde_0.0.7-0ubuntu6_i386.deb
修改xorg.conf
:
Section "Module"
# Load "GLcore"
Load "bitmap"
Load "ddc"
Load "dbe"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
Section "Device"
Identifier "Intel Corporation Intel Default Card"
Driver "i810"
Option "XAANoOffscreenPixmaps"
BusID "PCI:0:2:0"
EndSection
Section "ServerLayout"
Option "AIGLX" "true"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection
修改/etc/gdm/gdm.conf-custom
[servers]
0=aiglx

[server-aiglx]
name=aiglx server
command=/usr/bin/Xorg-air :0
flexible=true
退出,重新启动gdm

代码: 全选

sudo /etc/init.d/gdm restart
享受eye candy吧!好好炫一炫!dri仍然打开,3D desktop不是独立显卡的专利!
后续还有跟踪内容。我另外从apt得到的最新的libgl1-mesa和libgl-mesa-dri,安装之后DRI关上了,但glxgears仍然有1050左右的fps,和开了后的12xx比差不多,而以前DRI没开只有150左右,真是奇哉怪也,怪也奇哉。[/quote]
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
联系:

#3

帖子 Beetle » 2006-04-02 21:13

照着LZ的方法,可是还只有790多啊!

glxgears -printfps libGL warning: 3D driver claims to not support visual 0x4b
3965 frames in 5.0 seconds = 792.948 FPS
3983 frames in 5.0 seconds = 796.543 FPS
3960 frames in 5.0 seconds = 791.818 FPS
3988 frames in 5.0 seconds = 797.590 FPS
3974 frames in 5.0 seconds = 794.694 FPS
3986 frames in 5.0 seconds = 797.137 FPS
3956 frames in 5.0 seconds = 791.089 FPS

而且没看见什么3D桌面啊?
nifi
帖子: 335
注册时间: 2005-06-12 12:23

偶的完了

#4

帖子 nifi » 2006-04-04 14:10

953 frames in 5.1 seconds = 185.621 FPS
927 frames in 5.1 seconds = 182.665 FPS
1060 frames in 5.5 seconds = 193.186 FPS
928 frames in 5.2 seconds = 177.833 FPS
1060 frames in 5.7 seconds = 187.119 FPS
X connection to :0.0 broken (explicit kill or server shutdown).
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01

#5

帖子 xiechy » 2006-04-04 20:29

回三楼的兄弟:
有没有像橡胶一样的拖动动画?ALT+Ctrl+方向键是不是三维的桌面转换?
我后来试了试,当桌面上有8个左右的窗口时,祯率是会降下来的。试试在没有打开多余窗口时测试!!另外,特效的键位的设置和Xgl基本上是一样的。具体可以看Xgl的展示:地址在下面:
http://www.novell.com/linux/xglrelease/
键位
*

Kill the Xgl server = Shift + Backspace
*

Switch windows = Alt + Tab
*

Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front
*

Switch desktops on cube = Ctrl + Alt + Left/Right Arrow
*

Switch desktops on cube with active window following = Ctrl + Shift + Alt + Left/Right Arrow
*

Rotate desktop cube = Ctrl + Alt + Left-click on wallpaper and drag
*

Change opacity = Ctrl + Shift + Mouse wheel
*

Make window translucent/opaque = right-click the window's title bar and select Opacity (seems to be absent in current compiz cvs. Use the tip above to set transparency)
*

Zoom-in once = Super-key right-click
*

Zoom-in manually = Super-key + wheel mouse up
*

Zoom-out manually = Super-key + wheel mouse down
*

Move window = Alt + left-click
*

Snap Move window (will stick to borders) = Ctrl during move (either by Alt + left-click or by title bar)
*

Resize window = Alt + right-click
*

Display svg picture on top of cube = modify gconf db,add svg files to /apps/compiz/plugins/cube/screen0/options/svgs (restart needed) [WWW] Option broken in current repos



回四楼的兄弟:
别着急,因该是3D的DRI关闭了。我的前两天也是这样的。照一楼的做法,有效果吗?
没开DRI时,应该是这么多的。
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#6

帖子 gnix_oag » 2006-04-05 0:03

测试, 没有安装之前:

glxgears -printfps
3575 frames in 5.0 seconds = 714.871 FPS
3753 frames in 5.0 seconds = 750.419 FPS
3753 frames in 5.0 seconds = 750.438 FPS
3753 frames in 5.0 seconds = 750.428 FPS
3746 frames in 5.0 seconds = 749.171 FPS

安装中...........

晕没有什么要安装的
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#7

帖子 gnix_oag » 2006-04-05 0:17

不试了,

这个很慢了
firefoot
帖子: 20
注册时间: 2006-03-24 20:04

#8

帖子 firefoot » 2006-04-09 12:44

呵呵,在915的显卡上,比XGL快多了,流畅啊.爽呆了.谢谢 楼主啊
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
联系:

#9

帖子 Beetle » 2006-04-09 14:56

装完之后什么特效都没出来
并且所有窗口都没有了边框 不能移动
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
联系:

#10

帖子 Beetle » 2006-04-09 16:42

哈哈~~~弄好了!!

glxgears -printfps
libGL warning: 3D driver claims to not support visual 0x4b
3218 frames in 5.0 seconds = 643.514 FPS
3630 frames in 5.0 seconds = 725.961 FPS
3637 frames in 5.0 seconds = 727.237 FPS
3639 frames in 5.0 seconds = 727.795 FPS
3630 frames in 5.0 seconds = 725.973 FPS
3640 frames in 5.0 seconds = 727.255 FPS
3648 frames in 5.0 seconds = 729.570 FPS
3637 frames in 5.0 seconds = 727.376 FPS
3628 frames in 5.0 seconds = 725.529 FPS
3629 frames in 5.0 seconds = 725.780 FPS
3638 frames in 5.0 seconds = 727.499 FPS
3639 frames in 5.0 seconds = 727.609 FPS
X connection to :0.0 broken (explicit kill or server shutdown).

桌面下比XGL流畅多了,不过还有点问题:
输入法的字体难看了;
CPU占用率太高;
不能在X下关机!!点击Log Out就死了!
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#11

帖子 gnix_oag » 2006-04-09 21:26

又试了一下,这个"AIGLX" 还可以,

不占什么cpu ,也很流畅,用XGL实在是受不了

见图: :D :D
附件
Screenshot-1.png
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#12

帖子 eexpress » 2006-04-09 21:52

其实3D还是没意义。xgl就是因为rend都没了,所以被我xx了。
● 鸣学
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
联系:

#13

帖子 Beetle » 2006-04-09 22:58

to:gnix_oag
你是怎么抓图的?偶抓的一直会丢帧!还有偶每次只能在"终端"下关机(poweoff),不能用那个右上角的那个Log Out
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#14

帖子 gnix_oag » 2006-04-09 23:15

看看我面版上有上有个抓图的图标,

改下一运行参数
附件
Screenshot-1.png
Screenshot.png
Screenshot.png
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01

#15

帖子 xiechy » 2006-04-10 14:19

关机的退出需要打过补丁的gnome-session,没打过的会挂起。在二楼第一个连接地址上有最新的版本。本楼附件也行。
附件
gnome-session_2.14.0-0ubuntu3_i386.deb
(456.25 KiB) 已下载 56 次
回复