https://bugzilla.kernel.org/show_bug.cgi?id=195667

            Bug ID: 195667
           Summary: Suspend through lid close, >=4.4 works once but not
                    the second time
           Product: ACPI
           Version: 2.5
    Kernel Version: >=4.4.41-1-MANJARO x64
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Power-Sleep-Wake
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

I have an suspend on lid close issue with a Dell XPS 13 (9343). I have
to say I am not a developer, but Greg K-H encouraged me to file this bug
report, which I hope is helpful.

With kernel 4.1.37-1-MANJARO x64 suspend works without any issues. But
with 4.4.41-1-MANJARO x64, 4.8.17-1-MANJARO x64, 4.9.2-1-MANJARO x64,
and 4.10.12-1 x64 it works only the first time I close the lid. (Side
note: I was running other distributions on the machine with newer
kernels, without noticing this problem, so there is a chance that this
is unique to Manjaro).

Afterwards closing the lid will not suspend the machine although
manually suspending works. 

Here what I already tried:

My first idea was that suspend does not work at all after once waking
up. But running `systemctl suspend` the machine supsends, closing the
lid afterwards and then opening it will wake it up. But it will not
suspend when closing the lid.

Next idea was that the lid close is not noticed, but when runing
"journalctl -f" while closing the lid on the newer kernels from the
second time onwards says that the machine is noticing the lid close.

> sudo journalctl -b -u systemd-logind

Afterwards it will not suspend.

Here the uncommented lines in /etc/systemd/logind.conf

> HandleLidSwitch=suspend
> HandleLidSwitchDocked=suspend
> 
> HoldoffTimeoutSec=0s

Also tried it with and without

> LidSwitchIgnoreInhibited=no

After running 4.1 and then once booting into 4.4 or higher it suspsends
several times, but after the second time booting into it, suspend
through lid close does not work.

The only thing I found out that changed on his machine from between 4.1
and the other kernels is that the audio switched to use I2S which is
used from >=4.4 (see
https://wiki.archlinux.org/index.php/Dell_XPS_13_(9343)#I2S_modehttps://wiki.archlinux.org/index.php/Dell_XPS_13_(9343)#I2S_mode
). I cannot imagine how that could cause this problem, but I thought
I'll still mention it here.

Boot back into 4.1. suspend through lid close works again (after the
first reboot the sound does not work though because it needs two times
to change the audio mode).

Greg K-H also had a look at my machine and said I should  additionally
include this information in the bug report:

The Lid Switch button is there:

> 1: 0000:0005 HOST   PNP0C0D/button/i Lid Switch               SW

But 

> $cat /dev/input/event1

gives no output when I close the lid.

Thank you already!

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to