Comments (4)
I'm using the same laptop and trying to get sensor data.
My actual setup is Debian Jessie(testing) with a self compiled kernel 3.17.1 ( also tested it with standard kernel of Debian)
Your code worked for me, when I last tried it in April 2014 ( commit 94d130c ). At this time my System was Ubuntu 13.10 with a self compiled kernel 3.14.0 .
I hope you have an idea.
from yoga-laptop.
There appears that the sensors get into particular states that are not always handled well by the IIO subsystem. I had these problems in kernels 3.13 and 3.14, but have not had any problems since 3.15. Without access to the actual hardware, it is very hard to determine just what is going wrong.
from yoga-laptop.
Any idea in which direction to look?
Which piece of code or hardware could we debug how?
We are glad about every hint or link we can get. Maybe some resources which helped you while developing your code?
It took me several hours just to understand your code and reproduce what it is doing to understand about the actual modules being used in the process.
from yoga-laptop.
It's likely to be some part of the drivers for the hardware.
The most likely culprit, I think, is that the particular hardware may need to be added to the list of hardware that uses the wrong origin for offsets. To check this you need to find out what your sensor chip is, using lsusb -v
and then see if it is in the list of quirked devices in the kernel file hid-sensor-hub.c (look for ENUM_QUIRK). The definitions of the symbols are in sensor-id.h
You will be looking for a USB device that is an HID Sensor. Here is what show up on at Yoga 2 Pro - the vendor and product numbers are what are needed.
Bus 002 Device 003: ID 2047:0855 Texas Instruments Invensense Embedded MotionApp HID Sensor
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x2047 Texas Instruments
idProduct 0x0855 Invensense Embedded MotionApp HID Sensor
bcdDevice 11.51
iManufacturer 1 Invensense
iProduct 2 Lenovo Yoga
iSerial 3 44F6806F1F002300
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 41
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Embedded MotionApps
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 5 HID Sensor Interface
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.01
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 2587
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 20
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 20
Device Status: 0x0000
(Bus Powered)
from yoga-laptop.
Related Issues (20)
- Not working on Yoga 2 13 (non-pro) HOT 47
- Can't compile on Ubuntu 14.10 HOT 4
- Not working with Yoga 3 Pro and Ubuntu 14.10 HOT 1
- orientation.c won't compile since last commit HOT 2
- Possible Error in code of orientation HOT 2
- Testing on Yoga 2 11'' HOT 11
- Detecting screen folding degree and deactivating keyboard/touchpad if it passes 180 degree HOT 3
- Kernel 4.0 / Debian: make programs fails with "Undefined reference to `build_channel_array'" HOT 12
- Issue installing HOT 6
- Linux driver in Fedora 19-21 crashing after few seconds after the orientation program is started HOT 5
- no wifi on Yoga 3 14 HOT 1
- Debounce light sensor HOT 1
- Does nothing on Ubuntu 15.04 / 15.10 HOT 1
- Not working after suspend HOT 3
- Installing on ubuntu 15.10 HOT 7
- Ubuntu 15.10 - notify.h not found HOT 9
- Add another input to orientation HOT 2
- how to makethis work HOT 12
- Touchpad not being disabled HOT 1
- Documentation: Add Yoga 460 support start with kernel 4.10 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yoga-laptop.