Graphics device driver error Code 31 appears when the display adapter's required driver won't load. Reinstall it first, or roll it back if an update triggered the error. The code alone doesn't mean your graphics hardware has failed.
In this guide
1. Reinstall the display adapter that reports Code 31
Open Device Manager by right-clicking the Start button and selecting it. Expand Display adapters, right-click the adapter with the warning symbol, and choose Properties. Read Device status on the General tab.
Code 31 applies to the device entry you're viewing. If the laptop lists two graphics adapters, read both status entries. Remove only the device whose status shows the error. Write down its name for the driver download later.

Save your work, close running apps, and return to the adapter in Device Manager. Right-click it, choose Uninstall device, and confirm Uninstall. Restart the PC to let Windows attempt the driver installation again.
Leave the option to delete the driver package unchecked on this first attempt. Windows can then rebuild the device installation with less disruption. Download the correct replacement before removing the existing driver package too.
After restarting, return to Properties > General. Look for a working status with the warning symbol gone. Try changing display resolution or launching the app that first exposed the fault.
If Code 31 remains, move to the previous driver or a matching download. Repeating the same uninstall without changing the driver package gives you little extra information.
2. Roll back a driver that broke after an update
When an update immediately preceded the failure, try the earlier driver. Open the affected adapter's Properties > Driver, then select Roll Back Driver. You'll need an administrator account for this change.
Choose the reason for rolling back and confirm Yes. Restart if prompted. This restores the previous driver rather than trying another copy of the update that caused trouble.

An unavailable rollback button means Windows can't restore an earlier package through that control. It doesn't mean the new driver is healthy. Use the PC maker's support page to get a supported package instead.
After rolling back, check Device status and whether your display works properly. If both are back to normal, note the working driver version. Give support the working version if Windows offers the troublesome release again.
I'd use rollback before a cleanup utility when the timing clearly points to one update. It's a smaller change, and you can tell quickly whether the earlier package restores the adapter.
3. Get a driver for the exact PC or graphics card
With a laptop or prebuilt machine, start at its exact model's support page. Those packages can include changes for the machine's graphics switching, display connections, and power controls.
For a separately purchased desktop card, use its graphics manufacturer's official driver download. Match the GPU model and Windows version. A driver from another product family can fail even when its installer looks familiar.
Download the package before removing more drivers. That way, if the display falls back to basic graphics, you already have the installer and don't need to search through a low-resolution desktop.
Launch the manufacturer's installer. Complete its prompts, restart the computer, and reopen Device Manager. Check that Code 31 has cleared, even if the installer finished without an error.
For the automatic route, right-click the affected adapter and select Update driver > Search automatically for drivers. If Windows finds nothing suitable, use the manufacturer's download instead.
Microsoft says its driver update and reinstall steps include Browse my computer for drivers when a maker provides extracted driver files.
Select the folder containing the supplied driver files and follow Next. If the download is an executable installer, you should normally run it rather than select it as a driver folder.
4. Check each entry in a two-GPU laptop
A two-GPU laptop needs working drivers for its supported graphics setup. Don't disable the integrated adapter simply because a game uses the separate GPU. The internal screen's connection depends on the laptop's design.
Check Device status for each entry under Display adapters. If only one reports Code 31, target that adapter's supported driver. If both report errors, record both names and codes before making another change.
Use the laptop maker's instructions when it gives an installation order for the integrated and separate graphics packages. There isn't one driver order that fits every laptop, and the product support page takes priority.
Once the warning clears, test the built-in display first, then any external monitor. If Device Manager is healthy but the second screen still fails, use the separate HDMI port and cable checks.
A cable plugged into the wrong graphics output can look like a driver problem. Checking the driver status first helps you choose the right repair.
5. Give support the driver details if Code 31 stays
Open Properties > Driver and note the provider, date, and version. Add your Windows version, PC model, graphics adapter name, and whether rollback or reinstall changed the status.
Ask the GPU or computer manufacturer which driver supports that combination. Mention any recent hardware replacement or Windows upgrade. Those details help support check compatibility instead of sending you the same download again.
If another device has a different warning number, use the Device Manager error-code guide for that number. A Code 43 or missing-driver Code 28 shouldn't be treated as another spelling of Code 31.
If Code 31 stays after the correct package, ask for a driver or hardware assessment before buying a card. The error describes a driver-loading failure; it doesn't identify a failed part by itself.
The Short Version
Reinstall the display adapter that actually shows Code 31, or roll back a recent driver update. Install the exact PC or GPU maker's supported package if it stays. Check Device status after each change before moving to a hardware assessment.
Checked December 3, 2026.







