Comment 84 for bug 1310489

Revision history for this message
Alistair Buxton (a-j-buxton) wrote : Re: [Bug 1310489] Re: xorg.conf overwritten by booting system

Well it wasn't removed by me.

This problem only seems to happen when there is an update for the
graphics drivers. This kicks off DKMS on next boot, so perhaps
gpu-manager is looking for the driver before DKMS has rebuilt it?

On 1 December 2014 at 11:29, Alberto Milone
<email address hidden> wrote:
> Alistair: apparently, the gpu-manager detected zero GPUs on your
> previous boot ("last cards number = 0"). I'm not sure why that is. The
> number of GPUs from last boot is usually available in /var/lib/ubuntu-
> drivers-common/last_gfx_boot.
>
> Is it possible that the said file was removed? As that would explain the
> zero GPUs statement in the log.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1310489
>
> Title:
> xorg.conf overwritten by booting system
>
> Status in ubuntu-drivers-common package in Ubuntu:
> Fix Released
> Status in ubuntu-drivers-common source package in Trusty:
> Fix Released
>
> Bug description:
> Description: Ubuntu 14.04 LTS
> Release: 14.04
>
> ----------------
>
> == SRU Request ==
>
> There is a regression in the gpu-manager that causes it to revert user
> changes right before the first reboot after enabling the fglrx driver
> or the nvidia driver on a system with hybrid graphics (Intel+AMD or
> Intel+NVIDIA). This causes the gpu-manager to remove the current
> xorg.conf and to switch to Mesa.
>
> [Impact]
> * This regression makes it almost impossible to use binary drivers on systems with hybrid graphics.
>
> [Test Case]
> * Make sure to be using a hybrid system with Intel+AMD or Intel+NVIDIA GPUs.
>
> * Make sure that the gpu-manager is not disabled (only necessary if
> you disabled it manually).
>
> * Remove all fglrx and nvidia drivers (keep the nvidia-common and the nvidia-prime packages):
> sudo apt-get --purge remove nvidia-331
> sudo apt-get --purge remove nvidia-331
> sudo apt-get --purge remove fglrx
> sudo apt-get --purge remove fglrx-updates
>
> * Install ubuntu-drivers-common from trusty-proposed.
>
> * Restart the system.
>
> * Install the binary driver (either fglrx or nvidia, according to the available discrete GPU), reboot, and check that the binary driver is enabled (attach your /var/log/gpu-manager.log)
> - Expected: the (AMD or NVIDIA) discrete GPU is enabled.
> - Bad behavior: the system switches back to the intel driver and the discrete GPU is not used, despite the fact that the system was configured properly.
>
> [Regression Potential]
> * Low. Systems that currently work will keep working as usual, the ones that currently fail should finally work.
>
> [Other Info]
> * N/A
>
> -----------------
>
> Hello,
>
> I am using a notebook with a quadcore AMD A10 and hybrid graficcard AMD/ATI Radeon HD 8650G / AMD/ATI Sun XT Radeon HD 8670A/8670M/8690M.
> After installing fglrx I generated the xorg.conf in the terminal with 'sudo aticonfig --adapter=all --initial' and it looked pretty good. Up to this point I was able to switch between the cards with the commands 'sudo aticonfig --px-dgpu' for the discrete card and 'sudo aticonfig --px-igpu' for the intigrated card to save power.
> After rebooting I realized that I was no longer able to switch between the cards and found that the xorg.conf will be overwritten whenever I modified it and reboot the system. The new (by boot) generated xorg.conf contains not the relevant information for switing between the cards.
> I attached both configuration in one file (xorg.conf.comparison). I will also provide the atisysteminfo-report.txt so far I will find the place where to attach.
>
> Edit: I fixed the error --> "AIGLX error: failed to open
> /usr/lib64/dri/fglrx_dri.so, error[/usr/lib64/dri/fglrx_dri.so: cannot
> open shared object file: No such file or directory]" but it changed
> not the bug of overwriting the xorg.conf.
>
> Regards,
> Uwe
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: xorg 1:7.7+1ubuntu8
> ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
> Uname: Linux 3.13.0-24-generic x86_64
> NonfreeKernelModules: fglrx
> .tmp.unity.support.test.0:
>
> ApportVersion: 2.14.1-0ubuntu3
> Architecture: amd64
> CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
> CompositorRunning: None
> CurrentDesktop: Unity
> Date: Mon Apr 21 08:43:29 2014
> DistUpgraded: Fresh install
> DistroCodename: trusty
> DistroVariant: ubuntu
> DkmsStatus: fglrx, 13.350.1, 3.13.0-24-generic, x86_64: installed
> ExtraDebuggingInterest: Yes
> GraphicsCard:
> Advanced Micro Devices, Inc. [AMD/ATI] Richland [Radeon HD 8650G] [1002:990b] (prog-if 00 [VGA controller])
> Subsystem: Hewlett-Packard Company Device [103c:1985]
> Subsystem: Hewlett-Packard Company Device [103c:1985]
> InstallationDate: Installed on 2014-04-20 (0 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
> MachineType: Hewlett-Packard HP Pavilion 17 Notebook PC
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic.efi.signed root=UUID=fdcb1eaf-eda9-48ee-9d5b-b44e1fc06687 ro quiet splash vt.handoff=7
> SourcePackage: xorg
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 09/26/2013
> dmi.bios.vendor: Insyde
> dmi.bios.version: F.22
> dmi.board.asset.tag: Base Board Asset Tag
> dmi.board.name: 1985
> dmi.board.vendor: Hewlett-Packard
> dmi.board.version: 01.13
> dmi.chassis.type: 10
> dmi.chassis.vendor: Hewlett-Packard
> dmi.chassis.version: Chassis Version
> dmi.modalias: dmi:bvnInsyde:bvrF.22:bd09/26/2013:svnHewlett-Packard:pnHPPavilion17NotebookPC:pvr0892100000005910000600000:rvnHewlett-Packard:rn1985:rvr01.13:cvnHewlett-Packard:ct10:cvrChassisVersion:
> dmi.product.name: HP Pavilion 17 Notebook PC
> dmi.product.version: 0892100000005910000600000
> dmi.sys.vendor: Hewlett-Packard
> version.compiz: compiz 1:0.9.11+14.04.20140409-0ubuntu1
> version.fglrx-installer: fglrx-installer N/A
> version.ia32-libs: ia32-libs N/A
> version.libdrm2: libdrm2 2.4.52-1
> version.libgl1-mesa-dri: libgl1-mesa-dri 10.1.0-4ubuntu5
> version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
> version.libgl1-mesa-glx: libgl1-mesa-glx 10.1.0-4ubuntu5
> version.xserver-xorg-core: xserver-xorg-core 2:1.15.1-0ubuntu2
> version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
> version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.3.0-1ubuntu3
> version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.910-0ubuntu1
> version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.10-1ubuntu2
> xserver.bootTime: Mon Apr 21 08:29:06 2014
> xserver.configfile: /etc/X11/xorg.conf
> xserver.errors:
> open /dev/dri/card0: No such file or directory
> AIGLX error: failed to open /usr/X11R6/lib64/modules/dri/fglrx_dri.so, error[/usr/X11R6/lib64/modules/dri/fglrx_dri.so: cannot open shared object file: No such file or directory]
> AIGLX error: failed to open /usr/lib64/dri/fglrx_dri.so, error[/usr/lib64/dri/fglrx_dri.so: cannot open shared object file: No such file or directory]
> AIGLX error: failed to open /usr/X11R6/lib/modules/dri/fglrx_dri.so, error[/usr/X11R6/lib/modules/dri/fglrx_dri.so: cannot open shared object file: No such file or directory]
> xserver.logfile: /var/log/Xorg.0.log
> xserver.version: 2:1.15.1-0ubuntu2
> xserver.video_driver: fglrx
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1310489/+subscriptions

--
Alistair Buxton
<email address hidden>