Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Spotlight Not Working After Sleep? Fix It

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If Spotlight stops responding or returns no results after your Mac wakes from sleep, the usual cause is a stalled metadata index or a stuck Spotlight process. The quickest fix is to restart Spotlight's indexing, which usually takes a few minutes. Below are the exact steps to get it working again, plus what to do if the problem persists.

What You'll Need

  • Your Mac (any model running macOS Catalina or later)
  • Administrator access (you'll need to enter your password for some steps)
  • About 10–15 minutes of patience while Spotlight re-indexes

Step-by-Step

Step 1: Force Quit Spotlight (if it's frozen)

  1. Press Command + Option + Esc to open the Force Quit window.
  2. Look for Spotlight in the list. If it appears, select it and click Force Quit.
  3. If Spotlight isn't in the list, skip to Step 2.

Step 2: Restart the Spotlight Process

  1. Open Terminal (found in Applications > Utilities).
  2. Type the following command and press Enter:
    sudo killall Spotlight
  3. Enter your administrator password when prompted. This stops the Spotlight background process.
  4. Wait a few seconds, then type sudo mdutil -E / and press Enter. This erases the index for your startup drive.
  5. Type sudo mdutil -i on / and press Enter to re-enable indexing.

Step 3: Rebuild the Index (if Step 2 didn't help)

  1. Open System Settings (or System Preferences on older macOS).
  2. Click Spotlight (in System Settings) or Spotlight in System Preferences.
  3. Click the Privacy tab.
  4. Drag your startup drive (usually named "Macintosh HD") into the list of excluded locations. If you can't drag, click the + button, select your drive, and click Choose.
  5. Wait a minute, then remove the drive from the list (select it and click the – button). This forces macOS to re-index the entire drive.
  6. Spotlight will start re-indexing. You can check progress by typing something in Spotlight – results will slowly appear as indexing completes.

Step 4: Check Sleep/Wake Settings

  1. Go to System Settings > Battery (or Energy Saver on older macOS).
  2. Make sure Prevent automatic sleeping on power adapter when the display is off is unchecked (if you want normal sleep).
  3. If you use a third-party sleep app or utility, temporarily disable it to see if it's interfering.

Step 5: Restart Your Mac

  1. After the re-indexing starts, restart your Mac (Apple menu > Restart).
  2. Once it boots up, wait a few minutes before using Spotlight. It may still be indexing in the background.

Common Mistakes

  • Not waiting long enough: Re-indexing can take 15–30 minutes on large drives. Don't expect instant results.
  • Using the wrong drive: If your Mac has multiple drives, you need to re-index each one separately. Repeat Step 2 with the correct volume name (e.g., sudo mdutil -E /Volumes/OtherDrive).
  • Skipping the killall step: If the Spotlight process is stuck, just erasing the index won't help. The killall command is essential.
  • Dragging the wrong item to Privacy: Make sure you drag the entire drive, not just a folder. Otherwise, only that folder will be re-indexed.

Tips

  • After re-indexing, you can speed up future searches by excluding folders you rarely use (like old backups) in Spotlight's Privacy tab.
  • If the problem happens frequently, check if a third-party utility (like a file sync app) is causing conflicts. Temporarily uninstall them to test.
  • Keep your Mac updated – Apple often fixes Spotlight bugs in macOS updates.
  • Use mdutil -s / in Terminal to check the indexing status. It will show whether indexing is enabled and if it's currently indexing.

Troubleshooting

If Spotlight still doesn't work after the steps above:

  1. Check the indexing status: Run mdutil -s / in Terminal. If it says "Indexing disabled," run sudo mdutil -i on / and then sudo mdutil -E / again.
  2. Reset the System Management Controller (SMC): On Intel Macs, shut down, then press and hold Shift + Control + Option on the left side and the power button for 10 seconds, then release all and turn on. On Apple Silicon Macs, SMC reset is not needed; just restart.
  3. Check for disk errors: Open Disk Utility (Applications > Utilities), select your startup drive, and click First Aid > Run. This can fix underlying issues that affect Spotlight.
  4. Create a new user account: If Spotlight works in a new admin user, your user account's preferences are corrupted. You can migrate your data to the new account.
  5. Reinstall macOS: As a last resort, reinstall macOS (it preserves your files). This will reset the system's metadata store. Back up your data first.

Frequently Asked Questions

Why does Spotlight stop working after sleep?

It's usually because the Spotlight index becomes corrupted or the background process crashes during wake. This can happen due to sudden power loss, incomplete writes, or third-party software interfering.

Will re-indexing delete my files?

No. Re-indexing only rebuilds the search database. Your files and folders remain untouched.

How long does re-indexing take?

It depends on the size of your drive. A typical 256GB SSD takes 10–20 minutes. A 1TB drive with many files can take an hour.

Can I use Spotlight while it's indexing?

Yes, but results will be incomplete until indexing finishes. You can check the progress by typing a common word – results will appear gradually.

Does this happen on Apple Silicon Macs too?

Yes, it can happen on any Mac. The steps are the same, but you don't need to reset the SMC on Apple Silicon.

What if Spotlight works but shows no results for certain files?

Check the Privacy tab in Spotlight settings – if those files' folders are in the excluded list, they won't be indexed. Remove them from the list.