if you got aftermarket HU then on the back should be a wire dedicated to doing just that (most of the ones ive seen are blue, have seen a pink and an orange as well), if not you can take form cigaret lighter live, this will turn it on and off with your car, or you can have a manual switch (would you belive my m8 actually did this....)