From 33aecfc14fa1dda866a5a59d19767478e80bbce7 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Sat, 15 Aug 2015 11:46:26 -0400 Subject: [PATCH] etekcity: sleep after updating the profile The mouse really does not liked to be polled too much for its features, so we need to wait till it is ready again. Signed-off-by: Benjamin Tissoires --- src/etekcity.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/etekcity.c b/src/etekcity.c index 359316db..3e7ba948 100644 --- a/src/etekcity.c +++ b/src/etekcity.c @@ -140,6 +140,8 @@ etekcity_read_profile(struct ratbag_profile *profile, unsigned int index) rc = ratbag_hidraw_raw_request(ratbag, ETEKCITY_REPORT_ID_KEY_MAPPING, buf, sizeof(buf), HID_FEATURE_REPORT, HID_REQ_GET_REPORT); + msleep(100); + if (rc < 50) return;