fwts suspend make the system fail to resume but gnome shell suspend could resume

Bug #1824135 reported by Taihsiang Ho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Won't Fix
Undecided
Unassigned
Firmware Test Suite
Won't Fix
Undecided
Unassigned

Bug Description

Distribution: Cosmic desktop (could reproduce similar issue on Bionic)
Kernel: 4.18.0-18-generic
Hardware: Dell Precision 5530 (CID 201807-26342)
fwts(18.03.00-0ubuntu4)

[Steps to Reproduce]

fwts -q --stdout-summary -r /tmp/fwts_results.log s3 --s3-sleep-delay 30 --s3-device-check --s3-device-check-delay 45

[Expected Result]

The system will resume few minutes later

[Actual Result]

Black screen. Kernel has no response (alt + sysreq + b malfunctions).

However, if we suspend the system over the desktop default suspend applet (launcher --> suspend) over gnoem shell, the system could be back normally and seems no function lost.

[More Information]

fwts(18.03.00-0ubuntu4)

$ dpkg -l '*plainbox*' '*checkbox*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================================================-==============================-==============================-============================================================================================================
ii checkbox-ng 1.3.0~ppa~ubuntu18.10.1 all CheckBoxNG test runner
un plainbox <none> <none> (no description available)
ii plainbox-insecure-policy 1.3.0~ppa~ubuntu18.10.1 all policykit policy required to use CheckBoxNG (insecure version)
ii plainbox-provider-checkbox 0.47.0~ppa~ubuntu18.10.1 amd64 CheckBox provider for PlainBox
ii plainbox-provider-resource-generic 0.39.0~ppa~ubuntu18.10.1 amd64 CheckBox generic resource jobs provider
ii plainbox-provider-sru 1.13.0~ppa~ubuntu18.10.1 all CheckBox SRU jobs provider
un plainbox-secure-policy <none> <none> (no description available)
ii python3-checkbox-ng 1.3.0~ppa~ubuntu18.10.1 all CheckBoxNG test runner (Python 3 library)
ii python3-checkbox-support 0.40.0~ppa~ubuntu18.10.1 all collection of Python modules used by PlainBox providers
un python3-plainbox <none> <none> (no description available)
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu13.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1850 F.... pulseaudio
DistroRelease: Ubuntu 18.10
InstallationDate: Installed on 2019-03-11 (29 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
MachineType: Dell Inc. Precision 5530
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-18-generic root=UUID=f94e3892-5736-4eb5-a2d7-dda34b1ffc32 ro
ProcVersionSignature: Ubuntu 4.18.0-18.19-generic 4.18.20
RelatedPackageVersions:
 linux-restricted-modules-4.18.0-18-generic N/A
 linux-backports-modules-4.18.0-18-generic N/A
 linux-firmware 1.175.3
Tags: cosmic uec-images
Uname: Linux 4.18.0-18-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/25/2018
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.7.0
dmi.board.name: 0184M6
dmi.board.vendor: Dell Inc.
dmi.board.version: X00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.7.0:bd12/25/2018:svnDellInc.:pnPrecision5530:pvr:rvnDellInc.:rn0184M6:rvrX00:cvnDellInc.:ct10:cvr:
dmi.product.family: Precision
dmi.product.name: Precision 5530
dmi.product.sku: 087D
dmi.sys.vendor: Dell Inc.

Revision history for this message
Taihsiang Ho (tai271828) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected cosmic uec-images
description: updated
Revision history for this message
Taihsiang Ho (tai271828) wrote : CRDA.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : IwConfig.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : Lspci.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : Lsusb.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : ProcEnviron.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : ProcModules.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : PulseList.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : RfKill.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : UdevDb.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : WifiSyslog.txt

apport information

Revision history for this message
Taihsiang Ho (tai271828) wrote : Re: suspend/suspend_advanced_auto hangs but desktop default applet suspend won't

I feel like it is caused by fwts indirectly because the suspend/suspend_advanced_auto job calls checkbox-support-fwts_test to suspend.

Revision history for this message
Taihsiang Ho (tai271828) wrote :

If we tried to dump /var/log/syslog when calling

checkbox-support-fwts_test -f none -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45

it will get

Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 kernel: [ 388.704583] fwts: Starting fwts suspend
Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 kernel: [ 388.704589] fwts: Suspend
Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 NetworkManager[1211]: <info> [1554893351.9477] device (wlp59s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 wpa_supplicant[1261]: nl80211: deinit ifname=p2p-dev-wlp59s0 disabled_11b_rates=0
Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 systemd[1]: Reached target Sleep.
Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 systemd[1]: Starting Suspend...
Apr 10 06:49:11 oem-4-15-somerville-berlinetta-p-mlk-cfl-201807-26342 systemd-sleep[2930]: Suspending system...

There is no more log even I tried to press keys to wake up the system because the system died.

Taihsiang Ho (tai271828)
description: updated
Revision history for this message
Taihsiang Ho (tai271828) wrote :

It looks like this is an issue directly related to fwts because I could reproduce the issue with

"fwts -q --stdout-summary -r /tmp/fwts_results.log s3 --s3-sleep-delay 30 --s3-device-check --s3-device-check-delay 45"

called by checkbox-support-fwts_test

Changed in plainbox-provider-checkbox:
status: New → Triaged
summary: - suspend/suspend_advanced_auto hangs but desktop default applet suspend
- won't
+ fwts suspend make the system fail to resume but gnome shell suspend
+ could resume
description: updated
Revision history for this message
Taihsiang Ho (tai271828) wrote :

"systemctl suspend" could resume the system from suspending status successfully.

Revision history for this message
Alex Hung (alexhung) wrote :

FWTS uses "g_dbus_proxy_call_sync" to perform suspend. This can be related to gnome (and therefore related to VGA driver).. Let's try 19.04 (gnome shell 3.22) again.

This can probably be done with Ubuntu live + fwts 19.03.

Revision history for this message
Alex Hung (alexhung) wrote :

I also notice it is using nouveau. Any chance we can try with NV's proprietary driver too?

Revision history for this message
Taihsiang Ho (tai271828) wrote :

It's able to reproduce with fwts (19.03.00-0ubuntu1~b).

bionic 4.15.0-50-generic

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================================================-==============================-==============================-============================================================================================================
ii checkbox-ng 1.3.0~ppa~ubuntu18.04.1 all CheckBoxNG test runner
ii fwts 19.03.00-0ubuntu1~b amd64 FirmWare Test Suite
un plainbox <none> <none> (no description available)
ii plainbox-insecure-policy 1.3.0~ppa~ubuntu18.04.1 all policykit policy required to use CheckBoxNG (insecure version)
ii plainbox-provider-checkbox 0.47.0~ppa~ubuntu18.04.1 amd64 CheckBox provider for PlainBox
ii plainbox-provider-resource-generic 0.39.0~ppa~ubuntu18.04.1 amd64 CheckBox generic resource jobs provider
ii plainbox-provider-sru 1.13.0~ppa~ubuntu18.04.1 all CheckBox SRU jobs provider
un plainbox-secure-policy <none> <none> (no description available)
ii python3-checkbox-ng 1.3.0~ppa~ubuntu18.04.1 all CheckBoxNG test runner (Python 3 library)
ii python3-checkbox-support 0.40.0~ppa~ubuntu18.04.1 all collection of Python modules used by PlainBox providers
un python3-plainbox <none>

Revision history for this message
Taihsiang Ho (tai271828) wrote :

log of 4.15.0-52-generic bionic and the command:

sudo fwts -q --stdout-summary -r ~/fwts_results.log s3 --s3-sleep-delay 30 --s3-device-check --s3-device-check-delay 45 --pm-method=<logind, sysfs, pm-utils>

http://paste.ubuntu.com/p/2nYYZpmtrN/

logind: black screen, alt+b+print-screen will reboot.
sysfs and pm-utils: screen froze, alt+b+print-screen will reboot.

Revision history for this message
Taihsiang Ho (tai271828) wrote :

log of 4.15.0-52-generic bionic with nvidia-390 installed and the command:

sudo fwts -q --stdout-summary -r ~/fwts_results.log s3 --s3-sleep-delay 30 --s3-device-check --s3-device-check-delay 45 --pm-method=<logind, sysfs, pm-utils>

http://paste.ubuntu.com/p/hF2fbwTqWW/

logind: fail to resume with black screen, or resume with frozen screen (alt+b+print-screen works)
sysfs: fail to resume with black screen (alt+b+print-screen still work)
pm-utils: resume with black screen or frozen screen (2 tests out of 2)

btw,

desktop ui (suspend applet): fail to resume with black screen (alt+b+print-screen has no response)
sudo systemctl suspend: resume with black screen and alt+b+print-screen works

Revision history for this message
Taihsiang Ho (tai271828) wrote :

disco (5.0.0-17-generic) could reproduce this issue.

ui, systemctl, pm-utils of fwts: resume successfully

logind and sysfs of fwts: fail to resume from suspend

log of "sudo fwts -q --stdout-summary -r ~/fwts_results.log s3 --s3-sleep-delay 30 --s3-device-check --s3-device-check-delay 45 --pm-method=<logind, sysfs, pm-utils>":

http://paste.ubuntu.com/p/b54DPsBDQJ/

Alex Hung (alexhung)
Changed in fwts:
status: New → Won't Fix
Changed in plainbox-provider-checkbox:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.