had the exact same problem after doing valve cover gaskets. found the brown electrical connector that goes to the idle air control valve which is located on the firewall side underneath the intake manifold had a poor connection. make sure connector is all the way in.
|