I got this message "Failed to start dGPU off during boot." inside my logs system (Ubuntu 18.04). This error caused my discrete GPU (Nvidia 940mx) to still run although I have switched into integrated GPU (Intel HD 620). So the battery drain faster.

I tried to figure out the detailed information about this error using,

systemctl status nvidia-prime-boot.service

the result was :

 nvidia-prime-boot.service - dGPU off during boot
   Loaded: loaded (/lib/systemd/system/nvidia-prime-boot.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2018-07-10 23:42:25 WIB; 27min ago
  Process: 996 ExecStart=/bin/sh -c echo OFF > /sys/kernel/debug/vgaswitcheroo/switch (code=exited, status=2)
 Main PID: 996 (code=exited, status=2)

Jul 10 23:42:28 kharismaPC sh[996]: /bin/sh: 1: cannot create /sys/kernel/debug/vgaswitcheroo/switch: Directory nonexistent
Jul 10 23:42:25 kharismaPC systemd[1]: Starting dGPU off during boot...
Jul 10 23:42:25 kharismaPC systemd[1]: nvidia-prime-boot.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 10 23:42:25 kharismaPC systemd[1]: nvidia-prime-boot.service: Failed with result 'exit-code'.
Jul 10 23:42:25 kharismaPC systemd[1]: Failed to start dGPU off during boot.

There's something wrong with vgaswitcheroo

Please tell me how to solve this problem

System info :

  • Ubuntu 18.04
  • Nvidia Proprietary driver 390

1 Answer 1


I have the same problem and I found that secure boot affect state of vgasetcheroo lock down it:

switcheroo control bug with secureboot

Although the battery consume is the same in powertop tool,try disabling secure boot maybe work for you.

  • Lol it works, secure boot is not friendly for Ubuntu Jul 15, 2018 at 1:19
  • @AnandaKharisma what did you do to get this to work?
    – DjFarout
    Jul 16, 2018 at 23:19
  • @DjFarout you have to disable the secureboot in the bios config Jul 18, 2018 at 4:46
  • yea but i'm not sure the dedicated GPU has turned off Jul 19, 2018 at 4:46
  • check with glxinfo | grep renderer what GPU is working Jul 19, 2018 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.