AMD driver *Solution* (tested and proven for openSuSE 11.3 GM!)

I chased down, personally tested (and therefore proved to work) a shell-script that downloads and auto-builds a working RPM for the Linux Catalyst driver for openSuSE 11.3 (works with either RC and GM; I personally tested, and am using, the GM RPM built via this script).

Google Translate (English translation via Google of the original German page; the script works in US English openSuSE 11.3 GM, where I tested it)

Why this is important: Unlike owners of earlier AMD GPUs, those of us with HD5xxx-based cards have no option other than the proprietary driver to get any sort of 3D acceleration and compositing; prior to this script, we could not run openSuSE 11.3 at all with compositing (or even 2D direct rendering, which is not supported in the FOSS driver for HD5xxx)

shouldn’t this good news be moved/copied to the forum’s and/or wiki’s
how-to/SDB section?


Enjoy Packman’s benefits? Show your appreciation by donating at
http://se.unixheads.org/?donate

DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

The script doesn’t seems to support x86_64. I’m going to try the manual installation.

It actually downgrades the X server therefore working the current ATI driver. Is it safe to do so?

Hi vitorpy,

I am the author from the “makerpm-ati” script. :wink:

Could you post the complete output of the script, please?

Do you use openSUSE 11.2 or 11.3? Normally, this doesn’t downgrade the X-Server under openSUSE 11.3.

Greeting

Sebastian

I did the testing with the x86_64 version of 11.3 GM (the script is bitness-irrelevant). The critical things are twofold: the script must be run as root (no sudo!) and the same prereqs that normal AMD driver builds require (AKA “the hard way”) apply.

Hello, Sebastian.

Normally, 11.2 wouldn’t need the script, as the 10.6 driver builds fine there as long as you have all the pre-requisites met (the only exception is if you have the repos from Factory which have 11.3-or-later versions of X).

vitorpy, do you have the Factory repos (or any repo with the same version of X as 11.3 or later) enabled? The Factory repos I have enabled all are KDE-rated (no changes in X from stock) and were enabled after running the script and installing the resultant RPM; the only other repo I had enabled other than the standard repos is Packman (VLC and Pidgin).

I also haveing problems with script and ati drivers here’s the output I get


  •                                                             *
    
  • Script: makerpm-ati-10.6.sh *
  • Version: 2.9 *
  • Written by: Sebastian Siebert (mail@sebastian-siebert.de) *
  •                                                             *
    
  • Description: This script helps you to create a rpm package *
  •             from the proprietary ATI installer              *
    
  •                                                             *
    
  • License: This script is under the *
  •             modified BSD License (2-clause license)         *
    
  •                                                             *
    

Check for running this script as root … OK ]
Grab openSUSE Version …
openSUSE Version = 11.3 (113) OK ]
Get the architecture of this machine …
Architecture: x86_64 (AMD64) OK ]
Check for existing ATI-Installer “ati-driver-installer-10-6-x86.x86_64.run” in current d OK ]ry …
Compare SHA1 checksum of the ATI-Installer … OK ]
Set the correct permissions of ATI-Installer “ati-driver-installer-10-6-x86.x86_64.run” OK ]
Check for supported graphics card on this machine …
Creating directory /home/aries/Downloads/tmp.xMduKZtbHb
01:05.0 VGA compatible controller [0300]: ATI Technologies Inc RS880 [Radeon HD 4200] [1002:9710]
Found supported graphics card by ASIC ID: 9710 OK ]
Check the installed development packages …
check gcc … AVAILABLE ]
check make … AVAILABLE ]
check patch … AVAILABLE ]
check kernel-source … AVAILABLE ]
check linux-kernel-headers … MISSING ]

missing “linux-kernel-headers”-package: try to run “zypper install linux-kernel-headers”

check kernel-desktop-devel … AVAILABLE ]
OK ]

Build the RPM-Packages “SuSE/SUSE113-AMD64” …
----- START: ATI INSTALLER —
Created directory fglrx-install.zSjdYl
Verifying archive integrity… All good.
Uncompressing ATI Catalyst™ Proprietary Linux Driver-8.741…

ATI Technologies Linux Driver Installer/Packager

Generating package: SuSE/SUSE113-AMD64
Error: Distro Version entered incorrectly or not supported, use --listpkg to identify valid distro versions
Removing temporary directory: fglrx-install.zSjdYl
----- END: ATI INSTALLER —

Error: RPM-Package was NOT builded! FAILURE ]
I looked for the kernel headers package, also ran the zypper line ass suggested and found none, I am also running 64 bit 11.3
thanks

I see you have the wrong script version (2.9). This script wasn’t adapted for openSUSE 11.3. You need to download makerpm-ati-10.6-beta.sh (3.0-beta) from here: openSUSE 11.2 – XOrg 7.5 (X-Server 1.8.0) + ATI Catalyst 10.6 (fglrx 8.741) laufen einwandfrei

Greeting,

Sebastian

I think I used the wrong script also. I’ll try again.

Many thanks works like a charm Now once again thanks :slight_smile:

I ran the correct script and it’s now building the rpm package. So it was my fault that it didn’t work before because I downloaded the wrong script. I hope it works this time. :slight_smile:

linux:/tmp # wget http://www.sebastian-siebert.de/downloads/makerpm-ati-10.6-beta.sh
–2010-07-16 15:41:34-- http://www.sebastian-siebert.de/downloads/makerpm-ati-10.6-beta.sh
Resolving www.sebastian-siebert.de… 84.246.123.242
Connecting to www.sebastian-siebert.de|84.246.123.242|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 23711 (23K) [application/x-shellscript]
Saving to: `makerpm-ati-10.6-beta.sh’

100%==========================================================================>] 23,711 92.1K/s in 0.3s

2010-07-16 15:41:34 (92.1 KB/s) - `makerpm-ati-10.6-beta.sh’ saved [23711/23711]

linux:/tmp # chmod 700 makerpm-ati-10.6-beta.sh
linux:/tmp # ./makerpm-ati-10.6-beta.sh


  •                                                             *
    
  • Script: makerpm-ati-10.6-beta.sh *
  • Version: 3.0-beta *
  • Written by: Sebastian Siebert (mail@sebastian-siebert.de) *
  •                                                             *
    
  • Description: This script helps you to create a rpm package *
  •             from the proprietary ATI installer              *
    
  •                                                             *
    
  • License: This script is under the *
  •             modified BSD License (2-clause license)         *
    
  •                                                             *
    

Check for running this script as root … OK ]
Grab openSUSE Version …
openSUSE Version = 11.3 (113) OK ]
Get the architecture of this machine …
Architecture: x86_64 (AMD64) OK ]
Check for existing ATI-Installer “ati-driver-installer-10-6-x86.x86_64.run” in current directory … FAILURE ]
Download the ATI-Installer …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 94.6M 100 94.6M 0 0 700k 0 0:02:18 0:02:18 --:–:-- 707k
OK ]
Compare SHA1 checksum of the ATI-Installer … OK ]
Check for existing patch “ati-10.6-xorg-7.5.patch” in current directory … FAILURE ]
Download the patch “ati-10.6-xorg-7.5.patch” …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 73528 100 73528 0 0 82169 0 --:–:-- --:–:-- --:–:-- 113k
OK ]
Compare SHA1 checksum of the patch “ati-10.6-xorg-7.5.patch” … OK ]
Check for existing patch “ati-10.6-fixed-missing-include.patch” in current directory … FAILURE ]
Download the patch “ati-10.6-fixed-missing-include.patch” …
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 486 100 486 0 0 1242 0 --:–:-- --:–:-- --:–:-- 3857
OK ]
Compare SHA1 checksum of the patch “ati-10.6-fixed-missing-include.patch” … OK ]
Set the correct permissions of ATI-Installer “ati-driver-installer-10-6-x86.x86_64.run” … OK ]
Check for supported graphics card on this machine …
Creating directory /tmp/tmp.XaPf0gyyKs
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV730 PRO [Radeon HD 4650] [1002:9498]
Found supported graphics card by ASIC ID: 9498 OK ]
Check the installed development packages …
check gcc … AVAILABLE ]
check make … AVAILABLE ]
check patch … AVAILABLE ]
check kernel-source … AVAILABLE ]
check kernel-devel … AVAILABLE ]
check kernel-desktop-devel … AVAILABLE ]
OK ]
Patch the ATI-Installer with “ati-10.6-xorg-7.5.patch” …
patching file packages/SuSE/x750_64a.SUSE112-AMD64-unofficial-Xorg75.spec
patching file packages/SuSE/x750.SUSE112-IA32-unofficial-Xorg75.spec
patching file packages/SuSE/x750_64a.SUSE113-AMD64-unofficial-Xorg75.spec
patching file packages/SuSE/x750.SUSE113-IA32-unofficial-Xorg75.spec
OK ]
Patch the ATI-Installer with “ati-10.6-fixed-missing-include.patch” …
patching file common/lib/modules/fglrx/build_mod/kcl_wait.c
OK ]

Build the RPM-Packages “SuSE/SUSE113-AMD64-unofficial-Xorg75” …
----- START: ATI INSTALLER —

ATI Technologies Linux Driver Installer/Packager

Generating package: SuSE/SUSE113-AMD64-unofficial-Xorg75
/tmp/ati.CtegOy
Package /tmp/fglrx64_7_5_0_SUSE113-8.741-1.x86_64.rpm has been successfully generated
----- END: ATI INSTALLER —

RPM-Package was builded successfully! OK ]

Install the RPM-Package with: rpm -ihv fglrx64_7_5_0_SUSE113-8.741-1.x86_64.rpm
OR
Update the RPM-Package with: rpm -Uhv fglrx64_7_5_0_SUSE113-8.741-1.x86_64.rpm

The driver is partially working now - the graphics performance is much better then before. However CCC does not work. Also compositing does not seem to be working and when I try to run ‘Personal Settings’ > ‘Desktop’ it crashes with the following error:

**System Settings - The KDE Crash Handler

We are sorry, System Settings closed unexpectedly.
You can help us improve KDE Software by reporting this error.

Details: Executable: systemsettings PID: 18073 Signal: 11 (Segmentation fault)**

When I run “ATI Catalyst Control Center” the error says:

**Initialization error

There was a problem initializing Catalyst Control Center Linux edition. It could be caused by the following.

No ATI graphics driver is installed, or the ATI driver is not functioning properly. Please install the ATI driver appropriate for you AIT hardware, or configure using aticonfig.**

I get the same error if I run “ATI Catalyst Control Center (Administrative)”.

When I press Ctrl + Alt + F12 to enable compositing the gui crashes to a black screen and I have to reboot.

fglrxinfo also causes a seg fault:

linux:/ # fglrxinfo
Segmentation fault

Is the fglrx kernel module loaded?
Check this:

lsmod | grep fglrx

The output of the above commands looks like this:

fglrx       2444606 28

If this would not be even loaded, try this:

modprobe fglrx

A radeon kernel module should not be loaded, the following commands should not be print out any line:

lsmod | grep radeon

If the output of the above commands show a loaded radeon kernel module (if even a radeon blacklist exists), you should rebuild initram:

mkinitrd

Good luck! :wink:

Greetings,

Sebastian

Sebastian,
Thanks for taking time to help out. :slight_smile:

I ran the commands as you suggested and at first the module was not loaded. I loaded it but I am still unable to run CCC or fglrxinfo, etc.

linux:/ # lsmod | grep fglrx
linux:/ # modprobe fglrx
linux:/ # lsmod | grep fglrx
fglrx 2444606 0
linux:/ # fglrxinfo
Segmentation fault

I will try the other thing you suggested next.

You’re welcome. :wink:

I forget to say that you need to reboot your computer. After this try it again.

If you are in the console after reboot, you need a /etc/X11/xorg.conf:

aticonfig --initial

Didn’t work. I ran ‘aticonfig --initial=dual-head’ (I’ve tried just --initial also and it doesn’t work) and then rebooted.

Once X boots up both screens go black and the computer is locked hard (can’t get to terminal or use ctrl+alt+backspace).

To fix it I have to reboot into level 3 and move or delete /etc/X11/xorg.conf. Once I do that I can do ‘init 5’ and get into X, or reboot and it comes up normally.

I ran the mkinitrd command earlier but it was taking forever so I didn’t let it finish. I can try that again later if needed.

After rebooting now the fglrx module is no longer loaded.

**linux:/> lsmod | grep fglrx
linux:/> **

Here is the xorg.conf and kdm.log:

***xorg.conf:

Section “ServerLayout”
Identifier “aticonfig Layout”
Screen 0 “aticonfig-Screen[0]-0” 0 0
Screen “aticonfig-Screen[0]-1” RightOf “aticonfig-Screen[0]-0”
EndSection

Section “Files”
EndSection

Section “Module”
EndSection

Section “Monitor”
Identifier “aticonfig-Monitor[0]-0”
Option “VendorName” “ATI Proprietary Driver”
Option “ModelName” “Generic Autodetecting Monitor”
Option “DPMS” “true”
EndSection

Section “Monitor”
Identifier “aticonfig-Monitor[0]-1”
Option “VendorName” “ATI Proprietary Driver”
Option “ModelName” “Generic Autodetecting Monitor”
Option “DPMS” “true”
EndSection

Section “Device”
Identifier “aticonfig-Device[0]-0”
Driver “fglrx”
BusID “PCI:1:0:0”
EndSection

Section “Device”
Identifier “aticonfig-Device[0]-1”
Driver “fglrx”
BusID “PCI:1:0:0”
Screen 1
EndSection

Section “Screen”
Identifier “aticonfig-Screen[0]-0”
Device “aticonfig-Device[0]-0”
Monitor “aticonfig-Monitor[0]-0”
DefaultDepth 24
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “aticonfig-Screen[0]-1”
Device “aticonfig-Device[0]-1”
Monitor “aticonfig-Monitor[0]-1”
DefaultDepth 24
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection***

***kdm.log:

X.Org X Server 1.8.0
Release Date: 2010-04-02
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64
Kernel command line: root=/dev/disk/by-id/ata-WDC_WD2500JS-75NCB2_WD-WCANK4050583-part3 resume=/dev/disk/by-id/ata-WDC_WD2500JS-75NCB2_WD-WCANK4050583-part2 splash=silent quiet vga=0x345 3
Build Date: 05 July 2010 09:27:36PM

Current version of pixman: 0.18.0
Before reporting problems, check X.Org Wiki - Home
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Fri Jul 16 17:07:29 2010
(==) Using config directory: “/etc/X11/xorg.conf.d”
(WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
(EE) fglrx(0): Given depth (8) is not supported by fglrx driver
(EE) fglrx(0): PreInitVisual failed
(EE) fglrx(0): PreInit failed
SetVBEMode failed
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
at X.Org Wiki - Home
for help.
Please also check the log file at “/var/log/Xorg.0.log” for additional information.***

I found out that some people have a trouble with KMS.
Workaround: add permanently to your bootparameter: nomodeset

And try it again with “modprobe fglrx” and “aticonfig --initial=dual” after reboot.

I will release makerpm-ati Beta2 later. The script can disable permanently KMS with the variable NO_KMS_IN_INITRD in /etc/sysconfig/kernel and execute “mkinitrd”. You can activate this later again.

I’m curious as to why there are KMS issues in only some cases.

Despite the Intel CPU and nVidia (630i) chipset, modesetting works just fine with my AMD HD5450 (which wasn’t the case with the HD3450/FOSS driver/11.2 combination). Also, I have to turn modesetting off with the Kubuntu 10.10 (Maverick Meerkat) alpha 2 live CD (though running from an install, I can have modesetting active).