Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upComputer doesn't recover from suspend state #3705
Comments
lead4good
referenced this issue
Mar 16, 2018
Open
If sys-usb powered off computer shuts down after resuming from suspend #3689
andrewdavidwong
added
bug
C: other
labels
Mar 17, 2018
andrewdavidwong
added this to the Release 4.0 milestone
Mar 17, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
toserk
Mar 19, 2018
I have same issue on HP Probook 450 G5 (i7-8550u). I noticed that I get a bunch of ACPI (Method not supported…) errors on qubes boot. So, I tried to install windows and official HP drivers to check if this is a hardware problem. And I got ACPI.sys problem, described in this post
https://h30434.www3.hp.com/t5/Business-Notebooks/ProBook-450-with-high-CPU-usage/td-p/6520063
This error has very similar behavior, except for the system freeze. It occurs with some probability after suspend/resume, and fan works at max speed when it occurs.
Maybe this information will help determine what the problem is.
toserk
commented
Mar 19, 2018
•
|
I have same issue on HP Probook 450 G5 (i7-8550u). I noticed that I get a bunch of ACPI (Method not supported…) errors on qubes boot. So, I tried to install windows and official HP drivers to check if this is a hardware problem. And I got ACPI.sys problem, described in this post |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lead4good
commented
Mar 21, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 21, 2018
Member
This might be BIOS bug, are there any BIOS updates available for this machine?
|
This might be BIOS bug, are there any BIOS updates available for this machine? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
toserk
Mar 21, 2018
I have latest available versions of BIOS, USB 3.1 Controller firmware, and Intel Management Engine firmware.
This is the dmesg dump with suspend/resume cycles until system freeze
dmesg1.txt
I'm not sure that this is not a coincidence, but every time I tried to check #3689 I got freeze on first suspend/resume.
toserk
commented
Mar 21, 2018
|
I have latest available versions of BIOS, USB 3.1 Controller firmware, and Intel Management Engine firmware. I'm not sure that this is not a coincidence, but every time I tried to check #3689 I got freeze on first suspend/resume. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lead4good
Mar 26, 2018
Comparing my dmesg I cannot find similiar ACPI errors in my log:
dmesg.txt
However there is one line which is similar:
ACPI BIOS Warning (bug): Incorrect checksum in table [FACP] - 0x21, should be 0x57 (20170728/tbprint-211)
Could a wrong value in the Fixed ACPI Description Table be responsible for this behavior? I've extracted the facp table and disassembled it.
facp.dsl.txt
Inside there are actually values for the "sleep status register" and "sleep control register". I might be able to fix the FACP bug, but I might also try some different bioses of this laptop and see, whether the behavior stays the same.
lead4good
commented
Mar 26, 2018
|
Comparing my dmesg I cannot find similiar ACPI errors in my log: However there is one line which is similar: ACPI BIOS Warning (bug): Incorrect checksum in table [FACP] - 0x21, should be 0x57 (20170728/tbprint-211) Could a wrong value in the Fixed ACPI Description Table be responsible for this behavior? I've extracted the facp table and disassembled it. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mirrorway
Mar 27, 2018
My corebooted Thinkpad recently stopped resuming from suspend. Instead, it would restart.
I was able to workaround this by reverting the recent microcode update: dnf remove microcode_ctl and then removing ucode=scan from the Xen command line. I confirmed the microcode was reverted by running cat /proc/cpuinfo | grep microcode before and after.
More people might have this issue the next time they restart their laptops, when they load the new microcode...
mirrorway
commented
Mar 27, 2018
•
|
My corebooted Thinkpad recently stopped resuming from suspend. Instead, it would restart. I was able to workaround this by reverting the recent microcode update: More people might have this issue the next time they restart their laptops, when they load the new microcode... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lead4good
Mar 29, 2018
sorry, cant reproduce that. I've run it with stock Kabylake R microcode 0x70 and updated microcode 0x80. Problem persists.
lead4good
commented
Mar 29, 2018
|
sorry, cant reproduce that. I've run it with stock Kabylake R microcode 0x70 and updated microcode 0x80. Problem persists. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 29, 2018
Member
@lead4good what xen-hypervisor package do you have? 4.8.3-4 have problems with suspend, try downgrading to 4.8.3-3
|
@lead4good what xen-hypervisor package do you have? 4.8.3-4 have problems with suspend, try downgrading to 4.8.3-3 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lead4good
Mar 29, 2018
@marmarek
I've got 4.8.3-3 installed (4.0 r5 without any testing repo updates)
lead4good
commented
Mar 29, 2018
|
@marmarek |
andrewdavidwong
modified the milestones:
Release 4.0,
Release 4.0 updates
Mar 31, 2018
esote
referenced this issue
May 15, 2018
Closed
Cannot recover from suspend after recent dom0 update #3901
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evilaliv3
May 17, 2018
I report this same issue on a Thinkpad T480 and a fresh installed Qubes 4
I managed to get the suspend to work by removing the USB3 controller from sys-usb;
Obviously removing the USB3 controller i'm loosing possibility to attach USB devices so that this represents just a short term fix to enable suspend/resume to work correctly but proper fix should still be identified.
evilaliv3
commented
May 17, 2018
|
I report this same issue on a Thinkpad T480 and a fresh installed Qubes 4 I managed to get the suspend to work by removing the USB3 controller from sys-usb; |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lead4good
commented
May 21, 2018
|
@toserk does your laptop have discrete graphics? An nvidia mx150 by chance? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
toserk
commented
May 22, 2018
|
@lead4good |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maertsen
May 22, 2018
I can confirm the observations made by @evilaliv3 (Thinkpad T480, fresh installation, USB3-controller removed fixes issue).
I have experimented with unloading xhcd_pci within sys-usb, as a random guess, but this does not make any difference.
Update: it seems #3689 has more details concerning the T480, I will take my comments there. Sorry for the noise.
maertsen
commented
May 22, 2018
•
|
I can confirm the observations made by @evilaliv3 (Thinkpad T480, fresh installation, USB3-controller removed fixes issue). I have experimented with unloading xhcd_pci within sys-usb, as a random guess, but this does not make any difference. Update: it seems #3689 has more details concerning the T480, I will take my comments there. Sorry for the noise. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evilaliv3
Jun 2, 2018
I finally managed to get this working on my laptop (Thinkpad T480)
It required to configure the USB3 controllers to behave as USB2 controllers
Details on how to achieve this are descrived in: https://www.systutorials.com/241533/how-to-force-a-usb-3-0-port-to-work-in-usb-2-0-mode-in-linux/
Specifically on Thinkpad T480 this is achievable by issuing:
setpci -H1 -d 8086:7020 d0.l=0
setpci -H1 -d 8086:9d2f d0.l=0
The commands should be executed inside the sys-usb domain.
You could first them and if the fix works you may add them to /etc/rw/rc.local to have them be executed automatically at any boot of the domain.
evilaliv3
commented
Jun 2, 2018
|
I finally managed to get this working on my laptop (Thinkpad T480) It required to configure the USB3 controllers to behave as USB2 controllers Details on how to achieve this are descrived in: https://www.systutorials.com/241533/how-to-force-a-usb-3-0-port-to-work-in-usb-2-0-mode-in-linux/ Specifically on Thinkpad T480 this is achievable by issuing: The commands should be executed inside the sys-usb domain. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lead4good
commented
Jun 4, 2018
|
As of 4.8.3-8 the problem persists on my hardware. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maertsen
Jun 10, 2018
I've just tried the workaround suggested by @evilaliv3, both with xen-hypervisor at 4.8.3-3 and 4.8.3-7. In both cases, the systems freezes after wakeup, though I get to type some characters in the xscreensavers password prompt. After the freeze, the fan speeds up.
@evilaliv3, can you state your version of xen-hypervisor and other packages you deem relevant? I see mention of fixes in 4.8.3-8 in #3689, which may or may not be related. I'm waiting for 4.8.3-8 to land in qubes-dom0-current, though can test if required.
maertsen
commented
Jun 10, 2018
|
I've just tried the workaround suggested by @evilaliv3, both with xen-hypervisor at 4.8.3-3 and 4.8.3-7. In both cases, the systems freezes after wakeup, though I get to type some characters in the xscreensavers password prompt. After the freeze, the fan speeds up. @evilaliv3, can you state your version of xen-hypervisor and other packages you deem relevant? I see mention of fixes in 4.8.3-8 in #3689, which may or may not be related. I'm waiting for 4.8.3-8 to land in qubes-dom0-current, though can test if required. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evilaliv3
Jun 10, 2018
I'm with 4.8.3-7
As i wrote i continue to confirm that the fix above fixed the situation for me as the issue no longer happened.
evilaliv3
commented
Jun 10, 2018
|
I'm with 4.8.3-7 As i wrote i continue to confirm that the fix above fixed the situation for me as the issue no longer happened. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maertsen
Jun 15, 2018
I have just retested with 4.8.3-8. Issue remains.
The workaround to shutdown sys-usb prior to suspend also still works.
The usb 2 downgrade as suggested by @evilaliv3 does not work for me.
I am interested to hear pointers on how to further debug this issue.
maertsen
commented
Jun 15, 2018
|
I have just retested with 4.8.3-8. Issue remains. The workaround to shutdown sys-usb prior to suspend also still works. I am interested to hear pointers on how to further debug this issue. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maertsen
Jun 15, 2018
@evilaliv3 I just noticed that the setpci command does not appear to have any effect for 8086:9d2f as verified by lspci -xxxx. It remains at value 02 for d0. Is that different for you?
maertsen
commented
Jun 15, 2018
|
@evilaliv3 I just noticed that the setpci command does not appear to have any effect for 8086:9d2f as verified by lspci -xxxx. It remains at value 02 for d0. Is that different for you? |
lead4good commentedMar 16, 2018
•
edited
Edited 1 time
-
lead4good
edited Mar 29, 2018 (most recent)
Qubes OS version:
R4.0 rc5
Affected component(s):
Resume after suspend
Steps to reproduce the behavior:
About one of five times I put my laptop in suspend state, it fails to recover with screen staying black and fans spinning up to max.
Expected behavior:
Resume after suspend should work without sys-usb started.
Actual behavior:
Computer fails to recover with screen staying black and fans spinning up to max.
General notes:
A few times I was able to get the computer to recover by eg. plugging in the power cord or holding down the power button for a few seconds. Below you can see the sys log of the last time it happend. Be aware that I had tlp activated and a script that modifies intel p states and turbo mode depending on whether the charger was plugged in or not. The problem persists without, however I was not able to recover yet without tpl and the script enabled. I don't think these things are related however since the cpu soft lockup happens much earlier than the scripts in the wakeup process.
If the computer had successfully recovered such a lockup I wasn't able to reproduce the problem until reboot.
Syslog after recovery
Related issues:
#3689