# Keep p5.serial port open while mac screen is closed

**URL:** <https://discourse.processing.org/t/keep-p5-serial-port-open-while-mac-screen-is-closed/37892>\
**Category:** Libraries\
**Created:** [July 9, 2022, 3:59pm UTC](https://discourse.processing.org/t/keep-p5-serial-port-open-while-mac-screen-is-closed/37892 "2022-07-09T15:59:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe\_processing](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@joe\_processing](https://discourse.processing.org/u/joe_processing)\
**Post date:** [July 9, 2022, 3:59pm UTC](https://discourse.processing.org/t/keep-p5-serial-port-open-while-mac-screen-is-closed/37892/1 "2022-07-09T15:59:08Z")

</div>

Hi guys,

I attached an Arduino to P5 SERIAL CONTROL.

I want to keep the port open while my mac is closed (For an exhibition I’m having).

I tried to change the preferences of the Mac battery so it will continue to work while it closed but in the second I close the mac the port is also closed.

Do you have any suggestions on what I can do?

thanks.

J.
