Created attachment 182421 [details] dmesg [1.] One line summary PROBLEM: Lenovo b575e laptop freezes after resuming from suspend [2.] Full description I suspend the laptop (Lenovo b575e, BIOS HPET68WW(1.06)) from KDE Plasma Leave menu entry and after wakeup the display remains blank and never displays the desktop. I tried to ssh into the machine but it didn't respond. Looks like the machine is frozen. I'm using 64-bit Kubuntu 15.04 on this laptop. [3.] Keywords [4.] Kernel information [4.1.] Kernel version Linux version 4.2.0-999-generic (kernel@gomeisa) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) ) #201507092205 SMP Fri Jul 10 02:06:47 UTC 2015 [4.2.] Kernel .config file Attached [5.] Most recent kernel version which did not have the bug All kernels tI used had this bug. [6.] Output of Oops.. message [7.] A small shell script or example program which triggers the problem [8.] Environment Description: Ubuntu 15.04 Release: 15.04 [8.1.] Software Linux cita 4.2.0-999-generic #201507092205 SMP Fri Jul 10 02:06:47 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Gnu C 4.9.2 Gnu make 4.0 binutils 2.25 util-linux 2.25.2 mount debug module-init-tools 18 e2fsprogs 1.42.12 pcmciautils 018 PPP 2.4.6 Linux C Library 2.21 Dynamic linker (ldd) 2.21 Procps 3.3.9 Net-tools 1.60 Kbd 1.15.5 Sh-utils 8.23 wireless-tools 30 Modules Loaded cdc_mbim cdc_wdm cdc_ncm usbnet hidp hid vmw_vsock_vmci_transport vsock vmw_vmci cfg80211 rfcomm bnep rtsx_usb_ms memstick acer_wmi sparse_keymap snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi uvcvideo snd_hda_intel snd_hda_codec btusb btrtl btbcm videobuf2_vmalloc snd_hda_core snd_hwdep btintel snd_pcm videobuf2_memops thinkpad_acpi videobuf2_core nvram v4l2_common bluetooth kvm_amd snd_seq_midi videodev media kvm snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device joydev input_leds snd_timer k10temp serio_raw i2c_piix4 snd soundcore shpchp mac_hid parport_pc ppdev lp parport autofs4 rtsx_usb_sdmmc rtsx_usb amdkfd amd_iommu_v2 radeon psmouse ahci libahci i2c_algo_bit ttm drm_kms_helper video wmi r8169 drm mii [8.2.] Processor information processor : 0 vendor_id : AuthenticAMD cpu family : 20 model : 2 model name : AMD E2-2000 APU with Radeon(tm) HD Graphics stepping : 0 microcode : 0x500010d cpu MHz : 875.000 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 6 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter vmmcall bugs : fxsave_leak sysret_ss_attrs bogomips : 3493.68 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 1 vendor_id : AuthenticAMD cpu family : 20 model : 2 model name : AMD E2-2000 APU with Radeon(tm) HD Graphics stepping : 0 microcode : 0x500010d cpu MHz : 875.000 cache size : 512 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 6 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter vmmcall bugs : fxsave_leak sysret_ss_attrs bogomips : 3493.68 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate [8.3.] Module information cdc_mbim 16384 0 - Live 0x0000000000000000 cdc_wdm 20480 1 cdc_mbim, Live 0x0000000000000000 cdc_ncm 32768 1 cdc_mbim, Live 0x0000000000000000 usbnet 40960 2 cdc_mbim,cdc_ncm, Live 0x0000000000000000 hidp 24576 0 - Live 0x0000000000000000 hid 118784 1 hidp, Live 0x0000000000000000 vmw_vsock_vmci_transport 28672 0 - Live 0x0000000000000000 vsock 36864 1 vmw_vsock_vmci_transport, Live 0x0000000000000000 vmw_vmci 65536 1 vmw_vsock_vmci_transport, Live 0x0000000000000000 cfg80211 536576 0 - Live 0x0000000000000000 rfcomm 69632 12 - Live 0x0000000000000000 bnep 20480 2 - Live 0x0000000000000000 rtsx_usb_ms 20480 0 - Live 0x0000000000000000 memstick 20480 1 rtsx_usb_ms, Live 0x0000000000000000 acer_wmi 20480 0 - Live 0x0000000000000000 sparse_keymap 16384 1 acer_wmi, Live 0x0000000000000000 snd_hda_codec_realtek 81920 1 - Live 0x0000000000000000 snd_hda_codec_generic 73728 1 snd_hda_codec_realtek, Live 0x0000000000000000 snd_hda_codec_hdmi 49152 1 - Live 0x0000000000000000 uvcvideo 90112 0 - Live 0x0000000000000000 snd_hda_intel 36864 5 - Live 0x0000000000000000 snd_hda_codec 135168 4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel, Live 0x0000000000000000 btusb 45056 0 - Live 0x0000000000000000 btrtl 16384 1 btusb, Live 0x0000000000000000 btbcm 16384 1 btusb, Live 0x0000000000000000 videobuf2_vmalloc 16384 1 uvcvideo, Live 0x0000000000000000 snd_hda_core 65536 5 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec, Live 0x0000000000000000 snd_hwdep 16384 1 snd_hda_codec, Live 0x0000000000000000 btintel 16384 1 btusb, Live 0x0000000000000000 snd_pcm 102400 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core, Live 0x0000000000000000 videobuf2_memops 16384 1 videobuf2_vmalloc, Live 0x0000000000000000 thinkpad_acpi 86016 1 - Live 0x0000000000000000 videobuf2_core 49152 1 uvcvideo, Live 0x0000000000000000 nvram 16384 1 thinkpad_acpi, Live 0x0000000000000000 v4l2_common 16384 1 videobuf2_core, Live 0x0000000000000000 bluetooth 507904 26 hidp,rfcomm,bnep,btusb,btrtl,btbcm,btintel, Live 0x0000000000000000 kvm_amd 61440 0 - Live 0x0000000000000000 snd_seq_midi 16384 0 - Live 0x0000000000000000 videodev 176128 3 uvcvideo,videobuf2_core,v4l2_common, Live 0x0000000000000000 media 24576 2 uvcvideo,videodev, Live 0x0000000000000000 kvm 503808 1 kvm_amd, Live 0x0000000000000000 snd_seq_midi_event 16384 1 snd_seq_midi, Live 0x0000000000000000 snd_rawmidi 32768 1 snd_seq_midi, Live 0x0000000000000000 snd_seq 69632 2 snd_seq_midi,snd_seq_midi_event, Live 0x0000000000000000 snd_seq_device 16384 3 snd_seq_midi,snd_rawmidi,snd_seq, Live 0x0000000000000000 joydev 20480 0 - Live 0x0000000000000000 input_leds 16384 0 - Live 0x0000000000000000 snd_timer 32768 2 snd_pcm,snd_seq, Live 0x0000000000000000 k10temp 16384 0 - Live 0x0000000000000000 serio_raw 16384 0 - Live 0x0000000000000000 i2c_piix4 24576 0 - Live 0x0000000000000000 snd 81920 22 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,thinkpad_acpi,snd_rawmidi,snd_seq,snd_seq_device,snd_timer, Live 0x0000000000000000 soundcore 16384 1 snd, Live 0x0000000000000000 shpchp 36864 0 - Live 0x0000000000000000 mac_hid 16384 0 - Live 0x0000000000000000 parport_pc 32768 0 - Live 0x0000000000000000 ppdev 20480 0 - Live 0x0000000000000000 lp 20480 0 - Live 0x0000000000000000 parport 49152 3 parport_pc,ppdev,lp, Live 0x0000000000000000 autofs4 40960 2 - Live 0x0000000000000000 rtsx_usb_sdmmc 28672 0 - Live 0x0000000000000000 rtsx_usb 24576 2 rtsx_usb_ms,rtsx_usb_sdmmc, Live 0x0000000000000000 amdkfd 118784 1 - Live 0x0000000000000000 amd_iommu_v2 20480 1 amdkfd, Live 0x0000000000000000 radeon 1495040 9 - Live 0x0000000000000000 psmouse 122880 0 - Live 0x0000000000000000 ahci 36864 3 - Live 0x0000000000000000 libahci 32768 1 ahci, Live 0x0000000000000000 i2c_algo_bit 16384 1 radeon, Live 0x0000000000000000 ttm 94208 1 radeon, Live 0x0000000000000000 drm_kms_helper 126976 1 radeon, Live 0x0000000000000000 video 36864 2 acer_wmi,thinkpad_acpi, Live 0x0000000000000000 wmi 20480 1 acer_wmi, Live 0x0000000000000000 r8169 81920 0 - Live 0x0000000000000000 drm 356352 12 radeon,ttm,drm_kms_helper, Live 0x0000000000000000 mii 16384 2 usbnet,r8169, Live 0x0000000000000000 8.4.] Loaded driver and hardware information /proc/ioports: 0000-0cf7 : PCI Bus 0000:00 0000-001f : dma1 0020-0021 : pic1 0040-0043 : timer0 0050-0053 : timer1 0060-0060 : keyboard 0062-0062 : PNP0C09:00 0062-0062 : EC data 0064-0064 : keyboard 0066-0066 : PNP0C09:00 0066-0066 : EC cmd 0070-0071 : rtc0 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 00f0-00fe : PNP0C04:00 03c0-03df : vesafb 04d0-04d1 : pnp 00:02 0530-0537 : pnp 00:02 0800-0803 : ACPI PM1a_EVT_BLK 0804-0805 : ACPI PM1a_CNT_BLK 0808-080b : ACPI PM_TMR 0810-0815 : ACPI CPU throttle 0820-0827 : ACPI GPE0_BLK 0830-0830 : pnp 00:02 0840-0847 : pnp 00:02 0b00-0b1f : pnp 00:02 0b20-0b3f : pnp 00:02 0c00-0c01 : pnp 00:02 0c14-0c14 : pnp 00:02 0c50-0c52 : pnp 00:02 0cd0-0cd1 : pnp 00:02 0cd2-0cd3 : pnp 00:02 0cd4-0cd5 : pnp 00:02 0cd6-0cd7 : pnp 00:02 0cd8-0cdf : pnp 00:02 0cf8-0cff : PCI conf1 0d00-ffff : PCI Bus 0000:00 0f50-0f51 : pnp 00:00 1000-1fff : PCI Bus 0000:01 1000-10ff : 0000:01:00.0 1000-10ff : r8169 2000-20ff : 0000:00:01.0 2100-210f : 0000:00:11.0 2100-210f : ahci 2110-2117 : 0000:00:11.0 2110-2117 : ahci 2118-211f : 0000:00:11.0 2118-211f : ahci 2120-2123 : 0000:00:11.0 2120-2123 : ahci 2124-2127 : 0000:00:11.0 2124-2127 : ahci 8100-81ff : pnp 00:02 8200-82ff : pnp 00:02 /proc/iomem: 00000000-00000fff : reserved 00001000-0009dfff : System RAM 0009e000-0009ffff : reserved 000a0000-000bffff : PCI Bus 0000:00 000c0000-000cedff : Video ROM 000c0000-000c1fff : PCI Bus 0000:00 000c2000-000c3fff : PCI Bus 0000:00 000c4000-000c5fff : PCI Bus 0000:00 000c6000-000c7fff : PCI Bus 0000:00 000c8000-000c9fff : PCI Bus 0000:00 000ca000-000cbfff : PCI Bus 0000:00 000cc000-000cdfff : PCI Bus 0000:00 000d0000-000d1fff : PCI Bus 0000:00 000d2000-000d3fff : PCI Bus 0000:00 000d4000-000d5fff : PCI Bus 0000:00 000d6000-000d7fff : PCI Bus 0000:00 000d8000-000d9fff : PCI Bus 0000:00 000da000-000dbfff : PCI Bus 0000:00 000dc000-000ddfff : PCI Bus 0000:00 000de000-000dffff : PCI Bus 0000:00 000e0000-000fffff : reserved 000e0000-000e1fff : PCI Bus 0000:00 000e2000-000e3fff : PCI Bus 0000:00 000e4000-000e5fff : PCI Bus 0000:00 000e6000-000e7fff : PCI Bus 0000:00 000e8000-000e9fff : PCI Bus 0000:00 000ea000-000ebfff : PCI Bus 0000:00 000ec000-000edfff : PCI Bus 0000:00 000ee000-000effff : PCI Bus 0000:00 000f0000-000fffff : System ROM 00100000-d2973fff : System RAM 01000000-017cec3b : Kernel code 017cec3c-01d3547f : Kernel data 01eaf000-01ff1fff : Kernel bss d2974000-dea30fff : reserved dea31000-deb32fff : ACPI Non-volatile Storage deb33000-debb2fff : ACPI Tables debb3000-dfffffff : reserved e0000000-f7ffffff : PCI Bus 0000:00 e0000000-efffffff : 0000:00:01.0 f0000000-f00fffff : PCI Bus 0000:01 f0000000-f0003fff : 0000:01:00.0 f0000000-f0003fff : r8169 f0004000-f0004fff : 0000:01:00.0 f0004000-f0004fff : r8169 f0100000-f01fffff : PCI Bus 0000:02 f0100000-f0103fff : 0000:02:00.0 f0200000-f023ffff : 0000:00:01.0 f0240000-f0243fff : 0000:00:14.2 f0240000-f0243fff : ICH HD audio f0244000-f0247fff : 0000:00:01.1 f0244000-f0247fff : ICH HD audio f0248000-f0249fff : 0000:00:10.0 f0248000-f0249fff : xhci-hcd f024a000-f024afff : 0000:00:14.5 f024a000-f024afff : ohci_hcd f024b000-f024bfff : 0000:00:13.0 f024b000-f024bfff : ohci_hcd f024c000-f024cfff : 0000:00:12.0 f024c000-f024cfff : ohci_hcd f024d000-f024d7ff : 0000:00:11.0 f024d000-f024d7ff : ahci f024d800-f024d8ff : 0000:00:13.2 f024d800-f024d8ff : ehci_hcd f024d900-f024d9ff : 0000:00:12.2 f024d900-f024d9ff : ehci_hcd f8000000-fbffffff : PCI MMCONFIG 0000 [bus 00-3f] f8000000-fbffffff : pnp 00:00 fc000000-fdffffff : PCI Bus 0000:00 fe800000-fe800fff : reserved fec00000-fecfffff : reserved fec00000-fec003ff : IOAPIC 0 fec10000-fec1001f : pnp 00:03 fed00000-fed003ff : HPET 2 fed00000-fed003ff : pnp 00:03 fed40000-fed44fff : PCI Bus 0000:00 fed61000-fed613ff : pnp 00:03 fed80000-fed80fff : reserved fed80000-fed80fff : pnp 00:03 fee00000-fee00fff : Local APIC fee00000-fee00fff : pnp 00:00 ffc00000-ffffffff : reserved ffe00000-ffffffff : pnp 00:03 100000000-106ffffff : System RAM 107000000-107ffffff : RAM buffer [8.5.] PCI information Attached [8.6.] SCSI information Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: TOSHIBA MQ01ABF0 Rev: 7E Type: Direct-Access ANSI SCSI revision: 05 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: PLDS Model: DVD-RW DS8A9SH Rev: EL3A Type: CD-ROM ANSI SCSI revision: 05 [8.7.] Other information that might be relevant [X.] Other notes, patches, fixes, workarounds This sarted as Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1303131
Created attachment 182431 [details] kernel-config
Created attachment 182441 [details] lspci
Created attachment 182451 [details] acpidump
Can you please take a look at this document: https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt and do some testing to see if it is a device driver issue? Thanks.
I did some testing with s2ram and writing different test modes into /sys/power/pm_test. All worked just fine, including the "core" mode. I also tried the Suspend option in KDE Plasma Leave menu and after 5 seconds the laptop always woke up. But when I wrote "none" and tried with this one the bug could be reproduced and the laptop froze when it should wake up.
Perhaps it has something to do with GPU, can you please add nomodeset to kernel cmdline and then boot into console mode and test again? I'm not sure if the screen can be turned on after resume, so please use ssh to login to see if the machine is back or dead.
I added the nomodeset and booted into console mode and stopped X and then executed s2ram. The machine still freezes on wakup. Ping and ssh don't work, I also tried to press the CapsLock and it didn't switch the LED.
Can I help with any other information?
I don't have any idea what may be the cause. I think you can test some kernels to see if there is any working kernel
Any update on the testing of other kernels? Is there a working one(hopefully)?
Thanks for reminding me about this. I didn't try different kernels yet (except for a few versions starting with 3.14). I will try to test a few older versions during the weekend.
ping
I tried with about 10 kernels which were the latest in their version series (4.1.6, 4.0.9 ...) of kernels and no luck with any of them. Will continue with older versions next weekend when I will hopefully have more time.
BTW, I suppose Windows works well here? And does the vendor provide any BIOS update on their website? Maybe that could help.
Can you try acpi_sleep=nonvs boot parameter?