Public bug reported:

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

** Affects: ubuntu-drivers-common (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-collected trusty

** Attachment added: "xorg.conf written by aticonfig --adapter=all --initial"
   https://bugs.launchpad.net/bugs/1299002/+attachment/4048598/+files/xorg.conf

** Tags added: apport-collected trusty

** Description changed:

  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.
+ 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1299002

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1299002/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to