[分享]ubuntu安装支持AIGLX的ATi驱动8.42.3
-
- 帖子: 34
- 注册时间: 2007-08-19 8:44
[分享]ubuntu安装支持AIGLX的ATi驱动8.42.3
参考: http://www.ubfchina.cn/article/view.asp?id=54
第一步:移除旧驱动
假如之前你是用xgl的,请执行以下命令移除旧的fglrx驱动
sudo apt-get remove xserver-xgl
然后到“系统”-“系统管理”-“受限驱动管理器” 处取消掉之前的驱动,或者也可以执行:
sudo apt-get remove xorg-driver-fglrx
最后删除旧的fglrx软件包
sudo rm -f /usr/src/fglrx-kernel*.deb
将旧的fglrx模块加入黑名单
sudo gedit /etc/default/linux-restricted-modules-common
加入这么一行
DISABLED_MODULES=”fglrx”
或者你也可以移除这个linux-restricted-modules-*这个软件包(如果你有其他受限驱动,不要这么做)
移除完毕后,就重新启动吧!
第二步:下载驱动
把以下驱动下载到你要放置的地方,如桌面:
http://www2.ati.com/drivers/linux/ati-d ... x86_64.run
第三步:准备环境
执行以下命令安装需要的软件包
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-generic
第四步:生成软件包
在终端下进入桌面(假如你把下载好的驱动放在桌面上),如果你是Feisty,请将其中的gutsy替换成feisty
创建deb包
注意:执行下面的命令的前提是,你必须在终端下用cd命令到你下载的驱动的当前目录。
比如我的驱动是下载在桌面的, 我就用右键选择驱动文件的属性,看它的位置,然后复制它的位置。
如下图
位置是:/home/zero/Desktop
zero是我的用户名,如果你的是ABC,而且你都是放在桌面上的话,那么你的位置是/hom/ABC/Desktop
bash ./ati-driver-installer-8.42.3-x86.x86_64.run --buildpkg Ubuntu/gutsy
执行完毕后,你的桌面上会多出一些文件,待会我们会删除掉它。
屏蔽fglrx核心模块
代码:
sudo gedit /etc/default/linux-restricted-modules-common
将 代码:
DISABLED_MODULES=""
改成 代码:
DISABLED_MODULES="fglrx"
安装deb包 代码:
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source*.deb fglrx-amdcccle*.deb
移除旧的fglrx
如果你是第一次做,那么会提示你这个文件找不到。别管他,继续往下做就是。 代码:
sudo rm /usr/src/fglrx-kernel*.deb
sudo apt-get -f install
编译内核模块并安装 代码:
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
cd /usr/src
sudo dpkg -i fglrx-kernel-*
sudo depmod -a
配置驱动
注意,如果以前装过fglrx驱动,此步无须再做。 代码:
sudo dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx。
某些朋友可能需要输入,我自己就需要!
sudo mkdir -p /usr/X11R6/lib/modules/dri
sudo ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri
重启系统
确认驱动是否正确安装 代码:
$ fglrxinfo display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1650 Series
OpenGL version string: 2.0.6958 Release
如果显示的是
代码:
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
version string: 1.2 (1.5 Mesa 6.4.1)
请彻底卸载驱动
代码:
sudo apt-get remove --purge fglrx-control
sudo apt-get remove --purge fglrx-kernel-source
sudo apt-get remove --purge xorg-driver-fglrx
代码:
sudo lrm-manager
并把原来装过的4个包彻底删除。
代码:
sudo apt-get autoremove --purge fglrx*
再重新按上面的方法安装。
设置驱动
sudo gedit /etc/X11/xorg.conf
确认fglrx在”Device”字段里
如果存在下面字段,就移除
Section “Extensions”
Option “Composite” “0″ # or “Disable”
EndSection
Section “ServerFlags”
Option “AIGLX” “off”
EndSection
第八步:重新启动并让Compiz Fusion工作
输入
SKIP_CHECKS=yes compiz
再输入:
mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
这样应该可以了!!!
第一步:移除旧驱动
假如之前你是用xgl的,请执行以下命令移除旧的fglrx驱动
sudo apt-get remove xserver-xgl
然后到“系统”-“系统管理”-“受限驱动管理器” 处取消掉之前的驱动,或者也可以执行:
sudo apt-get remove xorg-driver-fglrx
最后删除旧的fglrx软件包
sudo rm -f /usr/src/fglrx-kernel*.deb
将旧的fglrx模块加入黑名单
sudo gedit /etc/default/linux-restricted-modules-common
加入这么一行
DISABLED_MODULES=”fglrx”
或者你也可以移除这个linux-restricted-modules-*这个软件包(如果你有其他受限驱动,不要这么做)
移除完毕后,就重新启动吧!
第二步:下载驱动
把以下驱动下载到你要放置的地方,如桌面:
http://www2.ati.com/drivers/linux/ati-d ... x86_64.run
第三步:准备环境
执行以下命令安装需要的软件包
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-generic
第四步:生成软件包
在终端下进入桌面(假如你把下载好的驱动放在桌面上),如果你是Feisty,请将其中的gutsy替换成feisty
创建deb包
注意:执行下面的命令的前提是,你必须在终端下用cd命令到你下载的驱动的当前目录。
比如我的驱动是下载在桌面的, 我就用右键选择驱动文件的属性,看它的位置,然后复制它的位置。
如下图
位置是:/home/zero/Desktop
zero是我的用户名,如果你的是ABC,而且你都是放在桌面上的话,那么你的位置是/hom/ABC/Desktop
bash ./ati-driver-installer-8.42.3-x86.x86_64.run --buildpkg Ubuntu/gutsy
执行完毕后,你的桌面上会多出一些文件,待会我们会删除掉它。
屏蔽fglrx核心模块
代码:
sudo gedit /etc/default/linux-restricted-modules-common
将 代码:
DISABLED_MODULES=""
改成 代码:
DISABLED_MODULES="fglrx"
安装deb包 代码:
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source*.deb fglrx-amdcccle*.deb
移除旧的fglrx
如果你是第一次做,那么会提示你这个文件找不到。别管他,继续往下做就是。 代码:
sudo rm /usr/src/fglrx-kernel*.deb
sudo apt-get -f install
编译内核模块并安装 代码:
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
cd /usr/src
sudo dpkg -i fglrx-kernel-*
sudo depmod -a
配置驱动
注意,如果以前装过fglrx驱动,此步无须再做。 代码:
sudo dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx。
某些朋友可能需要输入,我自己就需要!
sudo mkdir -p /usr/X11R6/lib/modules/dri
sudo ln -s /usr/lib/dri/fglrx_dri.so /usr/X11R6/lib/modules/dri
重启系统
确认驱动是否正确安装 代码:
$ fglrxinfo display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1650 Series
OpenGL version string: 2.0.6958 Release
如果显示的是
代码:
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
version string: 1.2 (1.5 Mesa 6.4.1)
请彻底卸载驱动
代码:
sudo apt-get remove --purge fglrx-control
sudo apt-get remove --purge fglrx-kernel-source
sudo apt-get remove --purge xorg-driver-fglrx
代码:
sudo lrm-manager
并把原来装过的4个包彻底删除。
代码:
sudo apt-get autoremove --purge fglrx*
再重新按上面的方法安装。
设置驱动
sudo gedit /etc/X11/xorg.conf
确认fglrx在”Device”字段里
如果存在下面字段,就移除
Section “Extensions”
Option “Composite” “0″ # or “Disable”
EndSection
Section “ServerFlags”
Option “AIGLX” “off”
EndSection
第八步:重新启动并让Compiz Fusion工作
输入
SKIP_CHECKS=yes compiz
再输入:
mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
这样应该可以了!!!
-
- 帖子: 75
- 注册时间: 2006-03-10 10:19
- 联系:
- www1862
- 帖子: 781
- 注册时间: 2006-05-12 0:52
- 来自: Chongqing China
- 联系:
-
- 帖子: 69
- 注册时间: 2007-05-23 23:53
lz 的办法很好,我看了其他的都不行,幸亏你的
我的
让我终于把8.42.3装上了,sudo module-assistant build fglrx
cd /usr/src
sudo dpkg -i fglrx-kernel-*
sudo depmod -a
我的
zby@ubuntu:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI MOBILITY RADEON X700
OpenGL version string: 2.0.6958 Release
-
- 帖子: 7
- 注册时间: 2007-04-02 16:05
-
- 帖子: 18
- 注册时间: 2006-04-19 23:20
-
- 帖子: 15
- 注册时间: 2007-10-05 8:00
装不上去 始终是
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
version string: 1.4 (1.5 Mesa 6.5.2)
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
version string: 1.4 (1.5 Mesa 6.5.2)
-
- 帖子: 4
- 注册时间: 2007-10-20 20:56
-
- 帖子: 466
- 注册时间: 2007-09-06 16:07
输入
SKIP_CHECKS=yes compiz
再输入:
mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
请问这两步是做什么的?对compiz fusion的使用有什么影响?
因为我没有做这两步,也没有像ait的wiki里面最后加个 ln -sf 什么的。wiki里面没有解释ln那一步是干什么的。
原文:
Create the following folder
sudo mkdir /lib/modules/$(uname -r)/volatile
Note: the volatile directory might already exist at this stage then simply continue with the next step.
Create a symbolic link
sudo ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko
SKIP_CHECKS=yes compiz
再输入:
mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager
请问这两步是做什么的?对compiz fusion的使用有什么影响?
因为我没有做这两步,也没有像ait的wiki里面最后加个 ln -sf 什么的。wiki里面没有解释ln那一步是干什么的。
原文:
Create the following folder
sudo mkdir /lib/modules/$(uname -r)/volatile
Note: the volatile directory might already exist at this stage then simply continue with the next step.
Create a symbolic link
sudo ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko
-
- 帖子: 3
- 注册时间: 2007-10-24 20:41
我的打了SKIP_CHECKS=yes compiz后显示如下,还是开不了3D效果。是做错了什么吗?
Checking for Xgl: not present.
No whitelisted driver found
SKIP_CHECKS is yes, so continuing despite problems.
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting gtk-window-decorator
(gtk-window-decorator:6108): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
(gtk-window-decorator:6108): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
/usr/bin/compiz.real (core) - Fatal: No composite extension
Checking for Xgl: not present.
No whitelisted driver found
SKIP_CHECKS is yes, so continuing despite problems.
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting gtk-window-decorator
(gtk-window-decorator:6108): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
(gtk-window-decorator:6108): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
/usr/bin/compiz.real (core) - Fatal: No composite extension
-
- 帖子: 33
- 注册时间: 2007-10-11 16:07
装不上n次还是fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
version string: 1.4 (1.5 Mesa 6.5.2)
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
version string: 1.4 (1.5 Mesa 6.5.2)