Detonating is pre ignition. Many things can cause this. like cheap fuel, to much timing, there are more cause but I hope you get the idea. Did all this happen before you put the K&n on your truck? I would bet that it is the cause, b/c its getting all the hot air from under your hood and feeding...