It sounds like the laptop is powering the Arduino, so use a separate supply -- batteries or wall wart.