Error code 22 (Code 22) in Device Manager means Windows has disabled the graphics device, usually because of a driver conflict, a failed update, or a power management setting. The quickest fix is to re-enable the device in Device Manager, and if that doesn’t hold, reinstall or roll back the driver. Below are the exact steps, the underlying causes, and what to do when the basic fix fails.
What Error Code 22 Means
Code 22 appears in the Device Manager properties window for a hardware component, with the message: “This device is disabled. (Code 22)” It is not a driver corruption error like Code 43 or a resource conflict like Code 12. Instead, Windows has simply turned the device off at the software level. This can happen automatically after a driver installation fails, when a power management feature disables the GPU to save energy, or when a user (or a utility) manually disables it. The device is still physically present and functional, but the operating system will not load its driver until you re-enable it.
How to Re-enable the Graphics Device
The most direct fix is to turn the device back on. This works in the majority of cases where the error appeared after a reboot or a Windows update.
- Press Win + X and select Device Manager.
- Expand the Display adapters section.
- Right-click your graphics card (e.g., NVIDIA GeForce, AMD Radeon, or Intel UHD Graphics) and select Enable device.
- If the option says Disable device instead, the card is already enabled, so move to the next section.
- Restart your computer and check if the error is gone.
If the device re-enables but the error returns after a reboot, the problem is likely a driver conflict or a power management setting that is turning the GPU off again.
Why the Error Keeps Coming Back
When Code 22 reappears after you re-enable the device, one of three things is usually happening:
- Driver conflict: Two drivers are fighting for the same hardware, often after a Windows feature update or an incomplete driver uninstall.
- Power management: The PCI Express power management or the graphics card’s own power-saving feature is disabling the device at boot.
- BIOS/UEFI setting: The motherboard may have the integrated GPU disabled while the discrete GPU is also disabled, or vice versa.
In most cases, a clean driver reinstall resolves the conflict. Windows sometimes leaves behind old driver files that interfere with the new one, and a standard uninstall does not remove them.
How to Reinstall the Graphics Driver
A clean reinstall removes the disabled state and replaces the driver with a fresh copy. This is the most reliable fix for persistent Code 22.
- Open Device Manager, right-click the graphics card, and select Uninstall device.
- In the confirmation dialog, check the box Delete the driver software for this device if you see it (this removes the cached driver files).
- Click Uninstall and then restart your computer. Windows will install a basic display adapter automatically.
- Download the latest driver from the manufacturer’s website (NVIDIA, AMD, or Intel) and install it. Do not rely on Windows Update for the driver; use the vendor’s installer.
- Restart again and check Device Manager.
If you do not have internet access after uninstalling, use another computer to download the driver to a USB drive. Alternatively, you can use the manufacturer’s driver cleanup tool (e.g., Display Driver Uninstaller) in Safe Mode to remove all remnants, but the built-in uninstall is usually sufficient.
Roll Back the Driver if the Error Started After an Update
If Code 22 appeared right after you updated the graphics driver, the new version may be incompatible with your GPU or Windows build. Rolling back to the previous driver often fixes it.
- In Device Manager, right-click the graphics card and select Properties.
- Go to the Driver tab.
- Click Roll Back Driver. If the button is grayed out, there is no previous driver to roll back to.
- Follow the prompts and restart.
If Roll Back is unavailable, you can manually install an older driver from the manufacturer’s website. Download the previous version, uninstall the current one as described above, and install the older package.
Check Power Management and BIOS Settings
If the error persists after a clean driver install, the cause may be power management or firmware settings.
- PCI Express power management: In Windows, go to Control Panel > Power Options > Change plan settings > Change advanced power settings. Expand PCI Express > Link State Power Management and set it to Off. This prevents the system from cutting power to the GPU slot.
- BIOS/UEFI: Restart your PC and enter the BIOS (usually by pressing Del or F2 during boot). Look for a setting like Primary Graphics Adapter or Init Display First. If you have both integrated and discrete GPUs, make sure the correct one is set as primary. Also disable any setting that says Disabled for the GPU slot you are using.
- Fast Startup: Windows Fast Startup can sometimes leave devices in a disabled state. Disable it by going to Control Panel > Power Options > Choose what the power buttons do, then uncheck Turn on fast startup.
After changing any of these, restart and check Device Manager.
When to Try a System Restore or Reset
If no driver or power setting fixes the error, the problem may be a system file corruption or a recent change that cannot be undone manually. A System Restore can roll back Windows to a point before the error appeared, without affecting your personal files.
- Type System Restore in the Start menu and open Create a restore point.
- Click System Restore and choose a restore point dated before the error first appeared.
- Follow the prompts and restart.
If System Restore is not available or does not help, you can use Startup Repair (from the Advanced Startup options) or perform a Windows reset that keeps your files. A full reset is a last resort, but it will clear any corrupted driver or system state causing Code 22.
Frequently Asked Questions
Why does my graphics card show Code 22 after a Windows update?
Windows Update sometimes installs a generic or incompatible driver over your manufacturer’s driver. The system may disable the device to prevent a conflict. Uninstall the device and install the correct driver from the manufacturer’s website, as described above.
Can Code 22 be caused by a faulty GPU?
Rarely. Code 22 is a software-disabled state, not a hardware failure. If the device re-enables but still does not work, or if you also see Code 43, then the GPU may be failing. But Code 22 alone is almost always fixable in software.
Is it safe to enable the device again without reinstalling the driver?
Yes, it is safe. Enabling the device simply tells Windows to load the existing driver. If the driver is corrupted, the error may return, but you will not damage the hardware by trying.
What if I have both an integrated and a discrete GPU?
Code 22 on one of them usually means the other is active. In Device Manager, enable the one you want to use. In the BIOS, set the primary adapter to the correct GPU. Some laptops switch GPUs dynamically, and disabling one in Device Manager can cause the other to show Code 22.
Does Code 22 affect performance if the device is disabled?
Yes. If the graphics device is disabled, Windows uses the basic Microsoft Display Adapter, which has no 3D acceleration. Games and video playback will be very slow or fail. Fixing the error restores full GPU performance.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- MacBook Charger Not Working? Fix It Now
- Fix Windows Cannot Be Installed to This Disk
- Zoom on iPhone & iPad: Host or Join a Meeting
- Fix iPhone SE 4 Unable to Activate: Step-by-Step
- Keep Important Emails From Getting Buried in iPhone Mail Categories
- How to Clear RAM on iPhone: Speed It Up