GPU has fallen off the bus (Nvidia)

I recently made a post because I couldn't get my NVIDIA GPU up and running. This is the post: link to my other post. I got my gpu working now (through NVIDIA X server settings). These are my specs:

ubuntu version: 16.04.1

GPU: NVIDIA Corporation GM108M [GeForce 840M]

But every time I suspend my laptop and reboot it I get a black screen with this error message:

[ 5107.273042] usbhid 2-3:1.0: suspend error -5  
[ 5107.644336] NVRM: Xid (PCI:0000:03:00): 79, GPU has fallen off the bus.)  
[ 5107.644336] 

The only solution there is is to completely reboot my laptop with the power button.

--- Extra information ---

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.26                 Driver Version: 375.26                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 840M        Off  | 0000:03:00.0     Off |                  N/A |
| N/A   47C    P0    N/A /  N/A |    242MiB /  2002MiB |     24%      Default |
+-------------------------------+----------------------+----------------------+
                                                                             
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1409    G   /usr/lib/xorg/Xorg                             149MiB |
|    0      2471    G   compiz                                          92MiB |
|    0      2774    G   /usr/lib/firefox/firefox                         1MiB |
+-----------------------------------------------------------------------------+

Thus, it only happens when my laptop puts itself in sleep-/suspend-mode (I deactivated that now so it doesn't go into sleep-/suspend-mode anymore). Powering up my laptop has no problems with this. Never encountered this before either. I also switched back to my Intel GPU to test if it still occurs, but it doesn't. So it has to do something with my Nvidia GPU.


Solution 1:

I had the exact same problem, I solved it by putting the graphics card into persistent mode:

$ sudo nvidia-smi -pm 1

I don't know what this really does but it seems that it's working for me.

I found the solution in the next forum: https://bbs.archlinux.org/viewtopic.php?id=145527

Solution 2:

Update: There was a related bug on the ubuntu issue tracker that has since been fixed and released. Not sure if this answer is helpful anymore. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1847937


Here is a viable solution that doesn't require you to limit your low power state usage:

The fix is to add the following arguments to the kernel boot parameters: rcutree.rcu_idle_gp_delay=1 acpi_osi=! acpi_osi='Windows 2009' You can test this fix by rebooting and pressing "e" on your primary boot entry in grub. Add the arguments to the end of the line ending with linux and press CTRL+X to boot. Try suspending and waking the system. If it works, you're golden! To make the fix permanent you need to edit your \etc\default\grub file:

  1. Open a terminal window and paste the following command: sudo xed /etc/default/grub
  2. Enter your password. Then, find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT=
  3. Add the arguments to the end of this line, inside the quotes. So it looks roughly like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rcutree.rcu_idle_gp_delay=1 acpi_osi=! acpi_osi='Windows 2009'"
  4. Run sudo update-grub

Allegedly, the successful result can be achieved by replacing Windows 2009 with Linux to clarify to BIOS what OS we are using. This did not work for me, but others commented below that it helped them. In my case, I left it as Windows 2009.

Source: https://forums.linuxmint.com/viewtopic.php?p=1728952&sid=d2f654dfa1082400eeea98c9fbf01918#p1728952

Solution 3:

Tried everything. Only one thing helped: disable the ASPM. Add this to kernel boot arguments: pcie_aspm=off

Solution 4:

Next time, try to log in via SSH to halt/reboot your computer. Other procedure would be to press magic+r to unbind keyboard from X and pressing cltr+alt+del.

I have the same problem with this version of driver. Try the ubuntu driver package!