Hello. I have a Lenovo T420 and I am running arch linux. My problem is this. After about 24 hours of normal usage (does not matter how many suspend/resume cycles) my computer fails to enter sleep mode. This behavior is only exhibited if suspending by closing the lid. Note that this behavior is exhibited exactly the same by both systems: normal kernel suspend and uswsusp. Whatsmore, if I try (after the failed suspend) # echo "mem" > /sys/power/state -bash: echo: write error: Device or resource busy What is most isteresting is that if I find the pid of s2ram (when using uswsusp) and run # strace -p [pid_of_s2ram] the system immediately suspends! (And this is what strace -p [s2ram_pid] shows: I see the final trace lines just *after* s2ram tries to write "mem" to /sys/power/state) This is the full dmesg after a failed suspend and the next by using # strace -p [s2ram_pid] https://dl.dropbox.com/u/63420/dmesg.notok.aftersuspend.txt I have KMS loaded with i915 driver (my laptop uses intel HD3000) There is also a thread running in Arch Forums, mabe something rings a bell from there: https://bbs.archlinux.org/viewtopic.php?id=144381 lsmod: Module Size Used by fuse 68768 4 xt_hl 1369 6 ip6t_rt 2112 3 nf_conntrack_ipv6 6650 6 nf_defrag_ipv6 6401 1 nf_conntrack_ipv6 ipt_REJECT 2281 1 xt_limit 2041 1 xt_tcpudp 2471 20 xt_addrtype 2853 4 xt_state 1295 12 ip6table_filter 1396 1 ip6_tables 18198 2 ip6table_filter,ip6t_rt nf_conntrack_netbios_ns 1077 0 nf_conntrack_broadcast 1285 1 nf_conntrack_netbios_ns nf_nat_ftp 1668 0 nf_nat 15100 1 nf_nat_ftp nf_conntrack_ipv4 6871 8 nf_nat nf_defrag_ipv4 1339 1 nf_conntrack_ipv4 nf_conntrack_ftp 6261 1 nf_nat_ftp nf_conntrack 61584 8 nf_nat_ftp,nf_conntrack_netbios_ns,nf_nat,xt_state,nf_conntrack_broadcast,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_ipv6 iptable_filter 1456 1 ip_tables 16946 1 iptable_filter x_tables 16954 11 ip6table_filter,xt_hl,ip_tables,xt_tcpudp,xt_limit,xt_state,iptable_filter,ip6t_rt,ipt_REJECT,ip6_tables,xt_addrtype joydev 9991 0 snd_hda_codec_hdmi 23672 1 snd_hda_codec_conexant 46154 1 uvcvideo 69437 0 videobuf2_vmalloc 2468 1 uvcvideo videobuf2_memops 2246 1 videobuf2_vmalloc videobuf2_core 20415 1 uvcvideo arc4 1410 2 videodev 93086 1 uvcvideo media 10213 2 uvcvideo,videodev aesni_intel 43154 0 aes_x86_64 7508 1 aesni_intel aes_generic 26138 2 aesni_intel,aes_x86_64 ghash_clmulni_intel 4237 0 cryptd 8741 2 ghash_clmulni_intel,aesni_intel coretemp 5654 0 iwlwifi 311178 0 snd_hda_intel 24053 5 crc32c_intel 1987 0 snd_hda_codec 94305 3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel snd_hwdep 6300 1 snd_hda_codec mac80211 395680 1 iwlwifi thinkpad_acpi 62497 1 sdhci_pci 10833 0 snd_pcm 74958 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel sdhci 23854 1 sdhci_pci nvram 5906 1 thinkpad_acpi snd_page_alloc 7217 2 snd_pcm,snd_hda_intel mmc_core 82070 2 sdhci,sdhci_pci serio_raw 4653 0 cfg80211 170106 2 iwlwifi,mac80211 snd_timer 18966 1 snd_pcm iTCO_wdt 12813 0 i2c_i801 8180 0 psmouse 70792 0 iTCO_vendor_support 1929 1 iTCO_wdt rfkill 15604 3 cfg80211,thinkpad_acpi snd 58997 20 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_hda_codec,snd_hda_intel,thinkpad_acpi e1000e 146570 0 thermal 7959 0 microcode 12185 0 soundcore 5410 1 snd battery 6517 0 ac 2376 0 vboxdrv 1792406 0 evdev 9754 9 cpufreq_powersave 990 0 acpi_cpufreq 5933 1 mperf 1299 1 acpi_cpufreq processor 26567 1 acpi_cpufreq nfs 276056 0 nfs_acl 2359 1 nfs lockd 62987 1 nfs auth_rpcgss 32327 1 nfs sunrpc 184998 4 nfs,auth_rpcgss,lockd,nfs_acl fscache 41059 1 nfs ext4 424175 1 crc16 1359 1 ext4 jbd2 73919 1 ext4 mbcache 5977 1 ext4 sd_mod 29239 3 ahci 20549 2 libahci 20023 1 ahci libata 167611 2 ahci,libahci ehci_hcd 41026 0 scsi_mod 132974 2 libata,sd_mod usbcore 147565 3 uvcvideo,ehci_hcd usb_common 954 1 usbcore i915 438112 3 video 11307 1 i915 button 4502 1 i915 i2c_algo_bit 5391 1 i915 intel_agp 10936 1 i915 intel_gtt 14047 3 i915,intel_agp drm_kms_helper 33051 1 i915 drm 208958 4 i915,drm_kms_helper i2c_core 20369 6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev /proc/cpuinfo: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz stepping : 7 microcode : 0x28 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 4586.08 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz stepping : 7 microcode : 0x28 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 4586.08 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz stepping : 7 microcode : 0x28 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 4586.08 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz stepping : 7 microcode : 0x28 cpu MHz : 800.000 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 4586.08 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: /proc/modules fuse 68768 4 - Live 0xffffffffa071b000 xt_hl 1369 6 - Live 0xffffffffa0717000 ip6t_rt 2112 3 - Live 0xffffffffa0713000 nf_conntrack_ipv6 6650 6 - Live 0xffffffffa070d000 nf_defrag_ipv6 6401 1 nf_conntrack_ipv6, Live 0xffffffffa0708000 ipt_REJECT 2281 1 - Live 0xffffffffa0704000 xt_limit 2041 1 - Live 0xffffffffa0700000 xt_tcpudp 2471 20 - Live 0xffffffffa06fc000 xt_addrtype 2853 4 - Live 0xffffffffa06f8000 xt_state 1295 12 - Live 0xffffffffa0612000 ip6table_filter 1396 1 - Live 0xffffffffa0583000 ip6_tables 18198 2 ip6t_rt,ip6table_filter, Live 0xffffffffa06c3000 nf_conntrack_netbios_ns 1077 0 - Live 0xffffffffa050f000 nf_conntrack_broadcast 1285 1 nf_conntrack_netbios_ns, Live 0xffffffffa0502000 nf_nat_ftp 1668 0 - Live 0xffffffffa0319000 nf_nat 15100 1 nf_nat_ftp, Live 0xffffffffa069e000 nf_conntrack_ipv4 6871 8 nf_nat, Live 0xffffffffa031f000 nf_defrag_ipv4 1339 1 nf_conntrack_ipv4, Live 0xffffffffa0312000 nf_conntrack_ftp 6261 1 nf_nat_ftp, Live 0xffffffffa02ea000 nf_conntrack 61584 8 nf_conntrack_ipv6,xt_state,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp, Live 0xffffffffa06e7000 iptable_filter 1456 1 - Live 0xffffffffa00f6000 ip_tables 16946 1 iptable_filter, Live 0xffffffffa068e000 x_tables 16954 11 xt_hl,ip6t_rt,ipt_REJECT,xt_limit,xt_tcpudp,xt_addrtype,xt_state,ip6table_filter,ip6_tables,iptable_filter,ip_tables, Live 0xffffffffa05f9000 joydev 9991 0 - Live 0xffffffffa0158000 snd_hda_codec_hdmi 23672 1 - Live 0xffffffffa0537000 snd_hda_codec_conexant 46154 1 - Live 0xffffffffa062e000 uvcvideo 69437 0 - Live 0xffffffffa06d5000 videobuf2_vmalloc 2468 1 uvcvideo, Live 0xffffffffa04fd000 videobuf2_memops 2246 1 videobuf2_vmalloc, Live 0xffffffffa04e0000 videobuf2_core 20415 1 uvcvideo, Live 0xffffffffa06cc000 arc4 1410 2 - Live 0xffffffffa02f5000 videodev 93086 1 uvcvideo, Live 0xffffffffa06ab000 media 10213 2 uvcvideo,videodev, Live 0xffffffffa06a3000 aesni_intel 43154 0 - Live 0xffffffffa0601000 aes_x86_64 7508 1 aesni_intel, Live 0xffffffffa02ed000 aes_generic 26138 2 aesni_intel,aes_x86_64, Live 0xffffffffa04ea000 ghash_clmulni_intel 4237 0 - Live 0xffffffffa0145000 cryptd 8741 2 aesni_intel,ghash_clmulni_intel, Live 0xffffffffa029a000 coretemp 5654 0 - Live 0xffffffffa01c8000 iwlwifi 311178 0 - Live 0xffffffffa0641000 snd_hda_intel 24053 5 - Live 0xffffffffa04d9000 crc32c_intel 1987 0 - Live 0xffffffffa00f2000 snd_hda_codec 94305 3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel, Live 0xffffffffa0615000 snd_hwdep 6300 1 snd_hda_codec, Live 0xffffffffa00ef000 mac80211 395680 1 iwlwifi, Live 0xffffffffa0597000 thinkpad_acpi 62497 1 - Live 0xffffffffa0586000 sdhci_pci 10833 0 - Live 0xffffffffa057f000 snd_pcm 74958 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec, Live 0xffffffffa056b000 sdhci 23854 1 sdhci_pci, Live 0xffffffffa04e3000 nvram 5906 1 thinkpad_acpi, Live 0xffffffffa02f0000 snd_page_alloc 7217 2 snd_hda_intel,snd_pcm, Live 0xffffffffa0297000 mmc_core 82070 2 sdhci_pci,sdhci, Live 0xffffffffa026f000 serio_raw 4653 0 - Live 0xffffffffa0142000 cfg80211 170106 2 iwlwifi,mac80211, Live 0xffffffffa0540000 snd_timer 18966 1 snd_pcm, Live 0xffffffffa00e9000 iTCO_wdt 12813 0 - Live 0xffffffffa018f000 i2c_i801 8180 0 - Live 0xffffffffa015c000 psmouse 70792 0 - Live 0xffffffffa02ff000 iTCO_vendor_support 1929 1 iTCO_wdt, Live 0xffffffffa006a000 rfkill 15604 3 thinkpad_acpi,cfg80211, Live 0xffffffffa0060000 snd 58997 20 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,thinkpad_acpi,snd_pcm,snd_timer, Live 0xffffffffa0132000 e1000e 146570 0 - Live 0xffffffffa0512000 thermal 7959 0 - Live 0xffffffffa050c000 microcode 12185 0 - Live 0xffffffffa0505000 soundcore 5410 1 snd, Live 0xffffffffa04ff000 battery 6517 0 - Live 0xffffffffa04fa000 ac 2376 0 - Live 0xffffffffa04f6000 vboxdrv 1792406 0 - Live 0xffffffffa0322000 (O) evdev 9754 9 - Live 0xffffffffa031b000 cpufreq_powersave 990 0 - Live 0xffffffffa0317000 acpi_cpufreq 5933 1 - Live 0xffffffffa0194000 mperf 1299 1 acpi_cpufreq, Live 0xffffffffa015f000 processor 26567 1 acpi_cpufreq, Live 0xffffffffa02f7000 nfs 276056 0 - Live 0xffffffffa029e000 nfs_acl 2359 1 nfs, Live 0xffffffffa00f4000 lockd 62987 1 nfs, Live 0xffffffffa0286000 auth_rpcgss 32327 1 nfs, Live 0xffffffffa0186000 sunrpc 184998 4 nfs,nfs_acl,lockd,auth_rpcgss, Live 0xffffffffa0240000 fscache 41059 1 nfs, Live 0xffffffffa014c000 ext4 424175 1 - Live 0xffffffffa01d7000 crc16 1359 1 ext4, Live 0xffffffffa0071000 jbd2 73919 1 ext4, Live 0xffffffffa011e000 mbcache 5977 1 ext4, Live 0xffffffffa0043000 sd_mod 29239 3 - Live 0xffffffffa00e0000 ahci 20549 2 - Live 0xffffffffa01cc000 libahci 20023 1 ahci, Live 0xffffffffa01c2000 libata 167611 2 ahci,libahci, Live 0xffffffffa0198000 ehci_hcd 41026 0 - Live 0xffffffffa004a000 scsi_mod 132974 2 sd_mod,libata, Live 0xffffffffa0164000 usbcore 147565 3 uvcvideo,ehci_hcd, Live 0xffffffffa00f8000 usb_common 954 1 usbcore, Live 0xffffffffa0009000 i915 438112 3 - Live 0xffffffffa0074000 video 11307 1 i915, Live 0xffffffffa0046000 button 4502 1 i915, Live 0xffffffffa0040000 i2c_algo_bit 5391 1 i915, Live 0xffffffffa0006000 intel_agp 10936 1 i915, Live 0xffffffffa006d000 intel_gtt 14047 3 i915,intel_agp, Live 0xffffffffa0065000 drm_kms_helper 33051 1 i915, Live 0xffffffffa0056000 drm 208958 4 i915,drm_kms_helper, Live 0xffffffffa000b000 i2c_core 20369 6 videodev,i2c_i801,i915,i2c_algo_bit,drm_kms_helper,drm, Live 0xffffffffa0000000 /proc/iomem 00000000-0000ffff : reserved 00010000-0009d7ff : System RAM 0009d800-0009ffff : reserved 000a0000-000bffff : PCI Bus 0000:00 000c0000-000c7fff : Video ROM 000c8000-000cbfff : pnp 00:00 000cc000-000cffff : pnp 00:00 000d0000-000d3fff : pnp 00:00 000d4000-000d7fff : pnp 00:00 000d8000-000dbfff : pnp 00:00 000dc000-000dffff : pnp 00:00 000e0000-000fffff : reserved 000f0000-000fffff : System ROM 00100000-1fffffff : System RAM 01000000-0146e9c2 : Kernel code 0146e9c3-018a38ff : Kernel data 01963000-01aa3fff : Kernel bss 20000000-201fffff : reserved 20200000-3fffffff : System RAM 40000000-401fffff : reserved 40200000-da99efff : System RAM da99f000-dae9efff : reserved dae9f000-daf9efff : ACPI Non-volatile Storage daf9f000-daffefff : ACPI Tables dafff000-daffffff : System RAM db000000-df9fffff : reserved dfa00000-febfffff : PCI Bus 0000:00 e0000000-efffffff : 0000:00:02.0 f0000000-f03fffff : 0000:00:02.0 f0400000-f0bfffff : PCI Bus 0000:0d f0c00000-f13fffff : PCI Bus 0000:0d f0c00000-f0c000ff : 0000:0d:00.0 f0c00000-f0c000ff : mmc0 f1400000-f14fffff : PCI Bus 0000:03 f1400000-f1401fff : 0000:03:00.0 f1400000-f1401fff : iwlwifi f1500000-f151ffff : 0000:00:19.0 f1500000-f151ffff : e1000e f1520000-f1523fff : 0000:00:1b.0 f1520000-f1523fff : ICH HD audio f1524000-f15240ff : 0000:00:1f.3 f1525000-f152500f : 0000:00:16.0 f1528000-f15287ff : 0000:00:1f.2 f1528000-f15287ff : ahci f1529000-f15293ff : 0000:00:1d.0 f1529000-f15293ff : ehci_hcd f152a000-f152a3ff : 0000:00:1a.0 f152a000-f152a3ff : ehci_hcd f152b000-f152bfff : 0000:00:19.0 f152b000-f152bfff : e1000e f8000000-fbffffff : PCI MMCONFIG 0000 [bus 00-3f] f8000000-fbffffff : reserved f8000000-fbffffff : pnp 00:02 fec00000-fec00fff : reserved fec00000-fec003ff : IOAPIC 0 fed00000-fed003ff : HPET 0 fed08000-fed08fff : reserved fed10000-fed19fff : reserved fed10000-fed13fff : pnp 00:02 fed18000-fed18fff : pnp 00:02 fed19000-fed19fff : pnp 00:02 fed1c000-fed1ffff : reserved fed1c000-fed1ffff : pnp 00:02 fed40000-fed4bfff : PCI Bus 0000:00 fed40000-fed44fff : pnp 00:02 fed45000-fed4bfff : pnp 00:02 fee00000-fee00fff : Local APIC fee00000-fee00fff : reserved ffd20000-ffffffff : reserved 100000000-11e5fffff : System RAM 11e600000-11fffffff : RAM buffer /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 : EC data 0064-0064 : keyboard 0066-0066 : EC cmd 0070-0071 : rtc0 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 03c0-03df : vga+ 0400-047f : pnp 00:02 0400-0403 : ACPI PM1a_EVT_BLK 0404-0405 : ACPI PM1a_CNT_BLK 0408-040b : ACPI PM_TMR 0410-0415 : ACPI CPU throttle 0420-042f : ACPI GPE0_BLK 0430-0433 : iTCO_wdt 0450-0450 : ACPI PM2_CNT_BLK 0460-047f : iTCO_wdt 0500-057f : pnp 00:02 0800-080f : pnp 00:02 0cf8-0cff : PCI conf1 0d00-ffff : PCI Bus 0000:00 15e0-15ef : pnp 00:02 1600-167f : pnp 00:02 3000-3fff : PCI Bus 0000:0d 4000-403f : 0000:00:02.0 4060-407f : 0000:00:1f.2 4060-407f : ahci 4080-409f : 0000:00:19.0 40a0-40a7 : 0000:00:1f.2 40a0-40a7 : ahci 40a8-40af : 0000:00:1f.2 40a8-40af : ahci 40b8-40bb : 0000:00:1f.2 40b8-40bb : ahci 40bc-40bf : 0000:00:1f.2 40bc-40bf : ahci efa0-efbf : 0000:00:1f.3 efa0-efbf : i801_smbus lspci -vvv 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) Subsystem: Lenovo Device 21ce Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx- Latency: 0 Capabilities: <access denied> Kernel driver in use: agpgart-intel 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Lenovo Device 21ce Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 40 Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M] Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M] Region 4: I/O ports at 4000 [size=64] Expansion ROM at <unassigned> [disabled] Capabilities: <access denied> Kernel driver in use: i915 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) Subsystem: Lenovo Device 21ce Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+ Latency: 0 Interrupt: pin A routed to IRQ 11 Region 0: Memory at f1525000 (64-bit, non-prefetchable) [size=16] Capabilities: <access denied> 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) Subsystem: Lenovo Device 21ce Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 20 Region 0: Memory at f1500000 (32-bit, non-prefetchable) [disabled] [size=128K] Region 1: Memory at f152b000 (32-bit, non-prefetchable) [disabled] [size=4K] Region 2: I/O ports at 4080 [disabled] [size=32] Capabilities: <access denied> Kernel driver in use: e1000e 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI]) Subsystem: Lenovo Device 21ce Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 16 Region 0: Memory at f152a000 (32-bit, non-prefetchable) [size=1K] Capabilities: <access denied> Kernel driver in use: ehci_hcd 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) Subsystem: Lenovo Device 21ce Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 44 Region 0: Memory at f1520000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: snd_hda_intel 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4) (prog-if 00 [Normal decode]) Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 0000f000-00000fff Memory behind bridge: fff00000-000fffff Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR- BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: <access denied> Kernel driver in use: pcieport 00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: 0000f000-00000fff Memory behind bridge: f1400000-f14fffff Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR- BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: <access denied> Kernel driver in use: pcieport 00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Bus: primary=00, secondary=0d, subordinate=0d, sec-latency=0 I/O behind bridge: 00003000-00003fff Memory behind bridge: f0c00000-f13fffff Prefetchable memory behind bridge: 00000000f0400000-00000000f0bfffff Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR- BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: <access denied> Kernel driver in use: pcieport 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI]) Subsystem: Lenovo Device 21ce Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 23 Region 0: Memory at f1529000 (32-bit, non-prefetchable) [size=1K] Capabilities: <access denied> Kernel driver in use: ehci_hcd 00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC Controller (rev 04) Subsystem: Lenovo Device 21ce Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Capabilities: <access denied> 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04) (prog-if 01 [AHCI 1.0]) Subsystem: Lenovo Device 21ce Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin B routed to IRQ 41 Region 0: I/O ports at 40a8 [size=8] Region 1: I/O ports at 40bc [size=4] Region 2: I/O ports at 40a0 [size=8] Region 3: I/O ports at 40b8 [size=4] Region 4: I/O ports at 4060 [size=32] Region 5: Memory at f1528000 (32-bit, non-prefetchable) [size=2K] Capabilities: <access denied> Kernel driver in use: ahci 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04) Subsystem: Lenovo Device 21ce Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin C routed to IRQ 18 Region 0: Memory at f1524000 (64-bit, non-prefetchable) [size=256] Region 4: I/O ports at efa0 [size=32] Kernel driver in use: i801_smbus 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000 Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 43 Region 0: Memory at f1400000 (64-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: iwlwifi 0d:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 08) (prog-if 01) Subsystem: Lenovo Device 2133 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at f0c00000 (32-bit, non-prefetchable) [size=256] Capabilities: <access denied> Kernel driver in use: sdhci-pci /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: INTEL SSDSA2CW12 Rev: 4PC1 Type: Direct-Access ANSI SCSI revision: 05
if instead of closing the lid and having arch linux invoke s2ram you directly echo mem > /sys/power/state -- does it work?
Yes, it works flawlessly. Furthermore, I have traced where the kernel stops executing the suspend process: drivers/tty/vt/vt_ioctl.c:133: wait_event_interruptible drivers/tty/vt/vt_ioctl.c:1426: vt_waitactive kernel/power/console.c:19: vt_move_to_console kernel/power/suspend.c:98: pm_prepare_console suspend_prepare() called The call to wait_event_interruptible() never returns. Furthermore, my whole X session crashes on the failed suspend with this backtrace (I have also filed a bug under X.org): [ 13271.945] [ 13271.945] Backtrace: [ 13271.947] 0: /usr/bin/X (xorg_backtrace+0x36) [0x5602d6] [ 13271.947] 1: /usr/bin/X (0x400000+0x164039) [0x564039] [ 13271.948] 2: /usr/lib/libpthread.so.0 (0x7fe743ec1000+0xf170) [0x7fe743ed0170] [ 13271.948] 3: /usr/bin/X (XIChangeDeviceProperty+0x1b8) [0x502b88] [ 13271.948] 4: /usr/bin/X (DisableDevice+0x20f) [0x42d8ef] [ 13271.948] 5: /usr/bin/X (xf86Wakeup+0x494) [0x46fa54] [ 13271.948] 6: /usr/bin/X (WakeupHandler+0x6b) [0x43848b] [ 13271.948] 7: /usr/bin/X (WaitForSomething+0x1a4) [0x55d714] [ 13271.948] 8: /usr/bin/X (0x400000+0x34281) [0x434281] [ 13271.948] 9: /usr/bin/X (0x400000+0x23615) [0x423615] [ 13271.948] 10: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7fe742d70725] [ 13271.949] 11: /usr/bin/X (0x400000+0x238ed) [0x4238ed] [ 13271.949] [ 13271.949] Segmentation fault at address 0x11 [ 13271.949] Fatal server error: [ 13271.949] Caught signal 11 (Segmentation fault). Server aborting [ 13271.949] [ 13271.949] Please consult the The X.Org Foundation support at http://wiki.x.org I strongly believe these two are related but I can't go one step further from there....
Ehm, sorry, I forgot to state that in the kernel backtrace, line numbers are against linux-3.4.9. The X.org bug is here: https://bugs.freedesktop.org/show_bug.cgi?id=53593
zhenyu may have some thoughts on this.
Zhenyu, can you take a look at this?
It turns out that a faulty synaptics driver crashed during lid-close and brought the whole X server down with it so the kernel probably waited for something (from X) that never happened. Anyway, this is no longer happening, but I'll be happy to help if you think the kernel's behaviour was erratic nevertheless. Thanks!
okay, first, it is a driver problem rather than a suspend/resume bug. second, it can not be reproduced any more. so I'll close this bug. please feel free to re-open it once it bothers you again.