Good suggestions, thanks. So I've tested and the following are good: cam position sensor, throttle position sensor, idle air control valve, mass airflow sensor and manifold absolute pressure sensor.
A friend (who builds his own engines and burns his own chips) thinks it might be a failing...