LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1535|回复: 10

Fc9中安装ATI驱动,实现XGL,Compiz/Beryl效果Howto for fglrx (Ati driver) , XGL an

[复制链接]
发表于 2008-6-14 23:22:05 | 显示全部楼层 |阅读模式
注意:
这篇帖子可以帮助那些想要在FC9中实现 fglrx驱动,XGL和compiz效果的人,
在你决定开始之前,请现确定您的内核是最新的,


[color="Blue"]由于 使用了yum,所以请确保您使用yum时,速度可以忍受的,否则的话,请参考下面这篇帖子设置一下yum,
http://www.linuxsir.cn/bbs/thread329252.html
这样yum的速度就很不错了,





  1. rpm -qa | grep "kernel"
复制代码


下面是我的命令输出
[prife@localhost ~]$ rpm -qa | grep "kernel"
kerneloops-0.10-11.fc9.i386
kernel-headers-2.6.25-14.fc9.i386
kernel-2.6.25-14.fc9.i686
[color="Red"]kernel-devel-2.6.25.4-30.fc9.i686
kernel-2.6.25.4-30.fc9.i686
[prife@localhost ~]$

如果您的内核不包含红色部分的话,请现升级内核,避免不必要的麻烦.

  1. yum install kernel
复制代码

然后重启系统,查看一下grub中是否出现了新安装的内核,并测试一下您的系统在新内核下是否可以正常工作,请务必确定您的内核是最新的

Howto  for F9
Click this link to make sure your card is supported by this driver ( ATI  cards  9250 and below are unsupported )


1.  Downgrade the xorg server
降级 xorg server
Remove the F9 Xserver and bits and install the fedora8.repo
移除 F9的Xserver,并且安装 fedora8.repo

  1. su
  2. wget [URL]http://www.linux-ati-drivers.homecall.co.uk/fedora8.repo[/URL] -O /etc/yum.repos.d/fedora8.repo
  3. yum  remove xorg-x11-server-Xorg xorg-x11-server-common
  4. rpm -e --nodeps --allmatches mesa-libGL mesa-libGLU mesa-libGL-devel mesa-libGLU-devel glx-utils
复制代码


Now, edit /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo
现在,编辑 /etc/yum.repos.d/fedora.repo 和 /etc/yum.repos.d/fedora-updates.repo
  1.   
  2. [align=LEFT]su
  3. perl -i -pe "s/(\[.*\])/\1\nexclude=xorg* linuxwacom* rhpxl* mesa*/"  /etc/yum.repos.d/fedora.repo
  4. perl -i -pe "s/(\[.*\])/\1\nexclude=xorg* linuxwacom* rhpxl* mesa*/" /etc/yum.repos.d/fedora-updates.repo[/align]
复制代码


These commands add this line to the fedora repo's

exclude=xorg* linuxwacom* rhpxl* mesa*

这些命令 把上面这行添加到 fedora repo's 文件中去了
Install the F8 Xserver .

安装 F8 Xserver

  1. su
  2. yum clean all
  3. yum  groupinstall "X Window System"
  4. yum  install mesa-libGL mesa-libGLU mesa-libGL-devel mesa-libGLU-devel system-config-display system-config-keyboard firstboot
复制代码


[color="Red"]至此 Xorg 降级成功.

2.   Install driver

install the Livna driver
安装驱动 ,安装 Livna 驱动

  1. su -
  2. rpm -Uhv [URL]http://rpm.livna.org/livna-release-9.rpm[/URL]
  3. yum --enablerepo=livna-testing install  xorg-x11-drv-fglrx xorg-x11-drv-fglrx-libs   akmod-fglrx kmod-fglrx
  4. akmods --force
  5. service fglrx restart
  6. fglrx-config-display enable[b]
复制代码


[color="Red"]注意,上面这组命令是用的[color="Blue"]su - ,请注意,不是su了,如果你执行 akmods --force时,发现找不到命令,那么就是这个原因

Additional package for 64 bit
如果是 X_64位 还需要安装下列附加包

  1. yum install xorg-x11-drv-fglrx-libs.i386
复制代码


3. Edit xorg.conf

编辑 xorg.conf 文件

  1. su
  2. gedit /etc/X11/xorg.conf
复制代码


Then add these sections.
然后添加下列 sections

  1. Section "Extensions"
  2. Option "Composite" "Enable"
  3. EndSection


  4. Section "ServerFlags"
  5. Option "AIGLX" "on"
  6. EndSection

  7. Section "DRI"
  8. Mode 0666
  9. EndSection
复制代码

also add these options to the device section
在 device section 中按下更改选项

  1. Option        "OpenGLOverlay" "off"
  2. Option        "VideoOverlay" "on"
复制代码
Reboot


---------------------------------------------------------------------------------------------------------------------------------------------------
如何恢复到原来的效果

To reverse the changes:

1. Remove the fglrx driver

移出 fglrx 驱动

search for the packages
查着在配置过程中安装的包

  1. rpm -qa |grep fglrx
复制代码

And use yum to remove all the listed packages
用yum 移出所有上面列出的包

2. Edit /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo
Remove this line:
     
编辑 /etc/yum.repos.d/fedora.repo和 /etc/yum.repos.d/fedora-updates.repo
删除 此行


  1. exclude=xorg* linuxwacom* rhpxl* mesa*
复制代码

3. Remove the fedora8.repo
移除fedora8.repo

  1. rm /etc/yum.repos.d/fedora8.repo
复制代码
4. Then update.

  1. su
  2. yum update
复制代码

执行更新,就回到原来的状态了.
 楼主| 发表于 2008-6-14 23:31:18 | 显示全部楼层
说明:上面绝对有效,传自fedora的官方论坛.
这是原帖地址http://forums.fedoraforum.org/showthread.php?t=155503&page=1&pp=15
我的系统是 FC9,但是我没装 gnome,也没有kde,我的桌面环境是 xfce4,也实现了上述的效果,gnome用户,在设置完成以后,重启系统之后请查看会话,好像会多出一个 gnome + XGL来,具体情况请自己尝试一下.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-15 16:49:14 | 显示全部楼层
看来大家都实现了3D效果了,呵呵,我自己顶一下。。。。。。
另外原帖中还有Fc8,Fc7,Fc6中实现同样效果的方法,由于现在有其他的事情,稍后在发。
回复 支持 反对

使用道具 举报

发表于 2008-6-16 18:47:08 | 显示全部楼层
不错啊!我去试试,应该能成功的。

最怕yum失败。
回复 支持 反对

使用道具 举报

发表于 2008-6-16 21:16:36 | 显示全部楼层
我的显卡是ATI Mobility Radeon X2300
照着这个做能成吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-16 22:33:10 | 显示全部楼层
Post by kookc;1862729
我的显卡是ATI Mobility Radeon X2300
照着这个做能成吗?

应该可以阿,请注意看第二帖,那里有原贴的地址,你一定要去看看...........
回复 支持 反对

使用道具 举报

发表于 2008-6-16 23:14:35 | 显示全部楼层
有没有高手研究一下yum-allowdowngrade

还有
yum-protect-package
yum-versionlock
回复 支持 反对

使用道具 举报

发表于 2008-6-17 11:15:26 | 显示全部楼层
Post by kookc;1862729
我的显卡是ATI Mobility Radeon X2300
照着这个做能成吗?
应该可以吧,我集成的1250就可以,KDE和 Gnome都没有问题。
虽然glxgears只有1500FPS左右,但是跑起来没有感觉到卡什么的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-17 12:45:32 | 显示全部楼层
Post by deepwhite;1862924
应该可以吧,我集成的1250就可以,KDE和 Gnome都没有问题。
虽然glxgears只有1500FPS左右,但是跑起来没有感觉到卡什么的。

噢??我的芯片组也是 ati1250,板子是七彩虹的。不过我装好以后glxgears有3000左右,经过本文配置以后,大约在5800,呵呵,明显感觉好多了,字体也清楚多了。
回复 支持 反对

使用道具 举报

发表于 2008-6-17 12:53:13 | 显示全部楼层
分辨率是多少?
我的现在最大才只有1024x768
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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