Hello community, here is the log from the commit of package iio-sensor-proxy for openSUSE:Factory checked in at 2016-11-23 13:37:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/iio-sensor-proxy (Old) and /work/SRC/openSUSE:Factory/.iio-sensor-proxy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "iio-sensor-proxy" Changes: -------- --- /work/SRC/openSUSE:Factory/iio-sensor-proxy/iio-sensor-proxy.changes 2016-10-23 12:51:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.iio-sensor-proxy.new/iio-sensor-proxy.changes 2016-11-23 13:37:18.000000000 +0100 @@ -1,0 +2,8 @@ +Tue Nov 22 00:22:07 UTC 2016 - badshah...@gmail.com + +- Add iio-sensor-proxy-delay-starting-daemon.patch: Add artificial + delay before starting daemon to prevent failure to work right + off a cold boot; patch taken from upstream git + (gh#hadess/iio-sensor-proxy#82). + +------------------------------------------------------------------- New: ---- iio-sensor-proxy-delay-starting-daemon.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ iio-sensor-proxy.spec ++++++ --- /var/tmp/diff_new_pack.cRfcV2/_old 2016-11-23 13:37:19.000000000 +0100 +++ /var/tmp/diff_new_pack.cRfcV2/_new 2016-11-23 13:37:19.000000000 +0100 @@ -23,6 +23,8 @@ License: GPL-3.0 Url: https://github.com/hadess/iio-sensor-proxy Source: https://github.com/hadess/iio-sensor-proxy/releases/download/%{version}/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM iio-sensor-proxy-delay-starting-daemon.patch gh#hadess/iio-sensor-proxy#82 badshah...@gmail.com -- Add artificial delay before starting daemon to prevent failure to work right off a cold boot; patch taken from upstream git +Patch0: iio-sensor-proxy-delay-starting-daemon.patch BuildRequires: gtk-doc BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) @@ -45,6 +47,7 @@ %prep %setup -q +%patch0 -p1 %build %configure --enable-gtk-doc ++++++ iio-sensor-proxy-delay-starting-daemon.patch ++++++ >From 5468452f7a72566d2e6ddc44f9396d3d088fa9fb Mon Sep 17 00:00:00 2001 From: Bastien Nocera <had...@hadess.net> Date: Tue, 22 Nov 2016 14:09:01 +0100 Subject: [PATCH] main: Add artificial delay before starting daemon The IIO core, or the HID layer for HID sensor hubs, seems not to like being poked straight after waking up, so add an artificial delay during startup. This is similar to the work-arounds doing the rounds in the iio-sensor-proxy issues that switch the service type to idle which would add a delay of up to 5 seconds by waiting for other daemons to have finished startup. This will need a real fix in the kernel at some point. --- src/iio-sensor-proxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iio-sensor-proxy.c b/src/iio-sensor-proxy.c index bb4c476..c6b6b52 100644 --- a/src/iio-sensor-proxy.c +++ b/src/iio-sensor-proxy.c @@ -768,6 +768,8 @@ int main (int argc, char **argv) /* g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); */ + g_usleep (G_USEC_PER_SEC * 3); + data = g_new0 (SensorData, 1); data->previous_orientation = ORIENTATION_UNDEFINED; data->uses_lux = TRUE;