Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1293373
| From | Nish Aravamudan <nish.aravamudan@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) |
| Date | 2015-12-16 23:40 +0100 |
| Message-ID | <qGsTM-7Lk-15@gated-at.bofh.it> (permalink) |
| References | <qG3iG-8mS-17@gated-at.bofh.it> <qGgSC-8tQ-21@gated-at.bofh.it> <qGs7o-7dW-3@gated-at.bofh.it> <qGsK5-7I0-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On Wed, Dec 16, 2015 at 2:22 PM, Crt Mori <cmo@melexis.com> wrote: > On 16 December 2015 at 22:41, Nish Aravamudan <nish.aravamudan@gmail.com> wrote: >> Hi Daniel, >> >> On Wed, Dec 16, 2015 at 1:43 AM, Daniel Baluta <daniel.baluta@gmail.com> wrote: >>> On Tue, Dec 15, 2015 at 9:19 PM, Nish Aravamudan >>> <nish.aravamudan@gmail.com> wrote: >>>> So, I apologize in advance for this relatively vague report, but I'm fairly sure >>>> the Yoga 900 has an accelerometer amongst other sensors (ambient light?) >>>> exported over IIO. >>>> >>>> But, these sensors seem to not be updating at all with a 4.4-rc5+ kernel (a >>>> set of patches from https://lkml.org/lkml/2015/11/30/441 applied to Linus' >>>> tree). >>>> >>>> The odd part is at some point in messing with this, I'm fairly sure it did work! >>>> That is, >>>> >>>> `watch -n 0.1 cat '/sys/bus/iio/devices/iio:device'*/*raw*` >>> >>> Can you send us a sample of the output? Also, would be >>> good to identify the exact driver for accel. >> >> cat /sys/bus/iio/devices/iio:device*/*raw* >> 65478 >> 7 >> 1023 >> 0 >> 0 >> 0 >> 100 >> -539062 >> -742187 >> 1292968 >> 1592 >> 64932 >> 2 >> 275 >> 0 0 0 0 >> >> Now, I should say that I distinctly remember at some point waving my >> laptop around and seeing these values change ... but now they seem to >> be "stuck". Maybe it's a hardware issue or something special that >> WIndows does to leverage the IIO sensors? >> >>> Perhaps: cat /sys/bus/iio/devices/iio:device'*/name >> >> $ cat /sys/bus/iio/devices/iio:device*/name >> accel_3d > > Can you list the directory of iio:device with this name (it is: > drivers/iio/accel/hid-sensor-accel-3d.c). > This is something you will be looking at for accel debugging, but it > seems more like > standard /sys/bus/iio/devices/iio:device0/name gyro_3d /sys/bus/iio/devices/iio:device1/name dev_rotation /sys/bus/iio/devices/iio:device2/name als /sys/bus/iio/devices/iio:device3/name magn_3d /sys/bus/iio/devices/iio:device4/name accel_3d /sys/bus/iio/devices/iio:device5/name incli_3d are all the IIO sensors, sorry about that! >> gyro_3d >> als >> magn_3d >> incli_3d >> dev_rotation >> >> >>>> >>>> showed updating values as I moved the laptop around. >>>> >>>> I've not done any accelerometer debugging before, so any suggestion on >>>> where to start would be greatly appreciated! >>> >>> Did you applied some patches and recompiled the kernel? Or when it did stopped >>> working? >> >> As far as I can tell, it only worked that one one time and hasn't >> since. Although your question does make me wonder *which* kernel I was >> on that I experienced the values changing. Let me go back to a stock >> 4.4-rc5 and see. > > Did you compile the stock kernel? It might be that .dts file you are > using (or defconfig) > is not correct. I compiled the stock kernel, based off the the Ubuntu 15.04 .config, trimmed to account for the hardware I have on the system. I can attach the .config if that will be useful. I just went back to 4.4-rc4 and it also didn't seem to have any updates to the raw file contents. -Nish -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-15 20:20 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Crt Mori <cmo@melexis.com> - 2015-12-16 10:40 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-16 22:40 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Daniel Baluta <daniel.baluta@gmail.com> - 2015-12-16 10:50 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-16 22:50 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Crt Mori <cmo@melexis.com> - 2015-12-16 23:30 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-16 23:40 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-17 00:10 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-17 06:30 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Crt Mori <cmo@melexis.com> - 2015-12-17 09:50 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-17 18:40 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-17 19:20 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Crt Mori <cmo@melexis.com> - 2015-12-17 19:40 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-17 21:10 +0100
Re: Issues with Lenovo Yoga 900 IIO devices (accelerometer, etc.) Nish Aravamudan <nish.aravamudan@gmail.com> - 2015-12-17 21:40 +0100
csiph-web