Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IMU Start-up delay on Linux #2997

Merged
merged 7 commits into from
Jan 14, 2019
Merged

Conversation

ev-mp
Copy link
Collaborator

@ev-mp ev-mp commented Jan 3, 2019

-Handle the HID driver power asynchronously to allow the IMU data be received and processed before driver acknowledge. This stage allows to mitigate the initial 3-4 seconds delay to <300msec.
The HID power management requests will be handled by FIFO queue to ensure power state state machine.
The drawback is that power change requests will be queued for execution, and in case of the very first power off request is received immediately after power on (e.g on/off stress test), it will be postponed by the same 3-4 seconds.

-Revert and remove PREVENT_HID_SUSPEND CMake option introduced in v2.17.1

Tracked on: DSO-11674

@ev-mp ev-mp requested a review from icarpis January 3, 2019 09:48
static bool sort_hids(hid_input* first, hid_input* second);
// configure hid device via fd
void write_param(const std::string& param,int value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using this method somewhere?

Change-Id: I7df2de2c69f40ebbe76cbef4101b6a5c4b62b47e
Change-Id: Iabd05a6dc4fda66ec072e6c116e630f73c4f7069
Change-Id: I6b99fc38a8b97134a0bab1e7c3f4e41681bc75a9
Original commit : e2bb3af

Change-Id: Ia4c099fe2f0791ecacb354801f213e71d653c382
Signed-off-by: Evgeni Raikhel <evgeni.raikhel@intel.com>
Log messages fixes

Change-Id: I217907f908787a51c644d8cdc119db2234453960
@ev-mp ev-mp force-pushed the hid_async branch 3 times, most recently from c7901f3 to e4aadc2 Compare January 7, 2019 15:54
Adjust profyling messages to RsView format

Change-Id: I0940f97fe7363dcb5beae52b34b8f6aaedaca899
@ev-mp ev-mp merged commit 5b3dd73 into IntelRealSense:development Jan 14, 2019
@ev-mp ev-mp deleted the hid_async branch October 9, 2020 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants