-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resume from suspend if a specific disk is added to DISK_DEVICES with AHCI_RUNTIME_PM_ON_BAT enabled #606
Comments
This is probably related to #587 (comment) The AHCI autosuspend sysfiles associated to sdb are:
The disk seems to refuse to accept Does the problem disappear after writing on to /sys/bus/pci/devices/0000:00:17.0/ata2/power/control? |
@linrunner are you suggesting that should I try to write directly in /sys/bus/pci/devices/0000:00:17.0/ata2/power/control? |
Almost. You need a root shell:
|
The situation has changed. Before I tried what you suggest I commented
but the problem persists, also after reboot. After reboot I took tlp-stat. See here I wait for you response because this is so unexpected, I don't think doing what you suggest now it's the correct thing to do |
You tested the opposite of what I need to isolate the cause. So again properly please:
Then suspend and check if the problem occurs again. |
Sorry @linrunner for answering only now.
Hope this can help you to resolve the problem |
tlp-stat always displays the same values as cat, it even uses cat internally. The deviation in your test case is due to the fact that tlp is called again after the resume and restores the state before your manual write operations. I guess the next suspend will produce the problem again. What I don't understand is why /sys/block/sdb/power/control stays Let's test this a little more thoroughly:
and show the output of
again.
once again. Finallly the trace output for the whole business
|
You are right, only the first time the pc suspends and resumes correctly |
@linrunner I do what as you written. |
Your outputs show strange deviations.
is
On the other hand, the result of the recent boot process is
Is this still the same kernel version? As a workaround I suggest you turn off AHCI runtime pm completely by configuring
|
Absolutely yes. I show you the output of my
I wasn't able to obtain that output ever again. I don't know why onestly.
I know. In fact one time I don't try what you asked because I was confused of the results of my actions. |
I follow the passages. Here the output. The output after reboot and after suspends, remained the same, with this output for both disks:
@linrunner I started thinking this is a problem of the disk.. may be? |
While in battery mode I restored Gist here |
/sys/block/<DISK>/device/power/control References: * #606 * https://lkml.org/lkml/2016/2/18/147
Oops. In fact there is an error in the output. TLP internally reads and writes the correct path /sys/block/DISK/device/power/control, but I can't provide a Fedora package right away, so please edit the file /usr/share/tlp/func.d/tlp-func-stat Line 446 by hand according to the commit diff please. |
Workaround added to the FAQ. |
I edited my files. Do you want that I test something else for you @linrunner ? |
May be really a bug in the linux kernel?? |
Just for the record: with
Of course. But we will not solve it here, you will have to create a kernel bug report.
I will let you know when the 1.5 beta is ready. |
Yes
Ok
Perfect |
@luckv : Fedora F35 packages are available now. Enjoy. |
[x] I've read and accepted the Bug Reporting Howto
[x] I've provided all required
tlp-stat
outputs via GistDescribe the bug
If the parameter
DISK_DEVICES
is specifically set with one of my disks (sdb) andAHCI_RUNTIME_PM_ON_BAT
is set toauto
, after suspend (systemctl suspend
), the pc turn on but not completely. The screen turn on but remains blank (lit but black), and the wifi doesn't connect (I can't ping the pc after suspension).I don't know much about the disk. Was shipped with the laptop and report this name: Micron 1100 MTFD
I excluded all other possible causes:
DISK_DEVICES
orAHCI_RUNTIME_PM_ON_BAT
is set toon
tlp-stat
. I enabled them one by one and rebooted to check where the problem was.RUNTIME_PM_ON_BAT
andUSB_AUTOSUSPEND
, but doesn't workExpected behavior
The pc to return from suspension normally
To Reproduce
Steps to reproduce the unexpected behavior:
tlp-stat
: link. All customizations are inluckv.conf
Additional context
OS: Fedora 35 (Workstation Edition)
Kernel version (
uname -r
): 5.15.6-200.fc35.x86_64I have also Pop!_OS version 21.04 (same kernel version, 5.15) installed on the same pc (also the same boot disk) but with TLP 1.3.1. The issue doesn't present with it.
The text was updated successfully, but these errors were encountered: