prime-select fails to switch to nvidia profile (/etc/modprobe.d/blacklist-nvidia.conf missing)

Bug #1763302 reported by Horst Schirmeier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-prime (Ubuntu)
Fix Released
High
Alberto Milone

Bug Description

When running prime-select 0.8.6 to switch to the nvidia profile on a dual-GPU laptop (Lenovo ThinkPad T460p, Intel Corporation HD Graphics 530 (rev 06), NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)), it fails with a Python traceback reporting a missing /etc/modprobe.d/blacklist-nvidia.conf.

Command to run: "prime-select nvidia"

Expected: "prime-select query" now prints "nvidia".

Actual result:
root@kalymnos:~# prime-select nvidia
Info: selecting the nvidia profile
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-15-generic
Found initrd image: /boot/initrd.img-4.15.0-15-generic
Found linux image: /boot/vmlinuz-4.15.0-13-generic
Found initrd image: /boot/initrd.img-4.15.0-13-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 10 on /dev/sda1
done
Traceback (most recent call last):
  File "/usr/bin/prime-select", line 294, in <module>
    switcher.enable_profile(arg)
  File "/usr/bin/prime-select", line 114, in enable_profile
    self._enable_nvidia()
  File "/usr/bin/prime-select", line 150, in _enable_nvidia
    os.unlink(self._blacklist_file)
FileNotFoundError: [Errno 2] No such file or directory: '/etc/modprobe.d/blacklist-nvidia.conf'
root@kalymnos:~# prime-select query
intel

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nvidia-prime 0.8.6
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
CurrentDesktop: KDE
Date: Thu Apr 12 10:49:42 2018
Dependencies:

InstallationDate: Installed on 2016-11-26 (501 days ago)
InstallationMedia: Kubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
PackageArchitecture: all
SourcePackage: nvidia-prime
UpgradeStatus: Upgraded to bionic on 2018-03-14 (28 days ago)

Revision history for this message
Horst Schirmeier (horst) wrote :
Changed in nvidia-prime (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
importance: Undecided → High
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-prime - 0.8.7

---------------
nvidia-prime (0.8.7) bionic; urgency=medium

  * prime-select:
    - Do not fail if the blacklist file is not there (LP: #1763302).

 -- Alberto Milone <email address hidden> Thu, 12 Apr 2018 13:04:23 +0200

Changed in nvidia-prime (Ubuntu):
status: Triaged → 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.