Temporarily disabling magnetometer and setting CPU frequency