* possible odd acceleration scaling @ 2016-09-13 17:30 Ritesh Raj Sarraf 2016-09-13 17:50 ` Jonathan Cameron 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-13 17:30 UTC (permalink / raw) To: linux-iio, Srinivas Pandruvada -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Srinivas and Others, [Please CC me in replies. I'm not subscribed to the list] This email is in regard to an odd behavior, we seems to have discovered with iio-sensor-proxy version 1.2 and the iio driver in Linux, maybe particular to the following driver. rrs@learner:~$ lsusb Bus 003 Device 002: ID 8087:8000 Intel Corp. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 006: ID 048d:8350 Integrated Technology Express, Inc. Bus 001 Device 005: ID 0bda:b728 Realtek Semiconductor Corp. Bus 001 Device 004: ID 04f2:b40f Chicony Electronics Co., Ltd Bus 001 Device 003: ID 04f3:0303 Elan Microelectronics Corp. Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 2016-09-13 / 22:56:58 ♒♒♒ ☺ rrs@learner:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1- 8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto$ find iio\:device2/ -iname "*scale*" -print -exec cat '{}' \; iio:device2/in_accel_scale 0.009806 2016-09-13 / 22:37:29 ♒♒♒ ☺ Machine: Lenovo Yoga 2 13. For a background, please have a look at the github bug report. https://github.com/hadess/iio-sensor-proxy/issues/100 If you need any information, please let me know. I'm not sure what other information to provide upfront, that maybe be relevant. - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX2DemAAoJEKY6WKPy4XVpdVwP+QEgk8lQ4IyWwF65N0EwAubG Pnbf9sKcQ/uy8AALsOMFXDp0YKt3zLJPZfdMthdWPN9KjzX5GB5euspmbtF5ds81 8ws4t1JVOvDK1IEmL8SNbk7Xe62Q1tzQ5UxYbsrchNbM8MnLPXQFc5g6rHIveun+ xkS19l+pziwH5PdulrvDj5S4Db0TIM1ICqDJON74+ufaZ4APsHpLQ2EAB65AQVfJ c4DEpB8kIN1dtHwJYzt1ZowKbJiDytCnUGUkI2tRTkMkVlA6CG+w+GzRbBCJerGd 3GgXNcEB23oteM3V6Je2oLoiH5Wvp3unwBTQgsX2WRPfLb9EnUlcCQxTbb8eAmF/ 9krmKmC6y9k1aLzp+CgpbV9l97rJROpnqiGdEZyNWvBIfhzaMaz5rXY/6QFTfOh6 3LznSfGrZghwFq0vELsUx93xxR7qWBBj1Ra8XfTX0ueOQmdDbkCW0jB16TDCsgnu gOhultIlalnmCjOvz7xTnIYp2vbM6kpa85Vp0t4UTtDhDepJCBCohx0nqYWhel9I 4MCPbWPYb24X7+XEYFQsPO8W4wiEqcx8kGXv8bF94eGWHsJK47xvNdlKtDq4IL9k vxaIIUhPauvgoHW9s15+AgZ/bn46Qnma4BTSTwL3fqNuElX98uIDNxJGbor63eo5 m6/0B4X6jy2HJgUpnwCb =KDnB -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-13 17:30 possible odd acceleration scaling Ritesh Raj Sarraf @ 2016-09-13 17:50 ` Jonathan Cameron 2016-09-13 18:01 ` Jonathan Cameron 2016-09-14 11:34 ` Bastien Nocera 0 siblings, 2 replies; 19+ messages in thread From: Jonathan Cameron @ 2016-09-13 17:50 UTC (permalink / raw) To: rrs, linux-iio, Srinivas Pandruvada, Bastien Nocera On 13/09/16 18:30, Ritesh Raj Sarraf wrote: > Hello Srinivas and Others, > > [Please CC me in replies. I'm not subscribed to the list] > > This email is in regard to an odd behavior, we seems to have discovered with > iio-sensor-proxy version 1.2 and the iio driver in Linux, maybe particular to > the following driver. > > > rrs@learner:~$ lsusb > Bus 003 Device 002: ID 8087:8000 Intel Corp. > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > Bus 001 Device 006: ID 048d:8350 Integrated Technology Express, Inc. > Bus 001 Device 005: ID 0bda:b728 Realtek Semiconductor Corp. > Bus 001 Device 004: ID 04f2:b40f Chicony Electronics Co., Ltd > Bus 001 Device 003: ID 04f3:0303 Elan Microelectronics Corp. > Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader > Controller > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > 2016-09-13 / 22:56:58 ♒♒♒ ☺ > > > rrs@learner:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1- > 8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto$ find iio\:device2/ -iname > "*scale*" -print -exec cat '{}' \; > iio:device2/in_accel_scale > 0.009806 Looking at your bug report, raw readings are around magnitude 1000. 1000*0.009806 = 9.81 Given accelerations in IIO are in m/s^2 I'm slightly confused... Guessing the iio-sensor-proxy might be getting it's idea of what counts as orientation from the wrong place? I couldn't immediately see where it figures that out... Jonathan > 2016-09-13 / 22:37:29 ♒♒♒ ☺ > > > Machine: Lenovo Yoga 2 13. > > > For a background, please have a look at the github bug report. > https://github.com/hadess/iio-sensor-proxy/issues/100 > > > If you need any information, please let me know. I'm not sure what other > information to provide upfront, that maybe be relevant. > > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-13 17:50 ` Jonathan Cameron @ 2016-09-13 18:01 ` Jonathan Cameron 2016-09-13 19:06 ` Srinivas Pandruvada 2016-09-14 11:34 ` Bastien Nocera 1 sibling, 1 reply; 19+ messages in thread From: Jonathan Cameron @ 2016-09-13 18:01 UTC (permalink / raw) To: rrs, linux-iio, Srinivas Pandruvada, Bastien Nocera On 13/09/16 18:50, Jonathan Cameron wrote: > On 13/09/16 18:30, Ritesh Raj Sarraf wrote: >> Hello Srinivas and Others, >> >> [Please CC me in replies. I'm not subscribed to the list] >> >> This email is in regard to an odd behavior, we seems to have discovered with >> iio-sensor-proxy version 1.2 and the iio driver in Linux, maybe particular to >> the following driver. >> >> >> rrs@learner:~$ lsusb >> Bus 003 Device 002: ID 8087:8000 Intel Corp. >> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub >> Bus 001 Device 006: ID 048d:8350 Integrated Technology Express, Inc. >> Bus 001 Device 005: ID 0bda:b728 Realtek Semiconductor Corp. >> Bus 001 Device 004: ID 04f2:b40f Chicony Electronics Co., Ltd >> Bus 001 Device 003: ID 04f3:0303 Elan Microelectronics Corp. >> Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader >> Controller >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> 2016-09-13 / 22:56:58 ♒♒♒ ☺ >> >> >> rrs@learner:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1- >> 8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto$ find iio\:device2/ -iname >> "*scale*" -print -exec cat '{}' \; >> iio:device2/in_accel_scale >> 0.009806 > Looking at your bug report, raw readings are around magnitude 1000. > 1000*0.009806 = 9.81 > > Given accelerations in IIO are in m/s^2 I'm slightly confused... > > Guessing the iio-sensor-proxy might be getting it's idea of what counts > as orientation from the wrong place? > > I couldn't immediately see where it figures that out... Ah, found it. In orientation.c (obvious I guess) Too late in the day here for me to spot exactly why the rounding errors being introduced are resulting in this concluding that the orientation isn't changing significantly. Perhaps stick a line in the sensor proxy to spit out the computed 'rotation' value? Thanks, Jonathan > > Jonathan > >> 2016-09-13 / 22:37:29 ♒♒♒ ☺ >> >> >> Machine: Lenovo Yoga 2 13. >> >> >> For a background, please have a look at the github bug report. >> https://github.com/hadess/iio-sensor-proxy/issues/100 >> >> >> If you need any information, please let me know. I'm not sure what other >> information to provide upfront, that maybe be relevant. >> >> >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-13 18:01 ` Jonathan Cameron @ 2016-09-13 19:06 ` Srinivas Pandruvada 2016-09-14 9:05 ` Ritesh Raj Sarraf 0 siblings, 1 reply; 19+ messages in thread From: Srinivas Pandruvada @ 2016-09-13 19:06 UTC (permalink / raw) To: Jonathan Cameron, rrs, linux-iio, Bastien Nocera On Tue, 2016-09-13 at 19:01 +0100, Jonathan Cameron wrote: > On 13/09/16 18:50, Jonathan Cameron wrote: > > > > On 13/09/16 18:30, Ritesh Raj Sarraf wrote: > > > > > > Hello Srinivas and Others, > > > > > > [Please CC me in replies. I'm not subscribed to the list] > > > > > > This email is in regard to an odd behavior, we seems to have > > > discovered with > > > iio-sensor-proxy version 1.2 and the iio driver in Linux, maybe > > > particular to > > > the following driver. > > > > > > > > > rrs@learner:~$ lsusb > > > Bus 003 Device 002: ID 8087:8000 Intel Corp. > > > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > > Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > > > Bus 001 Device 006: ID 048d:8350 Integrated Technology Express, > > > Inc. > > > Bus 001 Device 005: ID 0bda:b728 Realtek Semiconductor Corp. > > > Bus 001 Device 004: ID 04f2:b40f Chicony Electronics Co., Ltd > > > Bus 001 Device 003: ID 04f3:0303 Elan Microelectronics Corp. > > > Bus 001 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. > > > RTS5129 Card Reader > > > Controller > > > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > > 2016-09-13 / 22:56:58 ♒♒♒ ☺ > > > > > > > > > rrs@learner:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1- > > > 8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto$ find > > > iio\:device2/ -iname > > > "*scale*" -print -exec cat '{}' \; > > > iio:device2/in_accel_scale > > > 0.009806 > > Looking at your bug report, raw readings are around magnitude 1000. > > 1000*0.009806 = 9.81 Which seems is correct value after scale for atleast one of the axis. I think again we have issue with the channel index. >From logs ** (process:10579): DEBUG: No new data available on 'iio:device3' ** (process:10579): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_x, channel_data_index: 0 location: 8 ** (process:10579): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:10579): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_z, channel_data_index: 2 location: 0 ** (process:10579): DEBUG: Read from IIO on 'iio:device0': -230, -968, 23 ** (process:10579): DEBUG: Accel sent by driver (quirk applied): 2, 9, 0 Again somehow we think that X is at byte index 8, Y at byte index 4, and Z at byte index 8. Looks like it got reversed. It should be 0, 4 and 8 respectively. Can you try reverting this commit in iio-sensor-proxy? If it is then this is some indexing issue we still need to address: "buffer-utils: Fix orientation axis switch using 4.8 kernel" Thanks, Srinivas > > > > Given accelerations in IIO are in m/s^2 I'm slightly confused... > > > > Guessing the iio-sensor-proxy might be getting it's idea of what > > counts > > as orientation from the wrong place? > > > > I couldn't immediately see where it figures that out... > Ah, found it. In orientation.c (obvious I guess) > > Too late in the day here for me to spot exactly why the rounding > errors being introduced are resulting in this concluding that > the orientation isn't changing significantly. > > Perhaps stick a line in the sensor proxy to spit out the > computed 'rotation' value? > > Thanks, > > Jonathan > > > > > > Jonathan > > > > > > > > 2016-09-13 / 22:37:29 ♒♒♒ ☺ > > > > > > > > > Machine: Lenovo Yoga 2 13. > > > > > > > > > For a background, please have a look at the github bug report. > > > https://github.com/hadess/iio-sensor-proxy/issues/100 > > > > > > > > > If you need any information, please let me know. I'm not sure > > > what other > > > information to provide upfront, that maybe be relevant. > > > > > > > > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux- > > iio" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-13 19:06 ` Srinivas Pandruvada @ 2016-09-14 9:05 ` Ritesh Raj Sarraf 2016-09-14 9:28 ` Ritesh Raj Sarraf 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-14 9:05 UTC (permalink / raw) To: Srinivas Pandruvada, Jonathan Cameron, linux-iio, Bastien Nocera -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Srinivas, On Tue, 2016-09-13 at 12:06 -0700, Srinivas Pandruvada wrote: > Again somehow we think that X is at byte index 8, Y at byte index 4, > and Z at byte index 8. Looks like it got reversed. > It should be 0, 4 and 8 respectively. > > Can you try reverting this commit in iio-sensor-proxy? If it is then > this is some indexing issue we still need to address: > > "buffer-utils: Fix orientation axis switch using 4.8 kernel" Not much changed even after reverting that commit. With iio-sensor-proxy, 1.2, I get: rrs@learner:/var/tmp/Debian-Build/Result$ monitor-sensor Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: right-up) === Has ambient light sensor (value: 0.000000, unit: lux) Accelerometer orientation changed: left-up Accelerometer orientation changed: right-up Accelerometer orientation changed: left-up Accelerometer orientation changed: right-up - --- iio-sensor-proxy vanished, waiting for it to appear Notice that there is no 'normal' orientation mode reported. Now reverting back to 1.1 of iio-sensor-proxy, I get: +++ iio-sensor-proxy appeared === Has accelerometer (orientation: undefined) === Has ambient light sensor (value: 0.000000, unit: lux) +++ Accelerometer appeared Accelerometer orientation changed: undefined +++ Light sensor appeared Light changed: 0.000000 (lux) Accelerometer orientation changed: right-up Accelerometer orientation changed: normal Accelerometer orientation changed: right-up This is on Linux 4.8-rc6. - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX2RLxAAoJEKY6WKPy4XVpC5QP/iovkuF7jLdJVMqheL4TRxGz N+q7Q/DqV/bHg6qb0S5rsetSeL/aT31zeWUc0eX3ftjGjIoT/0G4HE1jOsfrYLot q8q3ZGpY4HvGAkijqB7aS8M9tAnVrwpQdEVKx3SIFj5rbWvMEzXZOr6n50Nu7GZy O7ZYH2zfNOMAJMZzLZtBcI9bX9HtLbHptVVWE7oDxNFFYniLiRxw2nOBTQ0zfYo6 DeU7iIQIu4tyRe2x/EbFxXQIm21PfkMkVI4Hhb3utCOO9Z33e4HnVfllGm4Jke0J YoCk7h4uGhY6WvmzNRKxN3dxZ33M4YVZUbrKEz5ccqBOtwn8DcR+4W71hq72Bpqy PDYwUR1WxIIhKI8tg9KPUs6lHOg/KV//c2xKz6yWNLS68S+tUUp9c/EAgLoJ4kPO Oxym0D+QhA5i4H4VTKjXtqNLE5MDSy+eVTHZCqnWeZT/++D6eLWDrRDYMvKQLFiv nlwW0eL2b8mu+gDrPZE1xsC2awxrg+faY2xtxIevKCYE2U8fp3/FH2hLlET4I+6O ITieTrGD2jdkjOj8XWywBT0ZsH8+1DJC6fkqvbVmv2KA21NOnFiCK4mhEW625d3S rbKDMYzFYBSMEVNVXTVRjEwfOvI2oGaPsJVVvXKh4IQoKdN5DS2ssVxvmf4af54F DIhMxIWhwl1rQho3FB9g =yCj8 -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-14 9:05 ` Ritesh Raj Sarraf @ 2016-09-14 9:28 ` Ritesh Raj Sarraf 2016-09-14 13:50 ` Ritesh Raj Sarraf 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-14 9:28 UTC (permalink / raw) To: Srinivas Pandruvada, Jonathan Cameron, linux-iio, Bastien Nocera -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Wed, 2016-09-14 at 14:35 +0530, Ritesh Raj Sarraf wrote: > Not much changed even after reverting that commit. > > > With iio-sensor-proxy, 1.2, I get: > > rrs@learner:/var/tmp/Debian-Build/Result$ monitor-sensor > Waiting for iio-sensor-proxy to appear > +++ iio-sensor-proxy appeared > === Has accelerometer (orientation: right-up) > === Has ambient light sensor (value: 0.000000, unit: lux) > Accelerometer orientation changed: left-up > Accelerometer orientation changed: right-up > Accelerometer orientation changed: left-up > Accelerometer orientation changed: right-up > --- iio-sensor-proxy vanished, waiting for it to appear > > > Notice that there is no 'normal' orientation mode reported. > > Now reverting back to 1.1 of iio-sensor-proxy, I get: > > +++ iio-sensor-proxy appeared > === Has accelerometer (orientation: undefined) > === Has ambient light sensor (value: 0.000000, unit: lux) > +++ Accelerometer appeared > Accelerometer orientation changed: undefined > +++ Light sensor appeared > Light changed: 0.000000 (lux) > Accelerometer orientation changed: right-up > Accelerometer orientation changed: normal > Accelerometer orientation changed: right-up > > > This is on Linux 4.8-rc6. And linked are debug logs with both, 1.1 and 1.2 https://people.debian.org/~rrs/tmp/1.1.log https://people.debian.org/~rrs/tmp/1.2.log - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX2RhAAAoJEKY6WKPy4XVpFOsP+wdPPbiGzyn3FSEoT6SxK/vy c11OzvjD3M2HBUHE+hcwvfxU0m1WnjUkM0UYC8uJ+wbGL+dOKwKAsazL0l3m3/qD R/pFl8S0UXGh1VcfaQULZGYrZXsYu71UDgfIqqVoAr9UiY0UzsbK1Kx2qGwl87MD eRn68uhqN++Es/fwRTISw0Cmi//gPShpuya6r9ynsP+Iex0uXG+E+idJPEnfWJkw f+q5TJNii05wSyjt7kDsGtkFuxws5P+dk78OJ2jUVvdQ3ttMRlj1sUGgYwbp8eM5 fWNtnlhEG3RaDQOoNqetOLMbYrfyTBGTsokeeIeNorAjiCVI8nxRQtAfpVlf7Ww3 VWsX082/Aq4bd/LfMem9p3EF6XXLwVWIqX3dZwHSN9YDF78qFfYH9HvXSR79ei2i I/8TPMbMI5bYlLHAs4rl8ACBTsepoS6d6RmM59s7C+v6gYjuY9RI5BYX0AbqjaEA XO9BErbZN/L/wjxdiISwXKHOyv/zpoTpeLRiIqZTjs/qR3nI3UnJeWtRmuSzIdgA jfyduJNZpB+vfw6bd0OjmZwiTYS2uAB/rerCO3uqAxK0BID8bk8f2u3VClO4Hd0x +I/NKi/+dJ5JUsNbkZaMqNhHf/zhKGgUycklmxTUuFg6pi1iX1z+8jqkGs+ntQAM bEWhSCbSM4faEakiYhz0 =KP81 -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-14 9:28 ` Ritesh Raj Sarraf @ 2016-09-14 13:50 ` Ritesh Raj Sarraf 2016-09-14 15:28 ` Srinivas Pandruvada 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-14 13:50 UTC (permalink / raw) To: Srinivas Pandruvada, Jonathan Cameron, linux-iio, Bastien Nocera -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Srinivas, On Wed, 2016-09-14 at 14:58 +0530, Ritesh Raj Sarraf wrote: > > And linked are debug logs with both, 1.1 and 1.2 > > https://people.debian.org/~rrs/tmp/1.1.log > https://people.debian.org/~rrs/tmp/1.2.log > After reverting your changes[1], and applying Bastien's change [2], it is better as in now it can detect all orientation types. But they do not align with the actual physical orientation of the device. They are flipped to the actual orientation of the device. Logs linked [3]. Tested on Linux 4.8-rc6 rrs@learner:/var/tmp/Debian-Build/Result$ monitor-sensor Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: right-up) === Has ambient light sensor (value: 0.000000, unit: lux) Accelerometer orientation changed: normal Accelerometer orientation changed: right-up Accelerometer orientation changed: bottom-up Accelerometer orientation changed: right-up ^C 2016-09-14 / 19:09:16 ♒♒♒ ☹ => 130 [1] https://github.com/hadess/iio-sensor-proxy/commit/984803bc1b06e882bf3cf434fb 4deb2ea3b98f65 [2] https://github.com/hadess/iio-sensor-proxy/commit/07299fb51b8d80f12d74dc044f 189e410078b241 [3] https://people.debian.org/~rrs/tmp/iio-4.8-revert.txt - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX2VWRAAoJEKY6WKPy4XVp2Z8QAKh4WBPkGRUgpynkfdRiKWeK osB67Cs1SLt2fnT9SVC48PqCEU0VPfdK8aoetDqFcuNbu0w0Eko4lw1w06FG9tfk sui1RLpHA+uQmBcDn8UTTyIDZ3xydoAvnNMYFslHQ9bDHM31QdLeSPx4gGV8OS02 Ge2VyyjZgAcFiYLO3PaZUTMuwbPqiULeEi4dpzuyQGHfoh2rHcpIzUR26AK1ER1s yUT/5If0PDuaTNg94dVjXwgHkLxAzp1ehP0AUV3k6x1UC/M2YpESaRZOVNX6nfU3 xHiTc7pCyy+rKT9+pucO7kemQLDXQPcGZ7TTilGZPmafmJs08/l0dFKKzEaEJwuF nbOebj0bNGXetMTs8xfh/fgniFci85623MxbOXXI549Ndaxzu4cCKFRU+lxPZjKM bGRPFDgfMgaTpGXdGYI2leHcIIGKRZu7ph7eVK60HY6ni+KxdqMJrHZPPRMvnsuU 3GrIrtT8/AD9/gnGivNmSIg9EMHZmw1ZaRFgqcJSO9kDY9FjbM2LF4L7O93kTthm Spvk1871/umJe9iealZmDhVYDX0n/mBz4QfWADRe6R9j/VXPLf2PSdFLhpYZGDp0 ydSkAyRehu14+AblzF8xXWC3TwqAdy8l8XCEOX+C2LVS88iDKt2Ynm2OoyOaOeTb yRQsspT/nA8BA1ImJ2Mn =v/cN -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-14 13:50 ` Ritesh Raj Sarraf @ 2016-09-14 15:28 ` Srinivas Pandruvada 2016-09-14 15:44 ` Bastien Nocera 0 siblings, 1 reply; 19+ messages in thread From: Srinivas Pandruvada @ 2016-09-14 15:28 UTC (permalink / raw) To: rrs, Jonathan Cameron, linux-iio, Bastien Nocera On Wed, 2016-09-14 at 19:20 +0530, Ritesh Raj Sarraf wrote: > Hello Srinivas, > > On Wed, 2016-09-14 at 14:58 +0530, Ritesh Raj Sarraf wrote: > > > > > > And linked are debug logs with both, 1.1 and 1.2 > > > > https://people.debian.org/~rrs/tmp/1.1.log > > https://people.debian.org/~rrs/tmp/1.2.log > > > > After reverting your changes[1], and applying Bastien's change [2], > it is better > as in now it can detect all orientation types. But they do not align > with the > actual physical orientation of the device. They are flipped to the > actual > orientation of the device. Logs linked [3]. Tested on Linux 4.8-rc6 > > rrs@learner:/var/tmp/Debian-Build/Result$ monitor-sensor > Waiting for iio-sensor-proxy to appear > +++ iio-sensor-proxy appeared > === Has accelerometer (orientation: right-up) > === Has ambient light sensor (value: 0.000000, unit: lux) > Accelerometer orientation changed: normal > Accelerometer orientation changed: right-up > Accelerometer orientation changed: bottom-up > Accelerometer orientation changed: right-up I was surprised why the sorting function didn't work (it should be qsort compliant). We need some way not to depend on the order of scan_elements read from file system. So we need to fix this. Thanks, Srinivas > > > > > ^C > 2016-09-14 / 19:09:16 ♒♒♒ ☹ => 130 > > [1] https://github.com/hadess/iio-sensor-proxy/commit/984803bc1b06e88 > 2bf3cf434fb > 4deb2ea3b98f65 > > [2] https://github.com/hadess/iio-sensor-proxy/commit/07299fb51b8d80f > 12d74dc044f > 189e410078b241 > > [3] https://people.debian.org/~rrs/tmp/iio-4.8-revert.txt > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-14 15:28 ` Srinivas Pandruvada @ 2016-09-14 15:44 ` Bastien Nocera 2016-09-14 16:00 ` Ritesh Raj Sarraf 0 siblings, 1 reply; 19+ messages in thread From: Bastien Nocera @ 2016-09-14 15:44 UTC (permalink / raw) To: Srinivas Pandruvada, rrs, Jonathan Cameron, linux-iio On Wed, 2016-09-14 at 08:28 -0700, Srinivas Pandruvada wrote: > On Wed, 2016-09-14 at 19:20 +0530, Ritesh Raj Sarraf wrote: > Hello Srinivas, > > On Wed, 2016-09-14 at 14:58 +0530, Ritesh Raj Sarraf wrote: > > > > > > And linked are debug logs with both, 1.1 and 1.2 > > > > https://people.debian.org/~rrs/tmp/1.1.log > > https://people.debian.org/~rrs/tmp/1.2.log > > > > > After reverting your changes[1], and applying Bastien's change [2], > it is better > as in now it can detect all orientation types. But they do not align > with the > actual physical orientation of the device. They are flipped to the > actual > orientation of the device. Logs linked [3]. Tested on Linux 4.8-rc6 > > rrs@learner:/var/tmp/Debian-Build/Result$ monitor-sensor > Waiting for iio-sensor-proxy to appear > +++ iio-sensor-proxy appeared > === Has accelerometer (orientation: right-up) > === Has ambient light sensor (value: 0.000000, unit: lux) > Accelerometer orientation changed: normal > Accelerometer orientation changed: right-up > Accelerometer orientation changed: bottom-up > Accelerometer orientation changed: right-up > > > I was surprised why the sorting function didn't work (it should be > qsort compliant). We need some way not to depend on the order of > scan_elements read from file system. So we need to fix this. My guess: - return (int) (info_1->index - info_2->index); + return ((int) info_1->index - (int) info_2->index); Ritesh, could you try to change those lines in compare_channel_index() in src/iio-buffer-utils.c and capture another log if it fails? Cheers ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-14 15:44 ` Bastien Nocera @ 2016-09-14 16:00 ` Ritesh Raj Sarraf 2016-09-16 17:43 ` Srinivas Pandruvada 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-14 16:00 UTC (permalink / raw) To: Bastien Nocera, Srinivas Pandruvada, Jonathan Cameron, linux-iio -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Bastien, On Wed, 2016-09-14 at 17:44 +0200, Bastien Nocera wrote: > > My guess: > - return (int) (info_1->index - info_2->index); > + return ((int) info_1->index - (int) info_2->index); > > Ritesh, could you try to change those lines in compare_channel_index() > in src/iio-buffer-utils.c and capture another log if it fails? That did not seem to change anything. I've put up the log at: https://people.debian.org/~rrs/tmp/iio-int.txt - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX2XQhAAoJEKY6WKPy4XVp0G8P/jL93VwzPKnbrjR/B2hgVLXG SQc0WV6mNgNOUDcUfbEkSv/Fk4cNLMTIqRw9u/oTA4ZM5+omZUF4C0iZnNKx/f5C /1Q6rxKUVVn/ET31mG5vw/05MUqJqMN86LdJKgvno4ndmE1/hsF5CAn8vo5WRBr7 V7XM6gPdEBfXQnIHd64nrbHADjsXAB2WxL+tqhXzjxOBUO2wdL/oXYivqij92niN TtHEiHQZLqnHfGOTKPPGaF39mDQJsmEf4AWCnlfHwugGN1EIZGaXZSbOsO/c6su8 /SQQta1HmrVrodVVT/dITKGLPxbyYa0ei7LAp16BcrK0HXeV/1hQ0c4h8Brlg0du 5W3a0GkbvXz4YcyRypRxHoNR6iel001k7ndWMYBFixWhTzUbNYhgf6QZU8seXyot yqDSAnxY9KJEasGtVG/SSQ8kRl4iIyq3JG3HqRxMvDWffZSm90HsWQ+KBKX8QzGJ X6A6SlotyWvnSGsWF/YAv2n952NQGdpzIdlJd9rTaXpzCJY4rh6eSCg/tP1oBgul GxY6G8OQy0zvfvcAl31Kxi1JOoOidlbyeYqs4wsSIAHJpKFlAd1Jw6agmk7JuwH6 UE450+9u1Pk6klWnR6GGB5Q3xNO6+JxnFzr3Zp93wu45za6fUFZcCk8n/esDqyqq KsQ/LKGRoYi3M8ZJfF9i =ZUpR -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-14 16:00 ` Ritesh Raj Sarraf @ 2016-09-16 17:43 ` Srinivas Pandruvada 2016-09-16 18:26 ` Ritesh Raj Sarraf 0 siblings, 1 reply; 19+ messages in thread From: Srinivas Pandruvada @ 2016-09-16 17:43 UTC (permalink / raw) To: rrs, Bastien Nocera, Jonathan Cameron, linux-iio [-- Attachment #1: Type: text/plain, Size: 662 bytes --] Hi Ritesh, On Wed, 2016-09-14 at 21:30 +0530, Ritesh Raj Sarraf wrote: > Hello Bastien, > > On Wed, 2016-09-14 at 17:44 +0200, Bastien Nocera wrote: > > > > > > My guess: > > - return (int) (info_1->index - info_2->index); > > + return ((int) info_1->index - (int) info_2->index); > > Can you try attached patch for both 4.7 and 4.8 kernel? Thanks, Srinivas > > Ritesh, could you try to change those lines in > > compare_channel_index() > > in src/iio-buffer-utils.c and capture another log if it fails? > > That did not seem to change anything. I've put up the log at: > https://people.debian.org/~rrs/tmp/iio-int.txt > > [-- Attachment #2: 0001-Fix-sorting.patch --] [-- Type: text/x-patch, Size: 893 bytes --] From 553fb5ace1b131c7c0f146a772168879d6f8c704 Mon Sep 17 00:00:00 2001 From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Date: Fri, 16 Sep 2016 10:31:00 -0700 Subject: [PATCH] Fix sorting Need to derefernce parameters passed to compare callback. --- src/iio-buffer-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iio-buffer-utils.c b/src/iio-buffer-utils.c index 440a8b7..0b24bac 100644 --- a/src/iio-buffer-utils.c +++ b/src/iio-buffer-utils.c @@ -200,8 +200,8 @@ channel_info_free (iio_channel_info *ci) static int compare_channel_index (gconstpointer a, gconstpointer b) { - const iio_channel_info *info_1 = a; - const iio_channel_info *info_2 = b; + const iio_channel_info *info_1 = *(iio_channel_info **) a; + const iio_channel_info *info_2 = *(iio_channel_info **) b; return (int) (info_1->index - info_2->index); } -- 2.7.4 ^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 17:43 ` Srinivas Pandruvada @ 2016-09-16 18:26 ` Ritesh Raj Sarraf 2016-09-16 18:35 ` Ritesh Raj Sarraf 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-16 18:26 UTC (permalink / raw) To: Srinivas Pandruvada, Bastien Nocera, Jonathan Cameron, linux-iio [-- Attachment #1.1: Type: text/plain, Size: 734 bytes --] On Fri, 2016-09-16 at 10:43 -0700, Srinivas Pandruvada wrote: > Hi Ritesh, > > > On Wed, 2016-09-14 at 21:30 +0530, Ritesh Raj Sarraf wrote: > > Hello Bastien, > > > > On Wed, 2016-09-14 at 17:44 +0200, Bastien Nocera wrote: > > > > > > > > > My guess: > > > - return (int) (info_1->index - info_2->index); > > > + return ((int) info_1->index - (int) info_2->index); > > > > Can you try attached patch for both 4.7 and 4.8 kernel? Thank you Srini. With this patch, it works perfect on 4.8-rc6 kernel. Log is attached for your reference. I'll also confirm for 4.7 soon. -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." [-- Attachment #1.2: fix-sorting.txt --] [-- Type: text/plain, Size: 36864 bytes --] ** (process:8290): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200041.9.auto/iio:device3 ** (process:8290): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200041.9.auto/iio:device3 of type ambient light sensor at IIO Buffer Light sensor ** (process:8290): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device1 ** (process:8290): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device1 of type accelerometer at IIO Buffer accelerometer ** (process:8290): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2 ** (process:8290): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2 of type compass at IIO Buffer Compass ** (process:8290): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200073.4.auto/trigger1 ** (process:8290): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Built channel array for in_accel_x: index: 0, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Built channel array for in_accel_y: index: 1, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Built channel array for in_accel_z: index: 2, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200041.9.auto/trigger3 ** (process:8290): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Built channel array for in_intensity_both: index: 0, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0002/HID-SENSOR-200083.6.auto/trigger2 ** (process:8290): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Built channel array for in_magn_x: index: 0, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Built channel array for in_magn_y: index: 1, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Built channel array for in_magn_z: index: 2, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0 ** (process:8290): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: index: 3, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0 ** (process:8290): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device ** (process:8290): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device ** (process:8290): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 19, -910, -363 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -19, 910, -363 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from undefined to normal ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 78, -671, -195 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -78, 671, -195 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 58, -1101, -480 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -58, 1101, -480 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -679, -296, -222 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 679, 296, -222 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from normal to right-up ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -871, -39, -183 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 871, 39, -183 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -914, 7, -226 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 914, -7, -226 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -898, 39, -191 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 898, -39, -191 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -902, 58, -167 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 902, -58, -167 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -140, -695, -281 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 140, 695, -281 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from right-up to normal ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 3, -1054, -144 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -3, 1054, -144 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 82, -980, -289 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -82, 980, -289 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 54, -960, -300 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -54, 960, -300 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -50, -976, -312 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 50, 976, -312 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 1050, 7, -140 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -1050, -7, -140 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from normal to left-up ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 1003, 46, -136 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -1003, -46, -136 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 1011, -35, -109 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -1011, 35, -109 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 996, -15, -132 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -996, 15, -132 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 875, 42, -343 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -875, -42, -343 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 277, 722, -11 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -277, -722, -11 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from left-up to bottom-up ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 85, 910, 113 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -85, -910, 113 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 125, 992, 132 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -125, -992, 132 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 85, 906, 132 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -85, -906, 132 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 894, 1007, 460 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -894, -1007, 460 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from bottom-up to left-up ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -281, -1140, -117 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 281, 1140, -117 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from left-up to normal ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 11, -945, -464 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -11, 945, -464 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -3, -910, -292 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 3, 910, -292 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -15, -925, -355 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 15, 925, -355 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -27, -929, -335 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 27, 929, -335 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 304, -1203, -546 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -304, 1203, -546 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -1039, -89, 160 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 1039, 89, 160 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from normal to right-up ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -925, -128, -62 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 925, 128, -62 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 269, -929, 11 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -269, 929, 11 (scale: 0.009806) ** (process:8290): DEBUG: Emitted orientation changed: from right-up to normal ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -7, -992, -679 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 7, 992, -679 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -19, -914, -445 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 19, 914, -445 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -7, -914, -378 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 7, 914, -378 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: No new data available on 'iio:device1' ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 0, -937, -468 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 0, 937, -468 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -19, -925, -347 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 19, 925, -347 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -11, -902, -410 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 11, 902, -410 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -11, -910, -441 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 11, 910, -441 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -19, -960, -218 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 19, 960, -218 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 85, -960, -113 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -85, 960, -113 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -3, -988, -128 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 3, 988, -128 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 58, -1015, -203 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -58, 1015, -203 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -105, -1183, -355 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 105, 1183, -355 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -11, -832, 54 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 11, 832, 54 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': -35, -906, -246 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): 35, 906, -246 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 11, -882, -328 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -11, 882, -328 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 19, -898, -457 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -19, 898, -457 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 23, -902, -785 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -23, 902, -785 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 11, -941, -277 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -11, 941, -277 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 19, -953, -332 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -19, 953, -332 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 15, -953, -292 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -15, 953, -292 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (process:8290): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 ** (process:8290): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 ** (process:8290): DEBUG: Read from IIO on 'iio:device1': 15, -953, -273 ** (process:8290): DEBUG: Accel sent by driver (quirk applied): -15, 953, -273 (scale: 0.009806) ** (process:8290): DEBUG: No new data available on 'iio:device3' ** (process:8290): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 ** (pr [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 801 bytes --] ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 18:26 ` Ritesh Raj Sarraf @ 2016-09-16 18:35 ` Ritesh Raj Sarraf 2016-09-16 19:31 ` Srinivas Pandruvada 0 siblings, 1 reply; 19+ messages in thread From: Ritesh Raj Sarraf @ 2016-09-16 18:35 UTC (permalink / raw) To: Srinivas Pandruvada, Bastien Nocera, Jonathan Cameron, linux-iio -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Fri, 2016-09-16 at 23:56 +0530, Ritesh Raj Sarraf wrote: > I'll also confirm for 4.7 soon. Verified on 4.7 too and it is all good. Thanks. - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX3DtmAAoJEKY6WKPy4XVpENEP/jI9KHU/VDDTdZ+qefX4i8HA znp8cjZPqQsdIKAt4F/5QwIJGoJ3C7NSIRLaOYmjcrES+OY21jZj1WaQPApdwNBq 6+q79oeAsdern8EJ9Xx1pHj/0+V+apPs7kdoUNQwEyDpAWlRye/0rfsAgXEwMvyn aewkdRwxeXRYtML3eWzcIbvPRayeI1bvqIywKuX/GBcMeLJUi6F8H0ryhXEQqosA dNB5OrTX8MQCFNYusAnTWR9kPLzoxGhDPG3krY8B9oXlaJodHEnBN4OOg+ICtQhh H+4IPLf7xOb7TvccAxMzcGJ/zJuctLs4pM6h2Qx8fXsjhocdEb9s0GrSwrtP2Tl4 3Mo4lUdddkvJF3MLgcreDNlWgGvSguqi7lt0RmRMnpHyosw1TzuZ98vFNUDvRqda IIrttraxQ1ihXFuSZjvbT8XbA9g3+rOUbUSLRh+AgHfOlLTD4x/M8quq9IQ7xdaK m0K5tMzEhzriyt5VPKZpEYdFDCjfl7ByiTgGQUAVIoeILdydKuVTCjWAuve29cAP F2b9r3b1Lz3zmQr41ERhOno2Q3+7L67jb7N1AdlsG5evgkgfIvwxoi9C8YgH7XRa jjk7b1aX9PWonBpKcMTCi2AezmPkffnf3pdBnNF3WhCKX1ilpgUMbchgluyYFuJB yjlnmW1pGuNOnKs64H50 =Hzqj -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 18:35 ` Ritesh Raj Sarraf @ 2016-09-16 19:31 ` Srinivas Pandruvada 2016-09-16 19:40 ` Pandruvada, Srinivas 0 siblings, 1 reply; 19+ messages in thread From: Srinivas Pandruvada @ 2016-09-16 19:31 UTC (permalink / raw) To: rrs, Bastien Nocera, Jonathan Cameron, linux-iio On Sat, 2016-09-17 at 00:05 +0530, Ritesh Raj Sarraf wrote: > On Fri, 2016-09-16 at 23:56 +0530, Ritesh Raj Sarraf wrote: > > > > I'll also confirm for 4.7 soon. > > Verified on 4.7 too and it is all good. Thanks. I will send a pull request with this patch. - Srinivas > > Thanks. > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 19:31 ` Srinivas Pandruvada @ 2016-09-16 19:40 ` Pandruvada, Srinivas 2016-09-16 21:19 ` Bastien Nocera 0 siblings, 1 reply; 19+ messages in thread From: Pandruvada, Srinivas @ 2016-09-16 19:40 UTC (permalink / raw) To: rrs@researchut.com, linux-iio@vger.kernel.org, jic23@kernel.org, hadess@hadess.net T24gRnJpLCAyMDE2LTA5LTE2IGF0IDEyOjMxIC0wNzAwLCBTcmluaXZhcyBQYW5kcnV2YWRhIHdy b3RlOg0KPiBPbiBTYXQsIDIwMTYtMDktMTcgYXQgMDA6MDUgKzA1MzAsIFJpdGVzaCBSYWogU2Fy cmFmIHdyb3RlOg0KPiA+IA0KPiA+IE9uIEZyaSwgMjAxNi0wOS0xNiBhdCAyMzo1NiArMDUzMCwg Uml0ZXNoIFJhaiBTYXJyYWYgd3JvdGU6DQo+ID4gPiANCj4gPiA+IA0KPiA+ID4gSSdsbCBhbHNv IGNvbmZpcm0gZm9yIDQuNyBzb29uLg0KPiA+IA0KPiA+IFZlcmlmaWVkIG9uIDQuNyB0b28gYW5k IGl0IGlzIGFsbCBnb29kLg0KPiBUaGFua3MuDQo+IEkgd2lsbCBzZW5kIGEgcHVsbCByZXF1ZXN0 IHdpdGggdGhpcyBwYXRjaC4NCkhpIEJhc3RpZW4sDQoNCk15IG9yaWdpbmFsIHB1bGwgcmVxdWVz dCBmb3IgaXNzdWUgIzk5IGFscmVhZHkgaGFkIHRoaXMgY2hhbmdlLiBTb21laG93DQp3aGVuIG1l cmdlZCB0byBtYWluLCB0aGlzIGNoYW5nZSB3YXMgcmVtb3ZlZC4NCk1heSBiZSBqdXN0IHJldmVy dCBhbmQgcHVsbCBhZ2Fpbi4NCg0KVGhhbmtzLA0KU3Jpbml2YXMNCg0KDQo+IA0KPiANCj4gLSBT cmluaXZhcw0KPiANCj4gPiANCj4gPiANCj4gPiBUaGFua3Mu ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 19:40 ` Pandruvada, Srinivas @ 2016-09-16 21:19 ` Bastien Nocera 2016-09-16 22:30 ` Pandruvada, Srinivas 0 siblings, 1 reply; 19+ messages in thread From: Bastien Nocera @ 2016-09-16 21:19 UTC (permalink / raw) To: Pandruvada, Srinivas, rrs@researchut.com, linux-iio@vger.kernel.org, jic23@kernel.org On Fri, 2016-09-16 at 19:40 +0000, Pandruvada, Srinivas wrote: > On Fri, 2016-09-16 at 12:31 -0700, Srinivas Pandruvada wrote: > On Sat, 2016-09-17 at 00:05 +0530, Ritesh Raj Sarraf wrote: > > > > On Fri, 2016-09-16 at 23:56 +0530, Ritesh Raj Sarraf wrote: > > > > > > > > > I'll also confirm for 4.7 soon. > > > > > > Verified on 4.7 too and it is all good. > > Thanks. > I will send a pull request with this patch. > > Hi Bastien, > > My original pull request for issue #99 already had this change. > Somehow > when merged to main, this change was removed. > May be just revert and pull again. If you can explain the change, I'd be all for it, because I don't understand it. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 21:19 ` Bastien Nocera @ 2016-09-16 22:30 ` Pandruvada, Srinivas 2016-09-16 22:51 ` Bastien Nocera 0 siblings, 1 reply; 19+ messages in thread From: Pandruvada, Srinivas @ 2016-09-16 22:30 UTC (permalink / raw) To: rrs@researchut.com, linux-iio@vger.kernel.org, jic23@kernel.org, hadess@hadess.net [-- Attachment #1: Type: text/plain, Size: 889 bytes --] On Fri, 2016-09-16 at 23:19 +0200, Bastien Nocera wrote: > On Fri, 2016-09-16 at 19:40 +0000, Pandruvada, Srinivas wrote: > > > > On Fri, 2016-09-16 at 12:31 -0700, Srinivas Pandruvada wrote: > > On Sat, 2016-09-17 at 00:05 +0530, Ritesh Raj Sarraf wrote: > > > > > > > > > On Fri, 2016-09-16 at 23:56 +0530, Ritesh Raj Sarraf wrote: > > > > > > > > > > > > > > > > I'll also confirm for 4.7 soon. > > > > > > Verified on 4.7 too and it is all good. > > Thanks. > > I will send a pull request with this patch. > > > > Hi Bastien, > > > > My original pull request for issue #99 already had this change. > > Somehow > > when merged to main, this change was removed. > > May be just revert and pull again. > If you can explain the change, I'd be all for it, because I don't > understand it. Please check the attached patch with comments. Thanks, Srinivas [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: 0001-Fix-sorting-of-channels.patch --] [-- Type: text/x-patch; name="0001-Fix-sorting-of-channels.patch", Size: 1205 bytes --] From 6406d953fb65a838fe760d86a0b664128a343a03 Mon Sep 17 00:00:00 2001 From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Date: Fri, 16 Sep 2016 10:31:00 -0700 Subject: [PATCH] Fix sorting of channels As per the documentation of g_ptr_array_sort "Note that the comparison function for g_ptr_array_sort() doesn't take the pointers from the array as arguments, it takes pointers to the pointers in the array" So the arguments to the function compare_channel_index (gconstpointer a, gconstpointer b) needs to be dereferenced to get pointer to iio_channel_info. --- src/iio-buffer-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iio-buffer-utils.c b/src/iio-buffer-utils.c index 440a8b7..0b24bac 100644 --- a/src/iio-buffer-utils.c +++ b/src/iio-buffer-utils.c @@ -200,8 +200,8 @@ channel_info_free (iio_channel_info *ci) static int compare_channel_index (gconstpointer a, gconstpointer b) { - const iio_channel_info *info_1 = a; - const iio_channel_info *info_2 = b; + const iio_channel_info *info_1 = *(iio_channel_info **) a; + const iio_channel_info *info_2 = *(iio_channel_info **) b; return (int) (info_1->index - info_2->index); } -- 2.7.4 ^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-16 22:30 ` Pandruvada, Srinivas @ 2016-09-16 22:51 ` Bastien Nocera 0 siblings, 0 replies; 19+ messages in thread From: Bastien Nocera @ 2016-09-16 22:51 UTC (permalink / raw) To: Pandruvada, Srinivas, rrs@researchut.com, linux-iio@vger.kernel.org, jic23@kernel.org On Fri, 2016-09-16 at 22:30 +0000, Pandruvada, Srinivas wrote: > On Fri, 2016-09-16 at 23:19 +0200, Bastien Nocera wrote: > On Fri, 2016-09-16 at 19:40 +0000, Pandruvada, Srinivas wrote: > > > > On Fri, 2016-09-16 at 12:31 -0700, Srinivas Pandruvada wrote: > > On Sat, 2016-09-17 at 00:05 +0530, Ritesh Raj Sarraf wrote: > > > > > > > > > On Fri, 2016-09-16 at 23:56 +0530, Ritesh Raj Sarraf wrote: > > > > > > > > > > > > > > > > I'll also confirm for 4.7 soon. > > > > > > > > > Verified on 4.7 too and it is all good. > > > > Thanks. > > I will send a pull request with this patch. > > > > Hi Bastien, > > > > My original pull request for issue #99 already had this change. > > Somehow > > when merged to main, this change was removed. > > May be just revert and pull again. > > If you can explain the change, I'd be all for it, because I don't > understand it. > > Please check the attached patch with comments. Duh! My mistake. Pushed with some small changes to the commit message, thanks! ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: possible odd acceleration scaling 2016-09-13 17:50 ` Jonathan Cameron 2016-09-13 18:01 ` Jonathan Cameron @ 2016-09-14 11:34 ` Bastien Nocera 1 sibling, 0 replies; 19+ messages in thread From: Bastien Nocera @ 2016-09-14 11:34 UTC (permalink / raw) To: Jonathan Cameron, rrs, linux-iio, Srinivas Pandruvada On Tue, 2016-09-13 at 18:50 +0100, Jonathan Cameron wrote: > <snip> > Looking at your bug report, raw readings are around magnitude 1000. > 1000*0.009806 = 9.81 > > Given accelerations in IIO are in m/s^2 I'm slightly confused... Sigh. I think this is the second time I get this wrong. The code to calculate the orientation expects 1G ~= 0x100. So the driver is correct, and I need to fix this again in iio-sensor-proxy. Sorry about that. ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2016-09-16 22:51 UTC | newest] Thread overview: 19+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-09-13 17:30 possible odd acceleration scaling Ritesh Raj Sarraf 2016-09-13 17:50 ` Jonathan Cameron 2016-09-13 18:01 ` Jonathan Cameron 2016-09-13 19:06 ` Srinivas Pandruvada 2016-09-14 9:05 ` Ritesh Raj Sarraf 2016-09-14 9:28 ` Ritesh Raj Sarraf 2016-09-14 13:50 ` Ritesh Raj Sarraf 2016-09-14 15:28 ` Srinivas Pandruvada 2016-09-14 15:44 ` Bastien Nocera 2016-09-14 16:00 ` Ritesh Raj Sarraf 2016-09-16 17:43 ` Srinivas Pandruvada 2016-09-16 18:26 ` Ritesh Raj Sarraf 2016-09-16 18:35 ` Ritesh Raj Sarraf 2016-09-16 19:31 ` Srinivas Pandruvada 2016-09-16 19:40 ` Pandruvada, Srinivas 2016-09-16 21:19 ` Bastien Nocera 2016-09-16 22:30 ` Pandruvada, Srinivas 2016-09-16 22:51 ` Bastien Nocera 2016-09-14 11:34 ` Bastien Nocera
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).