# Issue with Intel RealSense Camera and Processing "Failed to Set Power State"

**URL:** https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663
**Category:** Libraries
**Created:** [November 10, 2022, 9:58pm UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663 "2022-11-10T21:58:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![CaseyJ](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/caseyj/32/15118_2.png) [@CaseyJ](https://discourse.processing.org/u/CaseyJ)
#### Post date: [November 10, 2022, 9:58pm UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663/1 "2022-11-10T21:58:39Z")

</div>

IMHO the Intel RealSense D400 series cameras are the new Kinect.

However, today, after unboxing the camera from last year, it no longer works… See screenshot.

I see an error message after trying out the examples sketches for the Intel RealSense Processing library and I get the following error:

“Failed to set power state”

I have never seen this error before and although there are some searches online for it I am drawing a blank as to how to fix it.

My hunch is that it’s something simple. I recall a bunch of Processing Textbook examples no longer worked until I added frameRate(30) in setup so maybe it’s something like that? (I already tried that of course and no change).

Of course I also restarted the computer, tried different cables, USB ports, and all that with no success. In fact I am using the same computer, version of Processing, and library version so I am honestly not sure what would have changed?

Thanks for any tips and help!

 ![Screen Shot 2022-11-10 at 2.51.23 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/e/7/e7d1b23e0db8737928fa9d33e27d4ff2dea74ce4.jpeg)

---

<div class="post-metadata">

### Author: ![CaseyJ](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/caseyj/32/15118_2.png) [@CaseyJ](https://discourse.processing.org/u/CaseyJ)
#### Post date: [November 10, 2022, 10:02pm UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663/2 "2022-11-10T22:02:17Z")

</div>

Just found this issue on the GitHub. Looks like it’s a possible issue from upgrading to OS 12.6 Monterey. Nice…

> <https://github.com/cansik/realsense-processing/issues/37>
>
> Hello,
> Since updating my Mac to OSX Monterey I can no longer get the RealSense …camera to connect.
> Running my own scrips or the example I get the same error message:  
> \`RealSenseException: failed to set power state\`
> 
> I have the D415 camera. It can be found as a USB device in system info:
> \<img width="459" alt="Screenshot 2022-02-04 at 12 23 06" src="https://user-images.githubusercontent.com/1763300/152520966-ebac24e5-02d5-4ab6-857b-eb703f12d5b4.png"\>
> 
> Any ideas or tips on what I should try to get it working?
> Thanks

---

<div class="post-metadata">

### Author: ![garrettlynch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/garrettlynch/32/19853_2.png) [@garrettlynch](https://discourse.processing.org/u/garrettlynch)
#### Post date: [December 23, 2023, 10:27am UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663/3 "2023-12-23T10:27:56Z")

</div>

Hi

Did you find a solution? I’m o OSX 13.0 and getting the same issue with the Realsense D457.

---

<div class="post-metadata">

### Author: ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)
#### Post date: [January 4, 2024, 5:37pm UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663/4 "2024-01-04T17:37:13Z")

</div>

Intel stopped supporting MacOS from HighSierra on. It‘s because they would need to write a new kind of driver for the newer MacOS‘s and it‘s not just a trivial thing.

I would recommend [Luxonis cameras](https://shop.luxonis.com/) today. There is also a [Java wrapper](https://github.com/bytedeco/javacpp-presets/tree/master/depthai) for the C++ library. Someone would need to port it to Processing 🙂

---

<div class="post-metadata">

### Author: ![Hyperion65](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hyperion65/32/10569_2.png) [@Hyperion65](https://discourse.processing.org/u/Hyperion65)
#### Post date: [March 20, 2024, 12:18pm UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663/5 "2024-03-20T12:18:52Z")

</div>

Hello.  
I just got the RealSense Sensor and stumbled over that error. Is there really now way to mend this issue ?  
The only example working is the ‘camera available’ patch.  
It would be really great if this issue was mentioned at the top of the RealSense Library Post… I didn’t know to read all posts over several years to find this issue ☹
