Add "manual install" flag

Bug #1025632 reported by Martin Pitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

Especially for the nvidia driver it often happens that users install the driver with the upstream shell script instead of the package. The device info map should have a flag "manual_install" which is set in that case. This will cause the UI to not touch the device/driver at all to avoid destroying the manual installation.

We can detect this by checking if the module exists, but the driver package is not installed.

Revision history for this message
Martin Pitt (pitti) wrote :

Setting to incomplete until I get confirmation from Didier what kind of API/behaviour he needs.

description: updated
Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

waiting on mpt's feedback, maybe we need to see all other drivers still (so having a dummy virtual one, like for "builtins" one telling it's manually installed) will be needed next to others to show them still. This can give more flexibility in the future as well, what do you think?

Martin Pitt (pitti)
description: updated
Changed in ubuntu-drivers-common (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in git.

Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
ubuntu-drivers-common (1:0.2.66) quantal; urgency=low

  * UbuntuDrivers/detect.py, system_device_drivers(): Add driver flag
    "manual_installed" if none of the driver packages are installed, but the
    corresponding kernel module is available. This usually means that the user
    installed the driver manually from upstream. (LP: #1025632)
  * share/fake-devices-wrapper: If $FAKE_INSTALLED_KMOD is set, run the
    wrapped program with a "modinfo" wrapper in $PATH which claims that the
    given kernel module name is available. This can be used to test the
    "manually installed driver" case.
 -- Martin Pitt <email address hidden> Wed, 18 Jul 2012 09:29:59 +0200

Changed in ubuntu-drivers-common (Ubuntu):
status: Fix Committed → 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.