Public bug reported:

If grub isn't installed in system prime-select fails =(

sudo prime-select nvidia
-------------------------
Info: selecting the nvidia profile
Traceback (most recent call last):
  File "/usr/bin/prime-select", line 298, 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 147, in _enable_nvidia
    self._grub_path, ['nouveau.runpm', 'video=VGA'])
  File "/usr/bin/prime-select", line 214, in _remove_boot_params
    with open(path, 'r+') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/default/grub'

imho, prime-select should show warning about kernel options in case
without grub and keep working

** Affects: nvidia-prime (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1766366

Title:
  prime-select fails without grub

Status in nvidia-prime package in Ubuntu:
  New

Bug description:
  If grub isn't installed in system prime-select fails =(

  sudo prime-select nvidia
  -------------------------
  Info: selecting the nvidia profile
  Traceback (most recent call last):
    File "/usr/bin/prime-select", line 298, 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 147, in _enable_nvidia
      self._grub_path, ['nouveau.runpm', 'video=VGA'])
    File "/usr/bin/prime-select", line 214, in _remove_boot_params
      with open(path, 'r+') as f:
  FileNotFoundError: [Errno 2] No such file or directory: '/etc/default/grub'

  imho, prime-select should show warning about kernel options in case
  without grub and keep working

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to