Bug#702651: nvidia-glx-legacy-96xx: NVIDIA driver is not working after installation, due to wrong alternatives configuration

2013-03-09 Thread Damian
Package: nvidia-glx-legacy-96xx
Version: 96.43.23-3
Severity: important

At the first place, to get the bug, you need to have set:

APT::Install-Recommends true;

in your apt configuration (I have it in /etc/apt/apt.conf.d/99synaptic). 

It is set by Synaptic package in my case, which is not instlaled by default if 
I remember correctly (default Debian installation from CD), so most people may 
not have this bug in their system until they install Synaptic. 

More, I am not even sure, if default Synaptic installation sets this config 
option for apt, it may be set, by me manually (not by editing 
/etc/apt/apt.conf.d/99synaptic, but in Synaptic Options in GUI).


What is the possible problem?

After apt-get install nvidia-glx-legacy-96xx (with recommended) you get this in 
console (Polish language version):
---
root@XXX:/home/YYY apt-get install nvidia-glx-legacy-96xx
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności   
Odczyt informacji o stanie... Gotowe
Zostaną zainstalowane następujące dodatkowe pakiety:
  dkms glx-alternative-mesa glx-alternative-nvidia glx-diversions 
libgl1-nvidia-alternatives
  libgl1-nvidia-legacy-173xx-glx libgl1-nvidia-legacy-96xx-glx 
libglx-nvidia-alternatives
  linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common 
linux-headers-686-pae
  linux-kbuild-3.2 nvidia-alternative-legacy-173xx 
nvidia-alternative-legacy-96xx
  nvidia-installer-cleanup nvidia-kernel-common nvidia-kernel-legacy-96xx-dkms
  nvidia-settings-legacy-173xx nvidia-support pkg-config
  xserver-xorg-video-nvidia-legacy-173xx xserver-xorg-video-nvidia-legacy-96xx
Sugerowane pakiety:
  nvidia-glx nvidia-kernel-legacy-173xx-dkms nvidia-kernel-legacy-173xx-source
Zostaną zainstalowane następujące NOWE pakiety:
  dkms glx-alternative-mesa glx-alternative-nvidia glx-diversions 
libgl1-nvidia-alternatives
  libgl1-nvidia-legacy-173xx-glx libgl1-nvidia-legacy-96xx-glx 
libglx-nvidia-alternatives
  linux-headers-3.2.0-4-686-pae linux-headers-3.2.0-4-common 
linux-headers-686-pae
  linux-kbuild-3.2 nvidia-alternative-legacy-173xx 
nvidia-alternative-legacy-96xx
  nvidia-glx-legacy-96xx nvidia-installer-cleanup nvidia-kernel-common
  nvidia-kernel-legacy-96xx-dkms nvidia-settings-legacy-173xx nvidia-support 
pkg-config
  xserver-xorg-video-nvidia-legacy-173xx xserver-xorg-video-nvidia-legacy-96xx
0 aktualizowanych, 23 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Konieczne pobranie 9197 kB/16,3 MB archiwów.
Po tej operacji zostanie dodatkowo użyte 95,0 MB miejsca na dysku.
Kontynuować [T/n]?  
---

What you see, is a lot of packages, which is not wrong by itself, but we have 
some 173xx versions here, and we are installing 96xx version! So the question 
is, are these packages really needed (libgl1-nvidia-legacy-173xx-glx and 
nvidia-alternative-legacy-173xx)? Shouldn't there be 96xx equivalent of them 
created? 


OK so what is the problem?

After insallation, Xorg.conf reconfiguration for nvidia driver and reboot, 
Xorg fails to start. I have found that the problem is here:

update-alternatives --config nvidia

  Wybór   Ścieżka Priorytet  Status

* 0/usr/lib/nvidia/legacy-173xx   173   tryb auto
  1/usr/lib/nvidia/legacy-173xx   173   tryb ręczny
  2/usr/lib/nvidia/legacy-96xx96tryb ręczny

As you see we have auto mode which selects /usr/lib/nvidia/legacy-173xx as it 
is having higer priority (173), but we need to have it set to 
/usr/lib/nvidia/legacy-96xx. Simply by manually forcing this alternative 
configuration to position 2:

  Wybór   Ścieżka Priorytet  Status

  0/usr/lib/nvidia/legacy-173xx   173   tryb auto
  1/usr/lib/nvidia/legacy-173xx   173   tryb ręczny
* 2/usr/lib/nvidia/legacy-96xx96tryb ręczny

problem disappears, and Xorg is working properly.

So you need to check where the bug really is:
1. are these, wrong recommended 173xx version packages, that are not suitable 
for 96xx nvidia
2. or recommended packages are OK, and the problem is only with wrong 
alternatives configuration set by one of them

At the end, I will say, the problem is introduced in 96.43.23-3 version of 
nvidia-glx-legacy-96xx. Earlier version worked OK for me.
 
-- Package-specific info:
uname -a:
Linux debest.dodus.orge.pl 3.2.0-4-686-pae #1 SMP Debian 3.2.35-2 i686 GNU/Linux

/proc/version:
Linux version 3.2.0-4-686-pae (debian-ker...@lists.debian.org) (gcc version 
4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2

/proc/driver/nvidia/version:
NVRM version: NVIDIA Linux x86 Kernel Module  96.43.23  Fri Aug 31 14:52:31 PDT 
2012
GCC version:  gcc version 4.6.3 (Debian 4.6.3-14) 

lspci 'VGA compatible controller [0300]':
01:00.0 VGA compatible controller [0300]: NVIDIA 

Bug#702651: nvidia-glx-legacy-96xx: NVIDIA driver is not working after installation, due to wrong alternatives configuration

2013-03-09 Thread Andreas Beckmann
Control: reassign -1 nvidia-settings-legacy-173xx 173.14.35-1
Control: affects -1 + nvidia-glx-legacy-96xx

We only recommend libgl1-nvidia-legacy-173xx-glx with no 96xx
alternative because at the time I made that package legacy 96xx (
96.43.23) was effectively dead ...

Package: nvidia-settings-legacy-173xx
Version: 173.14.35-1
Replaces: nvidia-settings
Provides: nvidia-settings
Depends: pkg-config, libc6 (= 2.7), libgdk-pixbuf2.0-0 (= 2.22.0),
libglib2.0-0 (= 2.12.0), libgtk2.0-0 (= 2.8.0), libpango1.0-0 (=
1.14.0), libx11-6 (= 2:1.4.99.1), libxext6
Pre-Depends: nvidia-installer-cleanup
Recommends: libgl1-nvidia-legacy-173xx-glx
Conflicts: nvidia-settings, xserver-xorg-video-nvidia


Removing libgl1-nvidia-legacy-173xx-glx should be sufficient to fix
your setup.


Andreas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org