Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No suspend when lid open in kernels 4.4, 4.8, 4.9
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 112
Location: São Paulo, Brasil

PostPosted: Mon Dec 26, 2016 11:25 pm    Post subject: No suspend when lid open in kernels 4.4, 4.8, 4.9 Reply with quote

Suspend works just fine in kernel 4.1.35. But if i upgrade it to any newer kernel, copying the same config from 4.1 and doing make oldconfig, the kernel built does not suspends anymore except if the lid is closed.

This is how I'm doing:
Code:

echo mem >/sys/power/state


For kernels 4.4 and above it works only if I immediately close the laptop lid. Otherwise, if the lid is opened, it starts to suspend, the screen gets black but immediately resumes.

I did try to play around with /proc/acpi/wakeup, disabling everything except PBTN but nothing changes.

Code:



luiza-mouraria aline # cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
PEG0      S4    *disabled
PEGP      S4    *disabled
PEG1      S4    *disabled
PEGP      S4    *disabled
PEG2      S4    *disabled
PEGP      S4    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
PXSX      S4    *disabled
RP02      S4    *disabled
PXSX      S4    *disabled
RP03      S4    *disabled  pci:0000:00:1c.2
PXSX      S4    *disabled  pci:0000:06:00.0
RP04      S4    *disabled  pci:0000:00:1c.3
PXSX      S4    *disabled  pci:0000:07:00.0
RP05      S4    *disabled  pci:0000:00:1c.4
PXSX      S4    *disabled
RP06      S4    *disabled
PXSX      S4    *disabled
RP07      S4    *disabled
PXSX      S4    *disabled
RP08      S4    *disabled
PXSX      S4    *disabled
GLAN      S4    *disabled
EHC1      S0    *disabled  pci:0000:00:1d.0
EHC2      S0    *disabled
XHC       S0    *disabled  pci:0000:00:14.0
TPD4      S4    *disabled
TPD7      S0    *disabled
TPD8      S0    *disabled
HDEF      S4    *disabled  pci:0000:00:1b.0
LID0      S3    *disabled  platform:PNP0C0D:00
PBTN      S3    *enabled   platform:PNP0C0C:00


I've captured dmesg with initcall_debug from kernel 4.9.0 while I execute suspend command, but I could not find anything special.

With lid open: https://paste.pound-python.org/show/23UtkLop8nRbfcmqfogK/
Closing the lid: https://paste.pound-python.org/show/ajpqxEGq00tymth89FyY/

Is there anything else I could do for debug? Any ideas or it may be a kernel regression? I could not find anything in kernel bugzilla also.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Dec 29, 2016 8:09 pm    Post subject: Reply with quote

AFAIK firmware

you could run xev and see if that hardware event generates an ACPI event.

I expect a firmware bug, you could try to figure it out fooling your hardware that it run windows by acpi_osi= .... on your kernel cmd at boot-up.

read out DSDT, ACPI events, check if it works on a recent livecd...

=> acpi_listen (or what it is called)
=> xev

UEFI is broken by design. It is expected that the software handles those events. and because UEFI is bad programmed by notebook manufacturers and barely open, closed source UEFI bios ... you can only disassemble the DSDT and fix it. but that may only work

--

There was a big change

kernel 3.16 => kernel 4.x

and also kernel 4.1 => 4.9

acpi is also broken on my hardware.

Things most probably worked aroundkernel 3.16 or earlier.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum