raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ee59cec58546ba96607104fbd875316cf2b1cb09

commit ee59cec58546ba96607104fbd875316cf2b1cb09
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Feb 7 10:48:54 2020 +0000

    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;

-- 


Reply via email to