Re: Resource Temporarily Unavailable error when trying to read from the accelerator on a ThinkPad twist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey.

can you instruct me on:

1) how to turn on this dynamic debugging thing?
2) How do I know which directory in /sys/kernel/debug/hid/ is the one
for the accelerometer?

The USB device ID is Bus 002 Device 003: ID 0483:91d1 STMicroelectronics

The weird thing is that after suspend & resume, iio-sensor-proxy can
suddenly read the values from the sensor, but it still doesn't rotate
the screen.



On Tue, Aug 12, 2014 at 7:42 PM, Reyad Attiyat <reyad.attiyat@xxxxxxxxx> wrote:
> Hello Elad Alfassa,
>
> I'm not too sure exactly what has caused such a regression but I will
> try and help. There was very little added to the accelerometer driver
> in between those releases only, some slight power modifications and
> raw read support.
>
> Have you tried using the sysfs interface for the IIO accelerometer.
> Should be located in /sys/bus/iio/devices/iio:devicex/
> In that directory, on the newest kernel, there should be a
> in_accel_x_raw file, can you read new data from this?
>
> Can you provide more detail about the error. Turn on dynamic debugging
> for hid-sensor-hub  and hid-sensor-accel-3d modules. Then try enabling
> the scan elements and the buffer with the sysfs interface and post the
> full dmesg output. Also print the HID report description found on
> debugfs usually somewhere like
> (/sys/kernel/debug/hid/xxxx:xxxx:/rdesc) Maybe with this extra
> information the problem will be more clear.
>
> For a possible fix you can try adding the devices USB HID ID's, for
> the sensor hub, to the hid-sensor-hub driver hid_device_id struct.
> This will allow adding a quirk for your device and should setup the
> power state and enable the sensor hub correctly.
>
> Good luck,
> Reyad Attiyat
>
> On Mon, Aug 11, 2014 at 8:51 AM, Elad Alfassa <elad@xxxxxxxxxxxxxxxxx> wrote:
>> On Mon, Aug 11, 2014 at 3:16 PM, Elad Alfassa <elad@xxxxxxxxxxxxxxxxx> wrote:
>>> Hi.
>>>
>>> I have a Thinkpad Twist, this is a Windows 8 certified machine from
>>> around 2012, and it has an accelerometer.
>>> Running kernel 3.16.0-1.fc22.x86_64, I'm getting "Resource Temporarily
>>> Unavailable" when trying to read from the accelerometer.
>>>
>>> Tiny bit more details:
>>> https://github.com/hadess/iio-sensor-proxy/issues/1
>>> https://sysdev.microsoft.com/en-us/hardware/LPL/ProductDetails.aspx?ProductID=98463&OrganizationID=4733
>>>
>>> Is this a known issue? Can I help debug this in any way?
>>>
>>>
>>> Thanks.
>>>
>>> --
>>> -Elad Alfassa.
>>
>> Hi.
>> Turns out this is a regression - it works well with kernel
>> 3.15.8-200.fc20.x86_64
>> I tried reporting this in the kernel bugzilla, but I couldn't find the
>> right component for the bug, so I filed it in RHBZ for now.
>> https://bugzilla.redhat.com/show_bug.cgi?id=1128760
>>
>>
>> --
>> -Elad Alfassa.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
-Elad Alfassa.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux