Re: Lid status always set to open on X1 Carbon 2nd edition

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

 



On Wed, 03 May 2017, Marco Marzetti wrote:
> For some reason /proc/acpi/button/lid/LID/state is always open even if
> the lid is closed.
> I am quite annoyed by the issue, but i ran out of options pretty fast
> 
> Hardware is Lenovo X1 Carbon 2nd edition.
> Below you can find:
>  - dmesg
>  - dmidecode
>  - /proc/acpi/wakeup

Hmm, next time *please* remove serial numbers and UUIDs :-(

> Please note that everything works as expected (buttons, microphone,
> speakers, brightness, etc.. ).
> if i run acpi_listen it spots every button, but no event is reported
> for lid open/close.
> 
> Please note that the same issue happens with 4.9.0-2
> Do you have any ideas why?

Not at first glance, no.  This stuff is handled by the standard ACPI
layer, it is probably best that you open a bug report in the kernel
bugzilla, assign it to the ACPI subcomponent, and then send an email to
linux-acpi@xxxxxxxxxxxxxxx about it (with a link to the bugzilla
report).  It could be the lid ACPI driver, or the EC driver, or ACPICA
itself.

I am sure ACPI upstream will ask you to test the latest *mainline* (not
the Debian) 4.9 kernel.  That would be the 4.9 kernel you build from the
git repository:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/

(use branch linux-4.9.y).   You should be able to reuse the Debian
kernel config with few changes (it will be in /boot/config-*).  "make
oldconfig" in the kernel tree is your friend (after you copied the
Debian kernel config to ".config" in the checked out kernel source
tree).

You can use 'make-kpkg' from the Debian kernel-package package to build
and package your test kernel, if you want.  But it is slow for this kind
of build :-(

linux-acpi is likely to ask you to try git bissecting to locate the
commit that introduced the problem.  If you are not familiar with it, is
explained here:

https://wiki.gentoo.org/wiki/Kernel_git-bisect

https://www.kernel.org/pub/software/scm/git/docs/git-bisect-lk2009.html
http://www.reactivated.net/weblog/archives/2006/01/using-git-bisect-to-find-buggy-kernel-patches/


This clearly requires that you be somewhat confortable building your own
kernels :-(

-- 
  Henrique Holschuh

------------------------------------------------------------------------------
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