切换文本界面就回不了图形界面了

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   发布时间: 2006-04-02

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

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

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

http://fedoraproject.org/wiki/RenderingProject/aiglx?highlight=%28aiglx%29

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

下面是安装方法:

下载以下软件包:

http://gandalfn.club.fr/ubuntu/xserver-xorg-air-core_0.99.1-0ubuntu2_i386.deb
http://gandalfn.club.fr/ubuntu/libsvg_0.1.4-0_i386.deb
http://gandalfn.club.fr/ubuntu/libsvg-cairo_0.1.5-0_i386.deb
http://gandalfn.club.fr/ubuntu/compiz-aiglx_0.0.7-0ubuntu6_i386.deb
http://gandalfn.club.fr/ubuntu/compiz-aiglx-gnome_0.0.7-0ubuntu6_i386.deb
http://gandalfn.club.fr/ubuntu/compiz-aiglx-kde_0.0.7-0ubuntu6_i386.deb
http://gandalfn.club.fr/ubuntu/gnome-session_2.14.0-0ubuntu2_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]

作者: xiechy   发布时间: 2006-04-02

照着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桌面啊?

作者: Beetle   发布时间: 2006-04-02

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).

作者: nifi   发布时间: 2006-04-04

回三楼的兄弟:
有没有像橡胶一样的拖动动画?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时,应该是这么多的。

作者: xiechy   发布时间: 2006-04-04

测试, 没有安装之前:

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   发布时间: 2006-04-05

不试了,

这个很慢了

作者: gnix_oag   发布时间: 2006-04-05

呵呵,在915的显卡上,比XGL快多了,流畅啊.爽呆了.谢谢 楼主啊

作者: firefoot   发布时间: 2006-04-09

装完之后什么特效都没出来
并且所有窗口都没有了边框 不能移动

作者: Beetle   发布时间: 2006-04-09

哈哈~~~弄好了!!

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就死了!

作者: Beetle   发布时间: 2006-04-09

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

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

见图:
附件:

Screenshot-1.png [ 436.77 KiB | 被浏览 549 次 ]

作者: gnix_oag   发布时间: 2006-04-09

其实3D还是没意义。xgl就是因为rend都没了,所以被我xx了。

作者: eexpress   发布时间: 2006-04-09

to:gnix_oag
你是怎么抓图的?偶抓的一直会丢帧!还有偶每次只能在"终端"下关机(poweoff),不能用那个右上角的那个Log Out

作者: Beetle   发布时间: 2006-04-09

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

改下一运行参数
附件:

Screenshot-1.png [ 443.82 KiB | 被浏览 509 次 ]


Screenshot.png [ 388.91 KiB | 被浏览 500 次 ]


Screenshot.png [ 22.89 KiB | 被浏览 481 次 ]

作者: gnix_oag   发布时间: 2006-04-09

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

作者: xiechy   发布时间: 2006-04-10