From: Bastien Nocera <hadess@hadess.net>
To: linux-iio@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: "light" channel not working in hid-sensor-hub
Date: Wed, 20 Jan 2021 11:21:34 +0100	[thread overview]
Message-ID: <aab4d104fc358ce21f8ef69377e203043e700879.camel@hadess.net> (raw)
In-Reply-To: <194e35b5acefbb3f7f4092e5d5e46ce5e541cc19.camel@hadess.net>
On Mon, 2021-01-18 at 21:06 +0100, Bastien Nocera wrote:
> Hey,
> 
> It seems that the "light" channel that's available in hid-sensor-hub
> stopped working quite some time ago. I've tested this on a ColorHug
> ALS
> light sensor, as well as on the light sensor part of the HID sensor
> hub
> on a Surface 3.
Using hid-recorder on the ColorHugALS device, after unloading the hid-
sensor-hub code after the device isn't outputting any useful data:
D: 0
R: 269 05 20 09 01 a1 01 09 41 a1 00 85 01 0a 09 03 15 00 25 01 75 08
95 01 a1 02 0a 31 08 0a 32 08 b1 00 c0 0a 16 03 15 00 25 02 a1 02 0a 40
08 0a 41 08 0a 42 08 b1 00 c0 0a 19 03 15 00 25 02 a1 02 0a 50 08 0a 51
08 0a 52 08 b1 00 c0 0a 01 02 15 00 25 06 a1 02 0a 00 08 0a 01 08 0a 02
08 0a 03 08 0a 04 08 0a 05 08 0a 06 08 b1 00 c0 0a 0e 03 15 00 27 ff ff
ff ff 75 20 55 00 b1 02 05 20 0a 01 02 15 00 25 05 75 08 95 01 a1 02 0a
00 08 0a 01 08 0a 02 08 0a 03 08 0a 05 08 0a 06 08 81 00 c0 0a 02 02 15
00 25 04 a1 02 0a 10 08 0a 11 08 0a 12 08 0a 13 08 0a 14 08 81 00 c0 0a
d1 04 15 00 26 ff ff 75 20 55 0e 81 02 06 c0 ff 09 02 a1 01 85 02 09 01
09 0d 09 03 95 03 b1 22 09 05 75 10 95 01 b1 22 c0 09 03 a1 01 85 03 09
30 75 08 95 01 b1 22 09 07 75 30 95 01 b1 22 09 0b 75 20 b1 22 09 24 09
28 75 08 95 02 c0 c0 c0
N: Hughski Ltd. ColorHugALS
P: usb-0000:00:14.0-10/input0
I: 3 273f 1008
D: 0
E: 0.000001 7 01 01 03 00 00 00 00
E: 0.663922 7 01 01 03 00 00 00 00
E: 1.327952 7 01 01 03 00 00 00 00
E: 1.991027 7 01 01 03 00 00 00 00
E: 2.654949 7 01 01 03 00 00 00 00
E: 3.318928 7 01 01 03 00 00 00 00
E: 3.982937 7 01 01 03 00 00 00 00
etc.
So it's possible that, in this case, the problem lies in the HID core.
Cheers
     prev parent reply	other threads:[~2021-01-20 11:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 20:06 "light" channel not working in hid-sensor-hub Bastien Nocera
2021-01-20 10:21 ` Bastien Nocera [this message]
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=aab4d104fc358ce21f8ef69377e203043e700879.camel@hadess.net \
    --to=hadess@hadess.net \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    /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 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).