prime-select fails to switch to nvidia profile (/etc/modprobe.d/blacklist-nvidia.conf missing)
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.
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-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
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/
switcher.
File "/usr/bin/
self.
File "/usr/bin/
os.
FileNotFoundError: [Errno 2] No such file or directory: '/etc/modprobe.
root@kalymnos:~# prime-select query
intel
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nvidia-prime 0.8.6
ProcVersionSign
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)
PackageArchitec
SourcePackage: nvidia-prime
UpgradeStatus: Upgraded to bionic on 2018-03-14 (28 days ago)
Changed in nvidia-prime (Ubuntu): | |
assignee: | nobody → Alberto Milone (albertomilone) |
importance: | Undecided → High |
status: | New → Triaged |
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