Bug#883637: nvidia-alternative: update-glx not triggered on uninstall

Jayen Ashar j__n at yahoo.com
Wed Dec 6 23:10:57 UTC 2017


Sorry about that.  Somewhere along the way I have gotten confused.

In an attempt to reproduce this I have done:

    sudo aptitude install xserver-xorg-video-nvidia nvidia-kernel-dkms:amd64
    # i accepted whatever resolution was suggested
    sudo update-glx --auto nvidia
    # `update-glx --config nvidia` shows that `current` is the current choice
    update-alternatives --list glx--nvidia_drv.so
    # update-alternatives: error: no alternatives for glx--nvidia_drv.so
    sudo aptitude purge xserver-xorg-video-nvidia nvidia-kernel-dkms:amd64
    # i accepted whatever resolution was suggested
    ls -l /usr/lib/xorg/modules/drivers/nvidia_drv.so
    # ls: cannot access '/usr/lib/xorg/modules/drivers/nvidia_drv.so': No such file or directory
    # `update-glx --config nvidia` shows that `current` is still the current choice

Now that I understand a little bit more how this works, I guess `update-glx` does an all-or-none for nvidia 340xx or current.  In this case the `nvidia-alternative` package is still installed (and marked autoinstalled) so `update-glx` still chooses `current`.

This is the point at which I manually made the link(s) and filed the bug.

After speaking with you, and learning of `update-glx` I chose 340xxx and that probably created the link, but I was looking in the wrong place (since I had made the link in the wrong and right places).

Now that I'm a little more clear on what's going on, I think there is still a bug and additionally I have a request.

After following the steps above, the bug can be reproduced with:

    sudo aptitude purge nvidia-alternative nvidia-alternative:amd64
    # i accepted whatever resolution was suggested

The new bug is that `update-glx` is not triggered when `nvidia-alternative` is removed.  Only `update-alternative` is triggered.

And my request is that `update-glx` flag a warning when auto mode for each alternative link would come from different drivers.  That is, if `xserver-xorg-video-nvidia` is not installed but `nvidia-alternative` and `xserver-xorg-video-nvidia-legacy-340xx` are installed, then a warning appears when `update-glx` is triggered or run.

Thanks,
Jayen

--------------------------------------------
On Wed, 6/12/17, Andreas Beckmann <anbe at debian.org> wrote:

 Subject: Re: Bug#883637: xserver-xorg-video-nvidia-legacy-340xx: No alternative/symlink created for nvidia_drv.so
 To: "Jayen Ashar" <j__n at yahoo.com>, 883637 at bugs.debian.org
 Received: Wednesday, 6 December, 2017, 10:00 PM
 
 Are you looking in the wrong location? The
 driver module (link) has
 always been under modules/drivers/.
 
 On 2017-12-06 10:39, Jayen Ashar
 wrote:
 > lrwxrwxrwx 1 root root 
      36 Dec  6 14:48
 /usr/lib/xorg/modules/drivers/nvidia_drv.so ->
 /etc/alternatives/glx--nvidia_drv.so
 > lrwxrwxrwx 1 root root 
      42 Dec  4 09:11
 /usr/lib/xorg/modules/nvidia_drv.so ->
 /usr/lib/nvidia/legacy-340xx/nvidia_drv.so
 
 The second one you created manually,
 please remove it again.
 
 Andreas
 



More information about the pkg-nvidia-devel mailing list