ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2011年3月25日 星期五

enable compiz

charles-chang@dellnb:~$ sudo aptitude install fglrx-modules-dkms 
The following NEW packages will be installed:
  cpp-4.3{a} dkms{a} fglrx-modules-dkms gcc-4.3{a} gcc-4.3-base{a} linux-headers-2.6-amd64{a} linux-headers-2.6.32-5-amd64{a} 
  linux-headers-2.6.32-5-common{a} linux-kbuild-2.6.32{a} 
0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.4 MB of archives. After unpacking 43.7 MB will be used.
Do you want to continue? [Y/n/?] Y
Get:1 http://debian.nctu.edu.tw/debian/ squeeze/main gcc-4.3-base amd64 4.3.5-4 [110 kB]
Get:2 http://debian.nctu.edu.tw/debian/ squeeze/main cpp-4.3 amd64 4.3.5-4 [3,349 kB]
Get:3 http://debian.nctu.edu.tw/debian/ squeeze/main dkms all 2.1.1.2-5 [71.3 kB]                                                                   
Get:4 http://debian.nctu.edu.tw/debian/ squeeze/main gcc-4.3 amd64 4.3.5-4 [2,604 kB]                                                               
Get:5 http://debian.nctu.edu.tw/debian/ squeeze/main linux-headers-2.6.32-5-common amd64 2.6.32-31 [3,889 kB]                                       
Get:6 http://debian.nctu.edu.tw/debian/ squeeze/main linux-kbuild-2.6.32 amd64 2.6.32-1 [238 kB]                                                    
Get:7 http://debian.nctu.edu.tw/debian/ squeeze/main linux-headers-2.6.32-5-amd64 amd64 2.6.32-31 [523 kB]                                          
Get:8 http://debian.nctu.edu.tw/debian/ squeeze/main linux-headers-2.6-amd64 amd64 2.6.32+29 [3,188 B]                                              
Get:9 http://debian.nctu.edu.tw/debian/ squeeze/non-free fglrx-modules-dkms amd64 1:10-9-3 [1,646 kB]                                               
Fetched 12.4 MB in 3min 20s (62.1 kB/s)                                                                                                             
Selecting previously deselected package gcc-4.3-base.
(Reading database ... 134269 files and directories currently installed.)
Unpacking gcc-4.3-base (from .../gcc-4.3-base_4.3.5-4_amd64.deb) ...
Selecting previously deselected package cpp-4.3.
Unpacking cpp-4.3 (from .../cpp-4.3_4.3.5-4_amd64.deb) ...
Selecting previously deselected package dkms.
Unpacking dkms (from .../dkms_2.1.1.2-5_all.deb) ...
Selecting previously deselected package gcc-4.3.
Unpacking gcc-4.3 (from .../gcc-4.3_4.3.5-4_amd64.deb) ...
Selecting previously deselected package linux-headers-2.6.32-5-common.
Unpacking linux-headers-2.6.32-5-common (from .../linux-headers-2.6.32-5-common_2.6.32-31_amd64.deb) ...
Selecting previously deselected package linux-kbuild-2.6.32.
Unpacking linux-kbuild-2.6.32 (from .../linux-kbuild-2.6.32_2.6.32-1_amd64.deb) ...
Selecting previously deselected package linux-headers-2.6.32-5-amd64.
Unpacking linux-headers-2.6.32-5-amd64 (from .../linux-headers-2.6.32-5-amd64_2.6.32-31_amd64.deb) ...
Selecting previously deselected package linux-headers-2.6-amd64.
Unpacking linux-headers-2.6-amd64 (from .../linux-headers-2.6-amd64_2.6.32+29_amd64.deb) ...
Selecting previously deselected package fglrx-modules-dkms.
Unpacking fglrx-modules-dkms (from .../fglrx-modules-dkms_1%3a10-9-3_amd64.deb) ...
Processing triggers for man-db ...
Setting up gcc-4.3-base (4.3.5-4) ...
Setting up cpp-4.3 (4.3.5-4) ...
Setting up dkms (2.1.1.2-5) ...
Setting up gcc-4.3 (4.3.5-4) ...
Setting up linux-headers-2.6.32-5-common (2.6.32-31) ...
Setting up linux-kbuild-2.6.32 (2.6.32-1) ...
Setting up linux-headers-2.6.32-5-amd64 (2.6.32-31) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.32-5-amd64
dkms: running auto installation service for kernel 2.6.32-5-amd64:
Setting up linux-headers-2.6-amd64 (2.6.32+29) ...
Setting up fglrx-modules-dkms (1:10-9-3) ...

Creating symlink /var/lib/dkms/fglrx/10-9/source ->
                 /usr/src/fglrx-10-9

DKMS: add Completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.32-5-amd64 -C /lib/modules/2.6.32-5-amd64/build M=/var/lib/dkms/fglrx/10-9/build.....
cleaning build area....

DKMS: build Completed.

fglrx.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.32-5-amd64/updates/dkms/

depmod.....

DKMS: install Completed.
然後又...
charles-chang@dellnb:~$ sudo aptitude install fglrx-control 
The following NEW packages will be installed:
  fglrx-atieventsd{a} fglrx-control fglrx-driver{a} fglrx-glx{a} fglrx-glx-ia32{a} libaudio2{a} libmysqlclient16{a} libqt4-dbus{a} libqt4-designer{a} 
  libqt4-network{a} libqt4-qt3support{a} libqt4-script{a} libqt4-sql{a} libqt4-sql-mysql{a} libqt4-xml{a} libqtcore4{a} libqtgui4{a} mysql-common{a} 
  qt4-qtconfig{a} 
0 packages upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.1 MB of archives. After unpacking 139 MB will be used.
Do you want to continue? [Y/n/?] Y
Get:1 http://debian.nctu.edu.tw/debian/ squeeze/non-free fglrx-glx amd64 1:10-9-3 [257 kB]
Get:2 http://debian.nctu.edu.tw/debian/ squeeze/non-free fglrx-driver amd64 1:10-9-3 [17.6 MB]
Get:3 http://debian.nctu.edu.tw/debian/ squeeze/non-free fglrx-glx-ia32 amd64 1:10-9-3 [7,902 kB]                                                                       
Get:4 http://debian.nctu.edu.tw/debian/ squeeze/main libaudio2 amd64 1.9.2-4 [84.2 kB]                                                                                 
Get:5 http://debian.nctu.edu.tw/debian/ squeeze/main mysql-common all 5.1.49-3 [70.9 kB]                                                                               
Get:6 http://debian.nctu.edu.tw/debian/ squeeze/main libmysqlclient16 amd64 5.1.49-3 [1,985 kB]                                                                        
Get:7 http://debian.nctu.edu.tw/debian/ squeeze/main libqtcore4 amd64 4:4.6.3-4 [2,503 kB]                                                                             
Get:8 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-xml amd64 4:4.6.3-4 [144 kB]                                                                               
Get:9 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-dbus amd64 4:4.6.3-4 [266 kB]                                                                              
Get:10 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-script amd64 4:4.6.3-4 [871 kB]                                                                           
Get:11 http://debian.nctu.edu.tw/debian/ squeeze/main libqtgui4 amd64 4:4.6.3-4 [5,113 kB]                                                                             
Get:12 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-designer amd64 4:4.6.3-4 [5,625 kB]                                                                       
Get:13 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-network amd64 4:4.6.3-4 [541 kB]                                                                          
Get:14 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-sql amd64 4:4.6.3-4 [145 kB]                                                                              
Get:15 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-qt3support amd64 4:4.6.3-4 [1,402 kB]                                                                     
Get:16 http://debian.nctu.edu.tw/debian/ squeeze/main libqt4-sql-mysql amd64 4:4.6.3-4 [62.5 kB]                                                                       
Get:17 http://debian.nctu.edu.tw/debian/ squeeze/main qt4-qtconfig amd64 4:4.6.3-4 [142 kB]                                                                            
Get:18 http://debian.nctu.edu.tw/debian/ squeeze/non-free fglrx-atieventsd amd64 1:10-9-3 [145 kB]                                                                     
Get:19 http://debian.nctu.edu.tw/debian/ squeeze/non-free fglrx-control amd64 1:10-9-3 [4,321 kB]                                                                      
Fetched 49.1 MB in 4min 45s (172 kB/s)                                                                                                                                 
Preconfiguring packages ...
Selecting previously deselected package fglrx-glx.
(Reading database ... 141945 files and directories currently installed.)
Unpacking fglrx-glx (from .../fglrx-glx_1%3a10-9-3_amd64.deb) ...
Adding 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/diversions/libGL.so.1.2 by fglrx-glx'
Adding 'diversion of /usr/lib/libGL.so.1 to /usr/lib/fglrx/diversions/libGL.so.1 by fglrx-glx'
Selecting previously deselected package fglrx-driver.
Unpacking fglrx-driver (from .../fglrx-driver_1%3a10-9-3_amd64.deb) ...
Adding 'diversion of /usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/fglrx/diversions/libglx.so by fglrx-driver'
Selecting previously deselected package fglrx-glx-ia32.
Unpacking fglrx-glx-ia32 (from .../fglrx-glx-ia32_1%3a10-9-3_amd64.deb) ...
Adding 'diversion of /usr/lib32/libGL.so.1.2 to /usr/lib32/fglrx/diversions/libGL.so.1.2 by fglrx-glx-ia32'
Adding 'diversion of /usr/lib32/libGL.so.1 to /usr/lib32/fglrx/diversions/libGL.so.1 by fglrx-glx-ia32'
Selecting previously deselected package libaudio2.
Unpacking libaudio2 (from .../libaudio2_1.9.2-4_amd64.deb) ...
Selecting previously deselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.1.49-3_all.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.49-3_amd64.deb) ...
Selecting previously deselected package libqtcore4.
Unpacking libqtcore4 (from .../libqtcore4_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-xml.
Unpacking libqt4-xml (from .../libqt4-xml_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-dbus.
Unpacking libqt4-dbus (from .../libqt4-dbus_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-script.
Unpacking libqt4-script (from .../libqt4-script_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqtgui4.
Unpacking libqtgui4 (from .../libqtgui4_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-designer.
Unpacking libqt4-designer (from .../libqt4-designer_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-network.
Unpacking libqt4-network (from .../libqt4-network_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-sql.
Unpacking libqt4-sql (from .../libqt4-sql_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-qt3support.
Unpacking libqt4-qt3support (from .../libqt4-qt3support_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package libqt4-sql-mysql.
Unpacking libqt4-sql-mysql (from .../libqt4-sql-mysql_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package qt4-qtconfig.
Unpacking qt4-qtconfig (from .../qt4-qtconfig_4%3a4.6.3-4_amd64.deb) ...
Selecting previously deselected package fglrx-atieventsd.
Unpacking fglrx-atieventsd (from .../fglrx-atieventsd_1%3a10-9-3_amd64.deb) ...
Selecting previously deselected package fglrx-control.
Unpacking fglrx-control (from .../fglrx-control_1%3a10-9-3_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for menu ...
Setting up fglrx-driver (1:10-9-3) ...
Setting up fglrx-glx (1:10-9-3) ...
Setting up fglrx-glx-ia32 (1:10-9-3) ...
Setting up libaudio2 (1.9.2-4) ...
Setting up mysql-common (5.1.49-3) ...
Setting up libmysqlclient16 (5.1.49-3) ...
Setting up libqtcore4 (4:4.6.3-4) ...
Setting up libqt4-xml (4:4.6.3-4) ...
Setting up libqt4-dbus (4:4.6.3-4) ...
Setting up libqt4-script (4:4.6.3-4) ...
Setting up libqtgui4 (4:4.6.3-4) ...
Setting up libqt4-designer (4:4.6.3-4) ...
Setting up libqt4-network (4:4.6.3-4) ...
Setting up libqt4-sql (4:4.6.3-4) ...
Setting up libqt4-qt3support (4:4.6.3-4) ...
Setting up libqt4-sql-mysql (4:4.6.3-4) ...
Setting up qt4-qtconfig (4:4.6.3-4) ...
update-alternatives: using /usr/bin/qtconfig-qt4 to provide /usr/bin/qtconfig (qtconfig) in auto mode.
Setting up fglrx-atieventsd (1:10-9-3) ...
Starting atieventsd: done.
Setting up fglrx-control (1:10-9-3) ...
Processing triggers for menu ...

兩個都裝完後,就會又ati catalys control center -- 類似windows 的 video driver control panel ,看一下 driver 是不是 OK。 開啟出現 error..所以依照說明,run $sudo aticonfig --init 重新建立 /etc/X11/xorg.cong 然後reboot.. ati catalys control center 就可以正常啟動,可以看到和設定 hd5650 的 harware 選項。 還有 lsmod, fglrx 的 reference 就不是 0 了。
接下來啟動 compiz-fusion-icon,Windows Manager 選 compiz。 在 Setting 可以選一些.. 記得要enable windows decorator,不然windows 上的三個button (minimize, maximum, close) 會不見。
glxgear 結果是1900 ~ 2300 FPS. 雖然跟這個無關.. 開啟chrome 的 hardware accelration,, about:flags .測一下http://www.kevs3d.co.uk/dev/asteroidsbench/
Benchmark Score: 2416
Average FPS: 51
爆笑的是..disable 的話,測出來:
Benchmark Score: 2428
Average FPS: 51

沒有留言:

標籤

網誌存檔