Systems and methods are described, including one example method of
controlling an engine having a cylinder with at least one valve operated
by a variable valve mechanism (VVM) having a sensor coupled to the valve,
the method comprising: adjusting at least one operating parameter in
response to an indication of detonation of a combustible mixture in the
cylinder, the indication based on the sensor coupled to the valve.