nvidia-prime-boot.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

Bug #1763978 reported by Giraffe
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
nvidia-prime (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Since this week (i believe April 9th) Nvidia-prime isn't working for me.

Running:
Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic

Nvidia-prime version:

Nvidia-prime version:
  Installed: 0.8.7
  Candidate: 0.8.7
  Version table:
 *** 0.8.7 500

Error code:
apr 14 11:56:33 Precision-7510 systemd[1]: nvidia-prime-boot.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

apr 14 11:56:33 Precision-7510 systemd[1]: nvidia-prime-boot.service: Failed with result 'exit-code'.

Tags: patch
Revision history for this message
op3ntrap (op3ntrap) wrote :

Hi,
I too had the same problem and after some digging I found out that the file from which the service runs is:
/etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service

the service used vgaswitcheroo module to switch off the dGPU. However I think most of use i915 or modesetting driver which doesn't give the "vgaswitcheroo" module.

I changed my file to the attached copy.

Basically instead of using vgaswitcheroo, you can use
   "echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'" to switch off your dGPU.

Revision history for this message
Giraffe (dodger-forum) wrote :

@op3ntrap
Thanks for responding, since this problem also affects you would you mind clicking "this bug also affects me (top left). This will give the bug a higher priority.

Thanks

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Modified service file" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-prime (Ubuntu):
status: New → Confirmed
Revision history for this message
Edward (arkticpanda) wrote :

Hi,
I also seem to have this problem:
Ubuntu 18.04
nvidia-prime 0.8.8

output of `journalctl -u nvidia-prime-boot.service`

```
-- Logs begin at Tue 2018-05-15 21:22:38 BST, end at Sun 2018-05-20 15:49:46 BST. --
May 16 20:50:32 erebus systemd[1]: Starting dGPU off during boot...
May 16 20:50:32 erebus sh[1273]: /bin/sh: 1: cannot create /sys/kernel/debug/vgaswitcheroo/switch: Directory nonexistent
May 16 20:50:32 erebus systemd[1]: nvidia-prime-boot.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 16 20:50:32 erebus systemd[1]: nvidia-prime-boot.service: Failed with result 'exit-code'.
May 16 20:50:32 erebus systemd[1]: Failed to start dGPU off during boot.

```

Revision history for this message
Marco Corsi (marco999) wrote :

Hi, any solution? Same problem with kernel 4.15.0-30-generic

Revision history for this message
Dylan Borg (borgdylan) wrote :

I get the same thing with kernel 4.18.x. The current implementation of the service fails on muxless optimus. Also if one turns off the GPU using /sys/bus/pci, GDM will still not boot up even if the prime boot service would succeed.

Revision history for this message
Serhiy (xintx-ua) wrote :

/etc/systemd/system/display-manager.service.wants/nvidia-prime-boot.service was just a symlink to /lib/systemd/system/nvidia-prime-boot.service and it's gone in the latest nvidia-prime package version, 0.8.8.1 that is in bionic-proposed.

Revision history for this message
Manavjeet Singh (singhji31) wrote :

The bug is fixed after Nvidia pushed an update on 08/10/2018.

Revision history for this message
Vasyl (exposight) wrote :

The service causing the issue was removed as part of the https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1778011 fix, released in 0.8.8.1 version.

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