librealsense: failed to set power state macosx ventura

Required Info
Camera Model D435i
Firmware Version 5.15.1
Operating System & Version MacOS 13.5 Apple Silicon
Platform Mac Realsense Viewer
SDK Version v2.50.0

I built the SDK for mac as instructed in the documentation, however whenever I open realsense viewer with sudo realsense-viewer, I am bombarded with errors stating UNKNOWN in rs2_get_option(options:0x6000036dc960, option:Stereo Baseline): failed to set power state except replace Stereo Baseline with many different features each time the error pops up I click “ok” and a new one shows up.

What I’ve tried

I tried building libusb separately as stated in https://lightbuzz.com/realsense-macos/ I’ve seen posts telling me to copy 99-realsense-libusb.rules, but Im not sure where to copy it for MacOS.

Additionally,

When I try to see if the camera is recognized in pyrealsense2-macosx, it states that one realsense device is connected, but it gives me an error saying no device is found when i try to use it in Python.

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 15

Most upvoted comments

Facing the same issue with macos sonora 14.1

Tried almost everything, no matter what it simply ends-up with segmentation fault or failed to set power state

The lib installed from brew (brew install librealsense) gives following logs: 15/11 15:28:52,992 INFO [0x1e6145ec0] (context.cpp:336) Found 1 RealSense devices (mask 0xff) 15/11 15:28:53,068 INFO [0x1e6145ec0] (rs.cpp:2697) Framebuffer size changed to 1209 x 781 15/11 15:28:53,068 INFO [0x1e6145ec0] (rs.cpp:2697) Scale Factor is now 1 [1] 59744 segmentation fault sudo realsense-viewer

Another approach was to build everything from source using the script here (does almost the same suggested here: https://lightbuzz.com/realsense-macos/) – https://github.com/yugasun/pyrealsense2-mac/blob/main/build.sh This solution faces the issue of failed to set power state.

If anyone have any solution to make this work on macos sonoma with apple m1-m3 processors please let me know