Linux Black Screen After Waking from Sleep? Suspend Path, Wake Device Check and NVIDIA Power Management Diagnosis Guide

Summary
A Linux machine that wakes to a black screen is not one fault but three breaks: the wrong sleep path, a driver that never came back, or NVIDIA power management that never saved video memory. This guide runs three tests — a suspend-path comparison, a device check, and a power-management check — to find which layer failed before changing anything.
What "black screen after waking" actually means
Start by defining the symptom precisely, because three different symptoms are often described with the same words, and they point in different directions.
The symptom this guide covers is a persistent black screen after waking: the machine appears to wake — fans spin, lights come on, the disk may show activity — but the display stays black and never returns to the desktop, the lock screen, or a login prompt, no matter how long you wait. Moving the mouse, pressing keys, and pressing the power button briefly do not bring the picture back.
That is not the same as these three lookalikes, and they should be separated before any testing begins:
- A picture that arrives late. The display takes some seconds to come back after waking, then shows a normal desktop at the correct resolution and colours. A slow return is a timing problem, not a failure to wake.
- Flicker or garbled colours for a few seconds that settle on their own. The picture is wrong briefly after waking and then stabilises without intervention. A fault that heals itself within seconds belongs to a different layer from one that never recovers.
- A driver that has disappeared after waking. The desktop returns, but the graphics driver is no longer loaded, the resolution is wrong, or applications report that no NVIDIA driver is present. That is a driver-presence problem, and it is diagnosed differently from a machine whose screen simply never lights up.
If your symptom is one of the three lookalikes, the tests below will still give you useful information, but their conclusions will not fit neatly. If your symptom is the persistent black screen described above, work through the three tests in order. The order matters: the first test decides which road the fault follows, the second decides which layer failed, and only the third touches the mechanism that saves and restores video memory. Changing settings before the first two tests are done destroys the most valuable diagnostic evidence you have — the difference between the paths that fail and the paths that work.
Why Linux sleep is three different roads, not one state
On Linux, "sleep" is not a single state. It is three different roads, and confusing them leads directly to the wrong fix.
Suspend to RAM, often called suspend or S3, keeps the system state in memory. Most of the hardware powers down, and only enough power remains to keep the RAM alive. Waking means restoring the graphics card, the driver, and the display output one by one. If any step in that restoration fails, the screen stays black even though the machine itself has woken.
Hibernate, or S4, writes the system state to disk and then powers the machine off completely. Waking is a different process altogether: the state is read back from disk and the system is rebuilt from it. A machine can fail to wake from suspend and wake from hibernate perfectly, or the other way round, because the two roads share very little.
A full reboot keeps no state at all. Everything is initialised from scratch. If a full reboot always produces a normal picture while suspend does not, that contrast is itself a diagnostic clue: the hardware and the installed driver are capable of producing a picture, so the fault follows the sleep-and-wake road rather than the boot road.
The NVIDIA proprietary driver has one extra job during suspend and wake that does not exist on a normal boot: it must save and restore the contents of video memory. Before the card sleeps, the driver saves its video memory allocations to system memory through a temporary file path; after waking, it restores them. If that save-and-restore step never happens, there is nothing to put back on the screen, and the result is a black screen on a machine that has otherwise woken up.
Two controls govern that mechanism. The first is a kernel module parameter, NVreg_PreserveVideoMemoryAllocations=1, written as a line in a modprobe configuration file, typically /etc/modprobe.d/nvidia-power-management.conf, in the form options nvidia NVreg_PreserveVideoMemoryAllocations=1. Without this parameter, the driver does not save video memory contents. The second is a set of three systemd services — nvidia-suspend.service, nvidia-hibernate.service, and nvidia-resume.service — which are supplied with the driver installation but are not always enabled automatically. Depending on how the driver was installed, they can be disabled, or even masked. If the services are not enabled, the driver never performs the save step at suspend time, and the result is the same black screen on waking.
So "black screen after waking" is not one cause. It is the shared appearance of a break at any point along a chain: the sleep path itself, the driver and device restoration, or the power-management configuration. The three tests below separate those layers one at a time.
Two variables that must stay variables
Before testing, two things need to be kept as open variables rather than settled conclusions.
The display server is a variable, not a verdict. Wake behaviour differs between Wayland and X11, and it varies further with the compositor and the driver branch in use. Switching display servers is a legitimate thing to try as a branch of the investigation, but neither "switch to X11 and it will definitely be fixed" nor "Wayland is definitely the culprit" is a conclusion this guide can support. Treat the display server as one branch to test, not as the answer.
The distribution matters, and its paths differ. On Ubuntu, the driver is commonly installed through DKMS packages, and the service files usually arrive with the driver files. On Fedora, the power-management components may need a separate package installed first. On Arch and other distributions, the paths and package names differ again. No single distribution's file path can be written as the universal answer. Where this guide gives a path or a command, treat it as the form the step takes on a systemd-based distribution, and check your own distribution's documentation for the equivalent. The same applies to the modprobe file name: nvidia-power-management.conf is the common name, but your distribution or installation method may use a different file name, so confirm which file your system uses before editing anything.
The open-source Nouveau driver deserves one sentence and no more: it is an alternative driver with its own suspend behaviour, and switching drivers is a branch some guides mention, but this guide is about the proprietary NVIDIA driver, and Nouveau is not developed further here.
Test 1: Compare the three wake paths — suspend, hibernate, reboot
Test 1 is the gate. It is done before changing any setting, because it separates "which road" from "whether this is a wake problem at all".
On the same machine, on the same day, try each of the three roads in turn and record the result of each: whether the picture returns, how long it takes, and whether you can reach a text console with Ctrl+Alt+F2. To suspend, run systemctl suspend in a terminal, or use the suspend entry in the system menu. To hibernate, run systemctl hibernate. To reboot, perform a full reboot.
One warning belongs with the hibernate step: hibernation needs enough swap space to hold the system state. If hibernation cannot start because swap is too small, that is a different problem — a hibernation configuration problem — and it must not be recorded as a failure of this test. The hibernate result only counts if hibernation actually started and the machine actually tried to wake from it.
| Path tested | Picture returns? | What it means |
|---|---|---|
| Only suspend fails; hibernate and reboot are normal | No, after suspend only | The suspend path layer: the fault follows the S3 suspend road specifically, not wake-up in general. Go to Test 3 and look at the suspend-specific services. |
| Suspend and hibernate both fail; reboot is normal | No, after both sleep paths | The wake-restore layer: both sleep roads break, so the fault is in wake restoration itself — the driver or device is not coming back. Go to Test 2 to see whether the card is still there. |
| Reboot also fails | No, even after a full reboot | This is not a wake problem. The fault does not follow sleep at all. Stop using this guide's flow and move to the boot and driver-installation layer instead. |
| All three return normally | Yes, every time | The fault did not reproduce during testing. Note exactly what was different — a recent update, a different display, a different session — and repeat the test when it happens again rather than changing settings blindly. |
Three comparisons are enough to divide the problem into "which road" and "is this a wake problem". That division is the most valuable evidence in the whole investigation, and it costs nothing to obtain. Skipping it and going straight to changing power-management settings is the single most common way to waste an afternoon: you may fix the symptom by luck while learning nothing about which layer was broken, and the fault will return the next time a different part of the chain breaks.
Test 2: After waking to a black screen, check the device from a text console
Test 2 separates "the card is there but there is no picture" from "the card is not there". Those are two completely different repair directions, and without this test they are routinely confused.
When the machine has woken to a black screen, first press Ctrl+Alt+F2 — or F3 through F6 — to switch to a virtual terminal, a TTY. The TTY switch itself is only the way in; it is not the diagnosis. Once you are at the text console, run two commands. First, nvidia-smi. Then, lspci | grep -i nvidia.
| What you see in the TTY | What it means | Where to go next |
|---|---|---|
nvidia-smi lists the driver version, the graphics card, and running processes, and lspci lists the NVIDIA device | The driver is still loaded and the card is still present. The fault is in the display output or compositor layer — the display server has not recovered, or the output has not been re-enumerated. The repair direction is the display server and compositor, not reinstalling the driver. | Investigate the display server branch; do not reinstall the driver first. |
nvidia-smi reports an error, for example that it cannot communicate with the NVIDIA driver, or lspci does not show the NVIDIA device | The driver or device layer has not recovered. The card did not come back when the machine woke. | Go to Test 3 and examine the power-management configuration. |
| You cannot reach a TTY at all, and the keyboard does not respond | The system itself has not recovered. This is not purely a display problem, and it must be recorded as its own result — it cannot be lumped together with "black screen" as if it were the same thing. | Treat this as a system-resume failure, not a display failure, and investigate the resume path rather than the display output. |
The device check in this test has the same shape as the device checks used when diagnosing a driver that was never installed properly, and that overlap should be stated plainly. The variable is different: those checks ask "is the driver installed", while this one asks "did the driver come back after waking". The commands are the same; the question, and the moment at which it is asked, are what make this test decisive. Do not import installation-layer tests such as kernel boot parameters or Secure Boot signing checks into this test — those belong to the boot and installation layer, and they answer a different question.
A practical note: if the TTY works but the graphical session does not return when you switch back with Ctrl+Alt+F1 or F7 (whichever your distribution uses for the graphical session), that is further evidence that the fault sits in the display output layer rather than in the driver. Record it alongside the nvidia-smi and lspci results.
Test 3: Check the NVIDIA power-management parameter and the three services
Test 3 is the only test that touches the video-memory save mechanism, which is why it comes last: Test 1 divided the roads, Test 2 divided the layers, and Test 3 finally answers "why is there no picture after waking".
Check the current state first. Do not change anything before looking. Run systemctl list-unit-files | grep nvidia to see whether the three services — nvidia-suspend.service, nvidia-hibernate.service, and nvidia-resume.service — are enabled, disabled, or masked. Then check whether the modprobe configuration contains the line options nvidia NVreg_PreserveVideoMemoryAllocations=1, for example by reading /etc/modprobe.d/nvidia-power-management.conf. Remember that the file name may differ on your distribution, so confirm which file your system uses.
There are four possible outcomes, and each one must be written out separately. Test 3 is not a single action called "turn the services on". It is a comparison, and the comparison has two directions.
Outcome 1: The services are all enabled and the parameter is already set, but the black screen persists. The power-management layer is already complete, so the fault is not in this layer. Do not keep circling here. Go back to Test 1 and Test 2 and re-check the comparison — the answer is in one of those layers, not this one.
Outcome 2: The services are disabled or masked, or the parameter is not set. The power-management layer is the fault. Unmask each service that is masked — sudo systemctl unmask nvidia-suspend.service, sudo systemctl unmask nvidia-hibernate.service, and sudo systemctl unmask nvidia-resume.service — then enable each one with sudo systemctl enable, add the parameter line to the modprobe configuration, and then reboot. After rebooting, repeat the Test 1 suspend comparison. If the black screen is gone, this layer was the fault, and the test has proved it.
Outcome 3: The reverse branch — the services themselves are the cause. On some older driver branches, this same set of services is the thing that causes the black screen: with the services enabled the machine wakes black, and with them disabled it wakes normally. Community reports describe exactly this reversal. Test 3 is therefore not "turning the services on is always right". The service state is a variable, and both directions must be tried: whichever direction makes the black screen disappear is the answer for that machine and that driver branch. If enabling the services made things worse, disable them again, repeat the Test 1 comparison, and record the result. A test that only ever moves in one direction is not a test.
Outcome 4: The service files do not exist at all. The driver installation never installed the power-management components — for example, on Fedora, where a separate power-management package may be needed. This cannot be solved by the three tests alone: the missing components must first be installed following your distribution's documentation, and only then does Test 3 become meaningful.
One further condition applies after editing the modprobe configuration: whether the initramfs needs to be rebuilt depends on the distribution. On Ubuntu, the customary step is update-initramfs -u; on other distributions the step differs or may not be needed. Treat this as a conditional step — follow your distribution's documentation — not as a universal instruction. Similarly, two further parameters that appear in some guides — one that disables the GPU System Processor firmware, and one that enables framebuffer support in the display driver — rest on a single source each. They may be mentioned only as "a guide suggests trying this", never as established conclusions or as the main fix.
Do not make reinstalling the driver the first step. Reinstalling after Tests 1 to 3 is a reasonable later step; reinstalling before them destroys the evidence, and on its own it will not restore services that were never enabled in the first place.
How the layers fit together
| Layer | Test that proves it | Typical evidence |
|---|---|---|
| Sleep path (suspend vs hibernate vs reboot) | Test 1 | Only suspend fails, while hibernate and reboot work |
| Device and driver restoration | Test 2 | nvidia-smi fails or lspci shows no NVIDIA device after waking |
| Display output and compositor | Test 2 | nvidia-smi and lspci are normal, but there is still no picture |
| Power management (parameter and services) | Test 3 | Services disabled or masked, or the parameter missing; enabling them (or, on the reverse branch, disabling them) clears the fault |
| System resume itself | Test 2 (no TTY) | No TTY, no keyboard response after waking |
Reading the table from top to bottom is the whole method: divide by road, divide by layer, then touch the mechanism. A fault that survives all three tests with every layer apparently correct has not been proved unfixable — it has been proved to need a different investigation, starting with what changed most recently: a driver update, a kernel update, a new display, or a change of session type.
Prevention and ongoing care
A machine that wakes reliably today can stop waking reliably after an update, because the suspend path depends on the driver branch, the kernel, and the display server all agreeing with each other. A few habits keep the chain visible so that the next failure is quick to divide:
- After any driver or kernel update, run the Test 1 comparison once — suspend, wake, and check — before assuming everything still works. A failure caught the same day is far easier to attribute than one noticed a week later.
- Keep a short note of what the working configuration was: whether the three services were enabled, whether the parameter was set, and which display server session was in use. When something changes, the note tells you what changed.
- Do not stack changes. If you change the display server, the driver branch, and the power-management settings in the same session, no later test can tell you which change mattered. Change one thing, repeat Test 1, and record the result.
- Treat version numbers as snapshots, not permanent answers. Driver branches and kernel versions move, and a version that behaved one way at the time of writing may behave differently later. When a guide names a version, treat it as the version current when that guide was written, and check the official NVIDIA documentation current at the time of reading before treating any version as the answer.
When to seek professional help
If Tests 1 to 3 have been run in order and the results point to a layer you cannot change safely — for example, the machine never reaches a TTY at all, or the service files are missing and the distribution's documentation does not resolve it — that is the point to bring the machine in rather than keep changing settings. The same applies if the fault appears alongside other symptoms, such as the machine failing to boot at all, overheating, or shutting down unexpectedly, which suggest a problem beyond the suspend path.
Diagnosis and repair are charged under the site's public three-tier pricing, from HK$400 to HK$2,800 depending on the work involved. The shop is at Room 1209, Dali Plaza, Shek Mun (石門達利廣場1209室). The phone number is 2186 8010 and WhatsApp is 6558 6806. There is no Mong Kok shop and no on-site service, so please bring the machine to the Shek Mun shop, and bring the notes from your three tests — which paths failed, what nvidia-smi and lspci showed, and the state of the three services — because those notes are the fastest route to the right repair.
Frequently asked questions
Why does my Linux machine wake to a black screen only sometimes?
Intermittent waking usually means the fault sits at the boundary between layers — for example, a service that is enabled but occasionally fails to run, or a display server that usually recovers and sometimes does not. Run Test 1 on a day when it fails and again on a day when it works, and compare the two sets of results. A test result recorded only when the fault happens is worth far more than a guess about what is different.
Is switching from Wayland to X11 the fix?
It is a branch to try, not a guaranteed fix. Wake behaviour differs between Wayland and X11 and varies with the compositor and driver branch, so switching sessions and repeating Test 1 is a legitimate experiment. But it should be recorded as one variable changed and tested, not adopted as a conclusion about which display server is at fault.
My machine wakes fine from hibernate but not from suspend. What does that mean?
That is the Test 1 result that points to the suspend path layer. Hibernate and suspend use different roads, so a fault that follows only the suspend road is most likely in the suspend-specific part of the chain — the services and the video-memory save step that suspend depends on. Go to Test 3 and check the services and the parameter.
nvidia-smi works fine after waking, but the screen is still black. Is the driver broken?
No — that result points away from the driver. If nvidia-smi lists the card and lspci shows the device, the driver is loaded and the card is present, so the fault is in the display output or compositor layer. Reinstalling the driver would not address that layer, and it would destroy the evidence that Test 2 just produced.
I enabled the three NVIDIA services and the black screen got worse. What happened?
You may have met the reverse branch of Test 3. On some older driver branches, the services themselves cause the black screen, and disabling them restores normal waking. Disable the services again, repeat the Test 1 suspend comparison, and record the result. Whichever direction clears the fault is the answer for your machine and driver branch.
Do I need to reinstall the driver to fix a wake black screen?
Not as a first step. Reinstalling the driver does not enable services that were never enabled, and it does not add a parameter line that was never written. Run Tests 1 to 3 first. Only if those tests point to the driver installation itself — for example, the service files are missing entirely — does reinstalling or repairing the installation become the right next move.
Does this guide apply to the open-source Nouveau driver?
Only in outline. This guide is about the proprietary NVIDIA driver and its video-memory save mechanism. Nouveau has its own suspend behaviour and its own configuration, so its wake failures need a different investigation. The Test 1 path comparison is still useful for dividing the problem, but Tests 2 and 3 as written here are specific to the proprietary driver.
My screen comes back when I move the mouse, or after a few seconds. Is that the problem this guide covers?
No. A picture that returns when you move the mouse, or after waiting a few seconds, is a late picture, not a persistent black screen. This guide only covers a persistent black screen — a picture that never returns after waiting a reasonable time. A late picture has different causes and different tests, so do not use this guide's flow for it.
Why does a reboot work fine, but suspend gives me a black screen?
Because a reboot and a suspend take different roads. A reboot initialises everything from scratch and never needs to save and restore video memory contents. Suspend must save the video memory contents to system memory and restore them on waking; if that save-or-restore step breaks, suspend goes black while a reboot is completely unaffected. That difference is itself the Test 1 diagnostic clue.
All three services are enabled and the parameter is set, but the screen is still black. What now?
That result is itself useful: it means the power-management layer is already complete, so the fault is not in this layer. Go back to Test 1 and Test 2 and re-check the comparison — the answer is in one of those layers, or in the display output layer. Do not keep circling in the power-management layer; switching the same services on and off again will not change the result.
Do I need to reboot after changing the settings?
Yes. After changing the module parameter and the service states, reboot so the settings take effect, and then repeat the Test 1 suspend comparison. Testing suspend without rebooting gives an unreliable result, because the new settings have not taken effect yet.
Hibernate will not start. Does that mean suspend is broken?
No. Hibernate often fails to start because the swap space is too small, which is a different problem and must not be recorded as a failure of this test. If the hibernate comparison cannot be run, note the reason it could not be run instead of recording it as "hibernate also goes black".