← Back to team overview

desktop-packages team mailing list archive

[Bug 1345585] Re: xorg.conf with manual config is moved away at upgrade

 

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

** Changed in: nvidia-prime (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-prime in Ubuntu.
https://bugs.launchpad.net/bugs/1345585

Title:
  xorg.conf with manual config is moved away at upgrade

Status in nvidia-prime package in Ubuntu:
  Confirmed

Bug description:
  I need to configure a couple of options for the nvidia driver, e.g.
  Coolbits. For this I have /etc/X11/xorg.conf which contains purely my
  manual configuration. I have found that this file is being renamed
  xorg.conf.<MMDDYYYY> at irregular intervals, thereby disabling these
  manual settings.

  /var/lib/dpkg/info/nvidia-prime.postrm is very likely what's causing
  this:

  case "$1" in
      purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
          # Remove the xorg.conf
          if [ -f $xorg_conf ]; then
              mv $xorg_conf $xorg_conf.$now
          fi

  Iiuc this is run on every upgrade of the nvidia-prime package. I don't
  know the reasons for doing this, but given that /etc/X11/xorg.conf is
  still intended (only) for manual configuration, it should not
  summarily be moved away. If there's a risk for conflicting old configs
  then they should be detected more accurately and handled through the
  normal tools that updates/replaces /etc files containing local
  changes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1345585/+subscriptions