All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ritesh Raj Sarraf <rrs@researchut.com>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	Jonathan Cameron <jic23@kernel.org>,
	linux-iio@vger.kernel.org, Bastien Nocera <hadess@hadess.net>
Subject: Re: possible odd acceleration scaling
Date: Wed, 14 Sep 2016 14:35:53 +0530	[thread overview]
Message-ID: <1473843953.23872.3.camel@researchut.com> (raw)
In-Reply-To: <1473793566.6874.10.camel@linux.intel.com>

-----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-----


  reply	other threads:[~2016-09-14  9:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1473843953.23872.3.camel@researchut.com \
    --to=rrs@researchut.com \
    --cc=hadess@hadess.net \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=srinivas.pandruvada@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.