• Ritesh Raj Sarraf's avatar
    HID: sensor-hub: Add quirk for Lenovo Yoga 2 with ITE Chips · e8e88438
    Ritesh Raj Sarraf authored
    This patch is a follow-up to 47eeca8a48 (" HID: sensor-hub: Add in quirk
    for Lenovo Yogas with ITE")
    
    The Lenovo Yoga 2 13 seems to be sold in multiple variants with minor
    difference3s. IN my case, the USB ID for ITE chip is different than the
    Yoga 2 11 and Yoga 3 14.
    
    Without the quirk, no data is received from the accelerometer. I have
    verified the patch, testing this on 4.3-rc4 (and 4.2 stable). With this
    patch, proper orientation data is received.
    
    rrs@learner:~/Community/UpstreamSources/linux-upstream_GIT (stable-42)$
    monitor-sensor
    ** Message: Accelerometer orientation changed: bottom-up
    ** Message: Light changed: 0.000000 (lux)
    ±** Message: Accelerometer orientation changed: left-up
    ** Message: Accelerometer orientation changed: bottom-up
    ** Message: Accelerometer orientation changed: left-up
    ** Message: Accelerometer orientation changed: normal
    ** Message: Light changed: 29.999999 (lux)
    
    monitor-sensor can be found in the iio-sensor-proxy tool.
    Signed-off-by: default avatarRitesh Raj Sarraf <rrs@debian.org>
    Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    e8e88438
hid-ids.h 37.8 KB