If your sunroof only closes with the key fob and not the manual switch, the problem is usually in the sunroof control path, not the glass itself. A cam sensor issue is often blamed because modern cars route many comfort functions through shared electronics, but in most cases the real fault is more likely a bad sunroof switch, lost sunroof initialization, wiring fault, module problem, or pinch-protection error. This matters because a stuck-open or half-working sunroof can leave the car exposed to rain, drain the battery, and make it hard to trust what part actually needs repair.

When people search for sunroof only closes with key fob not manual switch cam sensor issue, they usually want to know one thing: can an engine sensor really stop the sunroof switch from working if the key fob still closes it? The short answer is that it is possible for system faults to overlap, but a camshaft position sensor is rarely the first part to suspect for this exact symptom.

What does it mean when the sunroof closes with the key fob but not the inside switch?

This symptom usually means the sunroof motor and at least part of the control system still work. The key fob comfort-close feature sends a different command path than the overhead manual switch. If the roof closes with the remote, the motor is probably not dead. The rails are probably not fully jammed either. That points more toward the switch circuit, sunroof module logic, body control module communication, or anti-trap calibration.

In plain terms, the car may still accept a remote close command while ignoring or blocking the manual command from the cabin. That is why this issue can feel confusing. One method works, the other does not, even though both are trying to move the same glass panel.

Can a camshaft position sensor cause this exact sunroof problem?

Usually, no. A bad camshaft position sensor mainly affects engine timing, starting, misfires, stalling, rough running, and check engine light faults. It does not directly control the sunroof switch. If someone mentions a cam sensor issue, it is often because the car has multiple electrical problems at once, or because a scan tool showed camshaft sensor codes and the timing happened to match the sunroof fault.

There are edge cases. Some vehicles have networked modules that behave oddly when voltage is unstable, when the battery is weak, or when the body control module is confused by other faults. In that kind of situation, a cam sensor code may show up at the same time as a sunroof fault without being the root cause of the sunroof problem.

If you want a closer look at that question, this page on whether a faulty camshaft position sensor can really affect sunroof closing explains where the link is weak and where module communication can muddy the diagnosis.

Why would the key fob work when the manual switch does not?

This happens for a few common reasons:

  • The overhead sunroof switch has failed or has dirty contacts.
  • The sunroof needs to be reinitialized after a battery disconnect or low-voltage event.
  • The anti-pinch or pinch-protection feature has lost its learned positions.
  • There is wiring damage between the switch and the module.
  • The body control module or sunroof control module is receiving the remote command but not the switch input.
  • Water intrusion has affected the roof console, switch panel, or module connections.

A simple example: the sunroof opens fine one day, the battery goes weak overnight, and the next morning the roof will only close by holding the lock button on the key fob. That often points to lost calibration, not a failed cam sensor.

Is this more likely a body control module problem than a cam sensor problem?

Very often, yes. The body control module manages many comfort and convenience features, including remote closing on some vehicles. If remote close works but the cabin switch does not, the BCM or sunroof module may still be able to command the motor through one input source while missing the other.

If you are trying to separate those possibilities, this article about sorting out body control module faults from camshaft sensor issues when a sunroof is stuck open is useful because it focuses on the actual control paths rather than guessing from one trouble code.

What should you check first before replacing parts?

Start with the simplest checks. Many sunroof problems get worse because parts are replaced before the basics are tested.

  1. Check battery voltage. Low voltage can cause sunroof logic problems, lost learned positions, and false module behavior.
  2. Test the manual switch carefully. Try tilt, open, close, and one-touch functions. If none respond, the switch or its power/ground path may be faulty.
  3. Look for a reset procedure. Many vehicles let you relearn the sunroof by holding the switch in the close or tilt position for several seconds.
  4. Inspect fuses. Some cars use separate fuse paths for the roof control circuit and for convenience closing.
  5. Check for water damage. The overhead console and A-pillar areas are common trouble spots.
  6. Scan all modules, not just the engine module. A cam sensor code in the engine computer does not explain the sunroof by itself. You need BCM, door module, and roof module data if available.

How do you know if the sunroof switch is bad?

A bad switch often gives a very specific pattern. The roof may respond to the key fob, but the manual switch does nothing at all. Or one direction works and the other does not. Sometimes pressing the switch feels loose, sticky, or inconsistent. In other cases, the switch looks fine but the contacts are worn inside.

If your car has a scan tool that can read live body data, you may be able to watch whether the module sees the switch press. If the data never changes when you press close, that is strong evidence of a switch or wiring fault.

Could the sunroof just need reinitialization?

Yes, and this is common after a dead battery, battery replacement, jump start, or voltage drop. The sunroof may lose its end-stop memory. When that happens, the car may block manual movement or stop auto-close early, while the key fob comfort-close still forces a full close cycle.

The relearn procedure varies by make. A common method is to turn the ignition on and hold the sunroof switch in the closed or tilt position for 10 to 30 seconds until the roof cycles or clicks into reset mode. Always use the exact procedure for your vehicle.

For model-specific troubleshooting around this same symptom, the page on why a sunroof may respond to the remote but ignore the manual switch can help you narrow it down before buying a switch or module.

What mistakes do people make with this problem?

  • Replacing the camshaft sensor first just because an engine code is present.
  • Ignoring low battery voltage or poor grounds.
  • Skipping the sunroof reset procedure.
  • Assuming the motor is bad even though the key fob can still move the roof.
  • Forcing the glass by hand and damaging the tracks or cables.
  • Scanning only the engine computer and missing body module fault codes.

The biggest mistake is treating unrelated codes as proof of cause. A check engine light and a sunroof fault can happen at the same time without sharing the same source.

When should you suspect wiring or water damage?

Suspect wiring or water issues if the problem comes and goes, happens after rain, or affects other roof console features like interior lights, microphone, map lights, or garage door buttons. Sunroof drains can clog and let water travel into connectors. Broken wires can also show up near the headliner, door jamb, or A-pillar, especially on older vehicles.

If the switch sometimes works when you press hard, wiggle the console, or drive over bumps, that points more to a connection fault than to a camshaft position sensor.

What if the sunroof stops halfway or reverses?

That usually points to pinch protection, drag in the tracks, poor alignment, or lost adaptation. Dirt and dried grease can increase resistance. The motor senses too much load and reverses the panel. In this case, remote closing may still work differently because some comfort-close modes handle anti-trap logic in another way.

Clean tracks carefully, use the correct lubricant if your manufacturer allows it, and do not pack the rails with random grease. Too much grease can attract grit and make the movement worse.

Is there a trusted reference for reset and anti-pinch behavior?

For general technical background on power windows, pinch protection, and reset behavior in modern vehicles, you can check Bosch. It is not a repair manual for every model, but it helps explain why comfort-close and anti-trap systems can behave differently from the cabin switch.

What are the best next steps if you want a real fix?

Focus on the symptom path. Since the sunroof closes with the key fob, prove why the switch path fails before replacing engine-related parts. That means checking battery condition, scanning body modules, trying the reset procedure, testing the switch, and inspecting for water or wiring damage.

  • Make sure the battery is fully charged and stable.
  • Try the exact sunroof initialization procedure for your vehicle.
  • Test every switch function, not just close.
  • Check fuses for the roof, BCM, and comfort-close system.
  • Scan BCM or roof module codes if your tool supports them.
  • Inspect the overhead console and drains for signs of moisture.
  • Do not replace a camshaft sensor unless engine symptoms or test results actually support it.

Practical checklist: If your sunroof only closes with the key fob, first charge the battery, run the sunroof relearn procedure, test the overhead switch, and scan body modules before buying any parts. If the engine also has cam sensor codes, treat that as a separate diagnosis unless you can confirm a shared voltage or module communication problem.