no way to list drivers "ubuntu-drivers list --gpgpu" will install

Bug #1952147 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
Fix Released
Medium
Alberto Milone

Bug Description

I'm pretty sure that "ubuntu-drivers install --gpgpu" will install something if and only if "ubuntu-drivers list --gpgpu" has non-empty output, but the logic of which of the things list returns gets installed seems a bit non-trivial

The context for this is in the server installer, I want to say "we think you should install nvidia-headless-no-dkms-470-server and linux-modules-nvidia-470-server-generic", shall we go ahead and install them?

My current spike just says "there are some drivers you might want to install, shall we install them?" which just seems a bit opaque

Alberto suggested a flag so that I could run "ubuntu-drivers list --gpgpu --recommended" in the installer. I should just make very clear that I'd want "ubuntu-drivers list --recommended" (i.e. without --gpgpu) to work the same way :)

Changed in ubuntu-drivers-common (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
status: New → Triaged
importance: Undecided → Medium
Changed in ubuntu-drivers-common (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-drivers-common - 1:0.9.3

---------------
ubuntu-drivers-common (1:0.9.3) jammy; urgency=medium

  * UbuntuDrivers/detect.py,
    ubuntu-drivers:
    - Provide helper functions for NVIDIA on the desktop:
      o get_desktop_package_list()
      o nvidia_desktop_pre_installation_hook()
      o nvidia_desktop_post_installation_hook()
      The new functions, which are now used by ubuntu-drivers
      (only for the desktop i.e. "ubuntu-drivers install"),
      allow reusing the hardware detection and the customisations
      from ubuntu-drivers in other applications such as the
      Software Properties UIsi (LP: #1942208).
    - Add the "--recommended" option to the "list" command
      (LP: #1952147).
      This allows to show only the packages that will be
      installed using auto-detection i.e. one specific
      driver and its kernel module, instead of all the
      compatible drivers.
      This works with and without --gpgpu, yielding different
      results.

 -- Alberto Milone <email address hidden> Thu, 18 Nov 2021 18:05:53 +0100

Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.