Re: Lid sensor on Yoga 11e

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

 



Hi,

On 25-10-17 19:47, Hans de Goede wrote:
Hi,

On 25-10-17 16:30, Lars Kellogg-Stedman wrote:
On Wed, Oct 25, 2017 at 10:12 AM, Hans de Goede <hdegoede@xxxxxxxxxx <mailto:hdegoede@xxxxxxxxxx>> wrote:

    Hmm interesting I would expect there to be 2 ACPI devices for the
    2 accelerometers and then things should just work fine.

    Unless there is one DSDT entry / ACPI device with 2 i2c ACPI resources
    to point to the 2 different accelerometers. That would not be the
    first time I see that, we've some i2c helpers now to make dealing
    with this easier.

    Can you put an acpidump of the machine somewhere so that I can check
    what is in the DSDT ?


A complete dump is available at https://github.com/larsks/yoga-11e-acpi/. It looks like there is a single ACPI device with two I2C devices; see https://github.com/larsks/yoga-11e-acpi/blob/master/dsdt.dsl#L10396.

Ah yes, ok I know how to fix this. It is not going to be 100% pretty from
a driver-code pov, but it should not be to bad and make both accelerometers
available. I will get back to you with a patch to test for this when
I've some time to whip up said patch.

Quick update on this, a colleague of mine, Jeremy Cline (added to the Cc)
was looking for some small projects to get up to speed wrt kernel development
so I've handed writing a patch for this over to him.

Regards,

Hans

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel




[Index of Archives]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite Advice]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux