From ee59cec58546ba96607104fbd875316cf2b1cb09 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 7 Feb 2020 10:48:54 +0000 Subject: [PATCH] ddc - add small delay after modprobe to allow module to init in bg... --- src/bin/system/e_system_ddc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/system/e_system_ddc.c b/src/bin/system/e_system_ddc.c index 8087019c4..842f9eac0 100644 --- a/src/bin/system/e_system_ddc.c +++ b/src/bin/system/e_system_ddc.c @@ -299,6 +299,8 @@ _ddc_init(void) // brute force modprobe this as it likely is needed - probe will fail // if this doesn't work or find devices anyway system("modprobe i2c-dev"); + usleep(200 * 1000); // and wait for the module to come up... 200ms + if (!_ddc_probe()) return EINA_FALSE; return EINA_TRUE;