gpu-manager xorg.conf inconsistency with AMD Catalyst (fglrx)

Bug #1299002 reported by Heikki Berg
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is a bug report against gpu-manager.c in ubuntu-drivers-common.

~/Documents/VC/ubu/ubuntu-drivers-common/share/hybrid$ bzr log
------------------------------------------------------------
revno: 56
tags: 1:0.2.91.1
author: Alberto Milone
committer: Package Import Robot
branch nick: trusty-proposed
timestamp: Fri 2014-03-21 20:03:20 +0100

I'm submitting this now manually due to urgency to 14.04 release as ubuntu-bug crashes too ;(

%sudo aticonfig --adapter=all --initial writes a xorg.conf which uses xorg.conf keywords in "text" fields searched by function
 static int check_vendor_bus_id_xorg_conf(struct device **devices, int cards_n,
                                         unsigned int vendor_id, char *driver)

In line 1072 of gpu-manager.c

"Driver" keyword is found from following lines xorg.conf written by aticonfig
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[1]-0"
 Option "VendorName" "ATI Proprietary Driver"
 Option "ModelName" "Generic Autodetecting Monitor"
 Option "DPMS" "true"
EndSection

Line 1119 of gpu-manager.c
            else if ((istrstr(line, "Driver") != NULL) &&
                     (strstr(line, driver) == NULL)) {
                failure = 1;
            }
Looks the xorg keyword "Driver" anywhere in the line and finds "ATI Proprietary Driver", but of course does not find correct drivername "fglrx" from the same line => Keywords should be searched from the beginning of the line, not all over.

Second issue in same function the format "PCI:%d@%d:%d:%d" which is different to format "PCI:%d:%d:%d" used by aticonfig, which causes misdetection of correct BusID in xorg.conf

If routine "check_vendor_bus_id_xorg_conf()" reports "Check failed" completely valid xorg.conf is overwritten by gpu-manager.c in boot.

Quick workaround for users is to correct the xorg.conf after installation of ATI Catalyst proprietary drivers taking these into account.
---
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2014-03-27 (1 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140227)
NonfreeKernelModules: wl fglrx
Package: ubuntu-drivers-common 1:0.2.91.1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Tags: trusty
Uname: Linux 3.13.0-19-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Heikki Berg (heikki-berg) wrote :
tags: added: apport-collected trusty
description: updated
Revision history for this message
Heikki Berg (heikki-berg) wrote : Dependencies.txt

apport information

Revision history for this message
Heikki Berg (heikki-berg) wrote : ProcEnviron.txt

apport information

Revision history for this message
Heikki Berg (heikki-berg) wrote : UbuntuDriversDebug.txt

apport information

Revision history for this message
Heikki Berg (heikki-berg) wrote :

After complete system reinstall, and selecting fglrx from Driver Manager (instead of manually installing from http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64) I have no problems. No need for manual install.

Still keyword search in gnu-manager SHOULD search label "Driver" from beginning of the line... => the bug is not critical.

Revision history for this message
alela1441 (ale1441ela) wrote :

Upgrade 19-09-14:

 - ubuntu-drivers-common (0.2.91.6, 0.2.91.7)
 - dh-modaliases (0.2.91.6, 0.2.91.7)
 - linux-firmware (1.127.5, 1.127.6)

alela@alela-X550DP:~$ aticonfig --initial --adapter=all --od-gettemperature
Found fglrx primary device section
Found fglrx primary device section
 Unable to find any supported Screen sections

Se hace obligatorio, pero esto no es satisfactorio:

$ aticonfig --initial -f --adapter=all --od-gettemperature

Al hacer:

$ sudo rm /etc/X11/xorg.conf*

Pero esto tampoco es satisfactorio.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-drivers-common (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.