[neon/backports-focal/iio-sensor-proxy/Neon/unstable] debian/patches: Cherry pick patch from upstream. Known to fix data read issues on some devices
Ritesh Raj Sarraf
null at kde.org
Fri Oct 9 07:46:07 BST 2020
Git commit 1e47de03f3168e655cb0e75b5b010a3c3a9fdf56 by Ritesh Raj Sarraf.
Committed on 28/12/2016 at 17:11.
Pushed by bshah into tag 'Neon/unstable'.
Cherry pick patch from upstream. Known to fix data read issues on some devices
A +33 -0 debian/patches/data-Fix-compass-property-name.patch
M +1 -0 debian/patches/series
https://invent.kde.org/neon/backports-focal/iio-sensor-proxy/commit/1e47de03f3168e655cb0e75b5b010a3c3a9fdf56
diff --git a/debian/patches/data-Fix-compass-property-name.patch b/debian/patches/data-Fix-compass-property-name.patch
new file mode 100644
index 0000000..da2c8e6
--- /dev/null
+++ b/debian/patches/data-Fix-compass-property-name.patch
@@ -0,0 +1,33 @@
+From 19ec07affa69ee22c33ca969680d72253a634cb6 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Wed, 28 Dec 2016 11:23:10 +0100
+Subject: [PATCH] data: Fix compass property name
+
+In commit 924dd58, we changed from matching the device names to a more
+generic property match. But we matched on the "iio-buffer-compass"
+property instead of the one actually set in the udev rules
+("iio-compass").
+
+Change the udev rules property name to "iio-buffer-compass" so that
+rules and code match.
+
+This fixes iio-sensor-proxy startup on HP Pavilion x360.
+
+Spotted by Ted Ying <yingted at gmail.com>
+
+Closes: #128
+---
+ data/80-iio-sensor-proxy.rules | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/data/80-iio-sensor-proxy.rules
++++ b/data/80-iio-sensor-proxy.rules
+@@ -7,7 +7,7 @@
+ SUBSYSTEM=="hwmon", TEST=="light", ENV{IIO_SENSOR_PROXY_TYPE}="hwmon-als"
+ SUBSYSTEM=="iio", TEST=="in_accel_x_raw", TEST=="in_accel_y_raw", TEST=="in_accel_z_raw", ENV{IIO_SENSOR_PROXY_TYPE}="iio-poll-accel"
+ SUBSYSTEM=="iio", TEST=="scan_elements/in_accel_x_en", TEST=="scan_elements/in_accel_y_en", TEST=="scan_elements/in_accel_z_en", ENV{IIO_SENSOR_PROXY_TYPE}="iio-buffer-accel"
+-SUBSYSTEM=="iio", TEST=="scan_elements/in_rot_from_north_magnetic_tilt_comp_en", ENV{IIO_SENSOR_PROXY_TYPE}="iio-compass"
++SUBSYSTEM=="iio", TEST=="scan_elements/in_rot_from_north_magnetic_tilt_comp_en", ENV{IIO_SENSOR_PROXY_TYPE}="iio-buffer-compass"
+ SUBSYSTEM=="iio", TEST=="in_illuminance_input", ENV{IIO_SENSOR_PROXY_TYPE}="iio-poll-als"
+ SUBSYSTEM=="iio", TEST=="scan_elements/in_intensity_both_en", ENV{IIO_SENSOR_PROXY_TYPE}="iio-buffer-als"
+ SUBSYSTEM=="input", ENV{ID_INPUT_ACCELEROMETER}=="1", ENV{IIO_SENSOR_PROXY_TYPE}="input-accel"
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..07b1774 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+data-Fix-compass-property-name.patch
More information about the Neon-commits
mailing list