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 <alberto.mil...@canonical.com>  Thu, 12 Apr 2018
13:04:23 +0200

** Changed in: nvidia-prime (Ubuntu)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-prime in Ubuntu.
https://bugs.launchpad.net/bugs/1763302

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

Status in nvidia-prime package in Ubuntu:
  Fix Released

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1763302/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to