Performance 3D, low power 3D, standard 2D Switching between driver modes

Recent NVidia (and ATI) drivers support three clocking modes differ by core, shader, memory and link clock rates. How does the driver know when to switch between them? Is it by load percentage? Is there any way to control this mode programmatically. I need full throttle mode for our dev app which we can drop to default behaviour on exit…