Thứ Ba, 19 tháng 1, 2016

Install AMD Catalyst 15.7 (fglrx 15.302) on Ubuntu Gnome 14.04 (trusty, GNOME 3.10)

I've compile several version of AMD Catalyst but it seems incompatible with GNOME 3.

AMD Catalyst 15.7 is different. It was build up from fglrx proprietary and works well with GNOME 3 of Ubuntu 14.04. I followed this instruction and enjoy the new GNOME 3 desktop with newest stable AMD Catalyst supported.

Here is what I've done:

Install all prerequisite package:
sudo apt-get install cdbs dh-make dkms execstack dh-modaliases \
linux-headers-generic libqtgui4 xserver-xorg-dev-lts-trusty
Because I have x86-64 architecture, so I must add gcc32 library:
sudo apt-get install lib32gcc1
Next step, I download the Catalyst package and unzip it:
mkdir catalyst15.12 && cd catalyst15.12
wget --referer='http://support.amd.com/en-us/download/desktop?os=Linux+x86' \
 http://www2.ati.com/drivers/linux/radeon-crimson-15.12-15.302-151217a-297685e.zip
unzip radeon-crimson-15.12-15.302-151217a-297685e.zip
cd fglrx-15.302/
 After that, I create .deb package in order to remove and upgrade catalyst easily in the future:
chmod a+x amd-driver-installer-15.302-x86.x86_64.run
sudo ./amd-driver-installer-15.302-x86.x86_64.run --buildpkg Ubuntu/trusty
 I've install PlayOnLinux, which has Wine package installed. I've modified the fglrx-core as the instruction:
dpkg-deb -R fglrx-core_15.302-0ubuntu1_amd64.deb fglrx-core
sed -ri 's/(Conflicts|Provides).*/\1: fglrx-driver-core/' fglrx-core/DEBIAN/control
sudo dpkg-deb -b fglrx-core/ fglrx-core_15.302-0ubuntu1_amd64.deb
Note: the version in the latest link is different with the catalyst version we have, I've modified it.
With all package prepared, let's install them!
sudo dpkg -i fglrx*.deb
Before reboot the system, I generate a new /etc/X11/xorg.conf file:
sudo amdconfig --initial -f
But it seems not get my 8730M card:
No supported adapters detected
Hmm! If I use `lspci -vvnn | grep VGA` to find my card, the kernel still recognize it. I reboot the system to take a chance and I get the black screen. I try to login via tty1 with `Ctrl+Alt+F1`, then re-generate the /etc/X11/xorg.conf file again. This time it works!!! Wonderful!
sudo amdconfig --initial -f
 Hoho!!! Enjoy the new Catalyst!!!

glxinfo
or
glxgears
works out-of-the-box!

Thứ Sáu, 8 tháng 1, 2016

Đàn đứt dây

Hôm nay nằm trong chuỗi ngày quay mòng với các hướng công việc khác nhau lướt qua não:
  • Hướng nghiên cứu: một bài báo cáo và một bài báo. Cả hai bài đều cần biên tập lại. Kèm theo đó là kiến thức bổ trợ, blah blah... Mệt, mệt, đang mệt! Bỏ đi. Làm cái khác.
  • Hướng vừa chơi vừa học: Hôm trước thức 12h đêm, leo lên nóc nhà, cầm đèn pin soi vào cái bình và đăm chiêu nhìn, cực kỳ mờ ám. Mình để ý có tới 2 nhà hàng xóm hé cửa sổ, tắt đèn điện nhưng bật đèn ngủ và nép khe cửa rình xem mình làm cái trò gì! Mình chỉ làm cloud chamber để quan sát tia vũ trụ thôi mà (TT.TT)
  • Hướng chơi: cả ngày chỉ hát có một bài "Forever and one", y như đợt mới thuộc lời "Still loving you" vậy! Chưa soạn lại bài Diễm xưa cho anh Cơ tập nữa @.@ Vậy mà lôi guitar ra còn phát hiện nó bị đứt dây hồi nào không biết. Bộ dây còn mới căng, chưa ngả màu, dù 3 năm rồi!
  • Hướng tò mò: vừa nghĩ ra một vài ý hay với đống module TF-RF. Vừa kịp chui vào tài khoản, tính toán thiệt hại trong tháng thì phát hiện nếu mà chơi lầy nữa thì sẽ lại âm qũy như tháng trước (TT.TT)
  • Hướng nạp kiến thức: cố lên, hình như mình là con người của sự học, học không biết chán (haha!)
Điểm qua sơ vậy thôi, mai cày tiếp, chủ động liên lạc với đồng bọn sắp về ăn tết rồi nhờ mua bộ dây, soạn tiếp bài cho anh Cơ tập ^_^
Ở Viện, các anh làm việc lâu năm đều thấu hiểu hoàn cảnh khó khăn của người mới vào, và luôn ưu tiên cho mình.