You are not logged in.
I recently got a Lenovo Thinkpad L540 and its Linux support has been almost flawless, except for the fact that I can't suspend: if I try to suspend the computer with any command, it just resumes a second later.
This is my video card:
[~] $ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
I'm trying to suspend using pm-suspend for these tests since most of the workarounds I tried used that; however I get the exact same result if I suspend with systemctl suspend or if I close the lid under GNOME.
This is the dmesg message by the time its suspended:
[~] $ dmesg
[ 800.682473] EXT4-fs (sdb2): re-mounted. Opts: data=ordered,discard,commit=0
[ 800.691809] EXT4-fs (sdb1): re-mounted. Opts: data=ordered,discard,commit=0
[ 800.896079] EXT4-fs (sda7): re-mounted. Opts: data=ordered,commit=0
[ 800.966304] xhci_hcd 0000:00:14.0: remove, state 4
[ 800.966318] usb usb4: USB disconnect, device number 1
[ 800.966694] xhci_hcd 0000:00:14.0: USB bus 4 deregistered
[ 800.966708] xhci_hcd 0000:00:14.0: remove, state 4
[ 800.966718] usb usb3: USB disconnect, device number 1
[ 800.966723] usb 3-12: USB disconnect, device number 2
[ 801.006090] xhci_hcd 0000:00:14.0: USB bus 3 deregistered
[ 801.006393] xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
[ 801.031929] ehci-pci 0000:00:1d.0: remove, state 4
[ 801.031948] usb usb2: USB disconnect, device number 1
[ 801.031953] usb 2-1: USB disconnect, device number 2
[ 801.037331] ehci-pci 0000:00:1d.0: USB bus 2 deregistered
[ 801.037632] ehci-pci 0000:00:1a.0: remove, state 4
[ 801.037646] usb usb1: USB disconnect, device number 1
[ 801.037651] usb 1-1: USB disconnect, device number 2
[ 801.043405] ehci-pci 0000:00:1a.0: USB bus 1 deregistered
[ 801.095765] usbcore: deregistering interface driver btusb
[ 801.108605] NET: Unregistered protocol family 31
[ 801.114745] usbcore: deregistering interface driver uvcvideo
[ 801.124211] usbcore: deregistering device driver usb
[ 801.124258] usbcore: deregistering interface driver usbfs
[ 801.124323] usbcore: deregistering interface driver hub
[ 801.124391] ACPI: bus type USB unregistered
[ 801.170446] ACPI: \_SB_.PCI0.LPCB.H_EC.LED_: Excess arguments - Caller passed 2, method requires 1 (20131218/nsarguments-263)
[ 801.428129] PM: Syncing filesystems ... done.
[ 801.501725] PM: Preparing system for mem sleep
[ 801.502032] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 801.503448] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
[ 801.504226] PM: Entering mem sleep
[ 801.504286] Suspending console(s) (use no_console_suspend to debug)
[ 801.627033] wlp2s0: deauthenticating from b8:a3:86:4b:67:ce by local choice (reason=3)
[ 801.640205] cfg80211: Calling CRDA to update world regulatory domain
[ 801.640293] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 801.640298] sd 4:0:0:0: [sda] Synchronizing SCSI cache
[ 801.640395] sd 4:0:0:0: [sda] Stopping disk
[ 801.642575] sd 5:0:0:0: [sdb] Stopping disk
[ 802.979226] PM: suspend of devices complete after 1473.229 msecs
[ 802.979346] PM: late suspend of devices complete after 0.118 msecs
[ 802.992748] e1000e 0000:00:19.0: System wakeup enabled by ACPI
[ 803.009244] PM: noirq suspend of devices complete after 29.863 msecs
[ 803.009441] ACPI: Preparing to enter system sleep state S3
[ 803.010085] PM: Saving platform NVS memory
[ 803.010825] Disabling non-boot CPUs ...
[ 803.112648] smpboot: CPU 1 is now offline
[ 803.216094] smpboot: CPU 2 is now offline
[ 803.319539] smpboot: CPU 3 is now offline
[ 803.320687] ACPI: Low-level resume complete
[ 803.320724] PM: Restoring platform NVS memory
[ 803.321171] Enabling non-boot CPUs ...
[ 803.321203] x86: Booting SMP configuration:
[ 803.321204] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 803.335370] Intel pstate controlling: cpu 1
[ 803.335410] CPU1 is up
[ 803.335425] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 803.349680] Intel pstate controlling: cpu 2
[ 803.349715] CPU2 is up
[ 803.349728] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 803.363881] Intel pstate controlling: cpu 3
[ 803.363915] CPU3 is up
[ 803.366993] ACPI: Waking up from system sleep state S3
[ 803.511309] PM: noirq resume of devices complete after 76.563 msecs
[ 803.511392] PM: early resume of devices complete after 0.069 msecs
[ 803.511492] snd_hda_intel 0000:00:03.0: irq 41 for MSI/MSI-X
[ 803.514235] mei_me 0000:00:16.0: irq 43 for MSI/MSI-X
[ 803.514495] e1000e 0000:00:19.0: System wakeup disabled by ACPI
[ 803.514523] e1000e 0000:00:19.0: irq 44 for MSI/MSI-X
[ 803.514575] snd_hda_intel 0000:00:1b.0: irq 46 for MSI/MSI-X
[ 803.834882] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 803.839081] ata1.00: ACPI cmd e3/00:00:00:00:00:a0 (IDLE) succeeded
[ 803.840636] ata1.00: ACPI cmd e3/00:00:00:00:00:a0 (IDLE) succeeded
[ 803.846268] ata1.00: ACPI cmd e3/00:00:00:00:00:a0 (IDLE) succeeded
[ 803.847784] ata1.00: ACPI cmd e3/00:00:00:00:00:a0 (IDLE) succeeded
[ 803.848231] ata6: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 803.850720] ata6.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 803.850721] ata6.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[ 803.851047] ata1.00: configured for UDMA/133
[ 803.851386] ata6.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 803.851387] ata6.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[ 803.851592] ata6.00: configured for UDMA/133
[ 803.864924] sd 5:0:0:0: [sdb] Starting disk
[ 805.233107] [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
[ 805.656944] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 805.801974] ata5.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 805.801976] ata5.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[ 805.803428] ata5.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 805.803430] ata5.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[ 805.804093] ata5.00: configured for UDMA/133
[ 805.817119] sd 4:0:0:0: [sda] Starting disk
[ 805.841057] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[ 805.841298] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[ 805.853128] PM: resume of devices complete after 2339.145 msecs
[ 805.853291] PM: Finishing wakeup.
[ 805.853292] Restarting tasks ...
[ 805.853363] iwlwifi 0000:02:00.0: no hotplug settings from platform
[ 805.853402] rtsx_pci 0000:08:00.0: no hotplug settings from platform
[ 805.854251] done.
[ 805.854565] video LNXVIDEO:00: Restoring backlight state
[ 805.959561] ACPI: \_SB_.PCI0.LPCB.H_EC.LED_: Excess arguments - Caller passed 2, method requires 1 (20131218/nsarguments-263)
[ 805.973568] ACPI: bus type USB registered
[ 805.973601] usbcore: registered new interface driver usbfs
[ 805.973614] usbcore: registered new interface driver hub
[ 805.973652] usbcore: registered new device driver usb
[ 805.979350] Bluetooth: Core ver 2.18
[ 805.979367] NET: Registered protocol family 31
[ 805.979369] Bluetooth: HCI device and connection manager initialized
[ 805.979375] Bluetooth: HCI socket layer initialized
[ 805.979377] Bluetooth: L2CAP socket layer initialized
[ 805.979386] Bluetooth: SCO socket layer initialized
[ 805.979968] usbcore: registered new interface driver btusb
[ 805.983003] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 805.983361] ehci-pci: EHCI PCI platform driver
[ 805.983566] ehci-pci 0000:00:1a.0: EHCI Host Controller
[ 805.983573] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[ 805.983589] ehci-pci 0000:00:1a.0: debug port 2
[ 805.987491] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[ 805.987504] ehci-pci 0000:00:1a.0: irq 16, io mem 0xf253e000
[ 805.997274] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[ 805.997505] hub 1-0:1.0: USB hub found
[ 805.997513] hub 1-0:1.0: 3 ports detected
[ 806.057700] ehci-pci 0000:00:1d.0: EHCI Host Controller
[ 806.057721] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[ 806.057749] ehci-pci 0000:00:1d.0: debug port 2
[ 806.061672] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[ 806.061693] ehci-pci 0000:00:1d.0: irq 23, io mem 0xf253d000
[ 806.070758] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[ 806.071288] hub 2-0:1.0: USB hub found
[ 806.071306] hub 2-0:1.0: 3 ports detected
[ 806.102227] media: Linux media interface: v0.10
[ 806.110757] Linux video capture interface: v2.00
[ 806.118347] usbcore: registered new interface driver uvcvideo
[ 806.118353] USB Video Class driver (1.1.1)
[ 806.127213] xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
[ 806.127222] xhci_hcd 0000:00:14.0: PCI INT A: no GSI - using ISA IRQ 11
[ 806.127421] xhci_hcd 0000:00:14.0: xHCI Host Controller
[ 806.127432] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 3
[ 806.127554] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
[ 806.127594] xhci_hcd 0000:00:14.0: irq 48 for MSI/MSI-X
[ 806.128010] hub 3-0:1.0: USB hub found
[ 806.128036] hub 3-0:1.0: 14 ports detected
[ 806.150881] xhci_hcd 0000:00:14.0: xHCI Host Controller
[ 806.150895] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 4
[ 806.151388] hub 4-0:1.0: USB hub found
[ 806.151412] hub 4-0:1.0: 4 ports detected
[ 806.253279] EXT4-fs (sdb2): re-mounted. Opts: data=ordered,discard,commit=600
[ 806.261966] EXT4-fs (sdb1): re-mounted. Opts: data=ordered,discard,commit=600
[ 806.304310] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 806.428574] hub 1-1:1.0: USB hub found
[ 806.428687] hub 1-1:1.0: 6 ports detected
[ 806.534625] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 806.659380] hub 2-1:1.0: USB hub found
[ 806.659560] hub 2-1:1.0: 8 ports detected
[ 806.660530] wlp2s0: authenticate with b8:a3:86:4b:67:ce
[ 806.663167] wlp2s0: send auth to b8:a3:86:4b:67:ce (try 1/3)
[ 806.665065] wlp2s0: authenticated
[ 806.668013] wlp2s0: associate with b8:a3:86:4b:67:ce (try 1/3)
[ 806.672264] wlp2s0: RX AssocResp from b8:a3:86:4b:67:ce (capab=0x431 status=0 aid=4)
[ 806.675293] wlp2s0: associated
[ 806.810725] EXT4-fs (sda7): re-mounted. Opts: data=ordered,commit=600
[ 806.821558] usb 3-12: new high-speed USB device number 2 using xhci_hcd
[ 807.008230] uvcvideo: Found UVC 1.00 device Integrated Camera (5986:0397)
[ 807.009746] input: Integrated Camera as /devices/pci0000:00/0000:00:14.0/usb3/3-12/3-12:1.0/input/input20
[ 807.100422] EXT4-fs (sda6): re-mounted. Opts: data=ordered,commit=600
This is the log on pm-suspend,
Initial commandline parameters:
Thu May 15 18:08:46 ART 2014: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux thinkpad 3.14.3-2-ARCH #1 SMP PREEMPT Mon May 12 20:52:20 CEST 2014 x86_64 GNU/Linux
Module Size Used by
xhci_hcd 148293 0
uvcvideo 74556 0
videobuf2_vmalloc 3368 1 uvcvideo
videobuf2_memops 2239 1 videobuf2_vmalloc
videobuf2_core 28999 1 uvcvideo
videodev 122691 2 uvcvideo,videobuf2_core
media 12611 2 uvcvideo,videodev
ehci_pci 4152 0
ehci_hcd 64875 1 ehci_pci
btusb 19720 0
bluetooth 352753 1 btusb
6lowpan_iphc 11556 1 bluetooth
usbcore 187240 5 btusb,uvcvideo,ehci_hcd,ehci_pci,xhci_hcd
usb_common 1712 1 usbcore
fuse 80172 3
ctr 3927 2
ccm 8278 2
snd_hda_codec_hdmi 36716 1
joydev 10367 0
mousedev 10912 0
snd_hda_codec_realtek 48293 1
snd_hda_codec_generic 53860 1 snd_hda_codec_realtek
iTCO_wdt 5535 0
iTCO_vendor_support 1929 1 iTCO_wdt
arc4 2064 2
coretemp 6550 0
x86_pkg_temp_thermal 7311 0
intel_powerclamp 9442 0
kvm 419974 0
crct10dif_pclmul 4714 0
crc32_pclmul 2955 0
crc32c_intel 14217 0
ghash_clmulni_intel 4362 0
iwlmvm 144379 0
mac80211 510355 1 iwlmvm
aesni_intel 144871 4
aes_x86_64 7463 1 aesni_intel
lrw 3821 1 aesni_intel
gf128mul 6018 1 lrw
glue_helper 4737 1 aesni_intel
ablk_helper 2100 1 aesni_intel
cryptd 8537 3 ghash_clmulni_intel,aesni_intel,ablk_helper
i915 752620 5
microcode 17157 0
evdev 11784 14
iwlwifi 151777 1 iwlmvm
psmouse 92904 0
mac_hid 3273 0
serio_raw 5009 0
rtsx_pci_ms 7578 0
pcspkr 2059 0
i2c_i801 11364 0
memstick 7664 1 rtsx_pci_ms
lpc_ich 13560 0
drm_kms_helper 35720 1 i915
tpm_tis 9310 0
cfg80211 459335 3 iwlwifi,mac80211,iwlmvm
tpm 23363 1 tpm_tis
drm 242043 4 i915,drm_kms_helper
thermal 8812 0
wmi 8539 0
snd_hda_intel 38728 5
thinkpad_acpi 64936 1
snd_hda_codec 101816 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
nvram 6034 1 thinkpad_acpi
led_class 3611 2 iwlmvm,thinkpad_acpi
hwmon 3153 2 coretemp,thinkpad_acpi
battery 7821 0
rfkill 15971 5 cfg80211,thinkpad_acpi,bluetooth
intel_gtt 12856 1 i915
snd_hwdep 6396 1 snd_hda_codec
i2c_algo_bit 5480 1 i915
i2c_core 25400 6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev
e1000e 228148 0
snd_pcm 81607 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
video 12057 1 i915
ac 3366 0
snd_timer 19038 1 snd_pcm
snd 60086 19 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
button 4765 1 i915
mei_me 9904 0
soundcore 5551 1 snd
ptp 8404 1 e1000e
mei 65600 1 mei_me
shpchp 25706 0
pps_core 8993 1 ptp
processor 25217 0
ext4 505509 4
crc16 1359 2 ext4,bluetooth
mbcache 6266 1 ext4
jbd2 86487 1 ext4
sd_mod 37234 7
crc_t10dif 1135 1 sd_mod
crct10dif_common 1436 2 crct10dif_pclmul,crc_t10dif
sr_mod 15026 0
cdrom 35191 1 sr_mod
rtsx_pci_sdmmc 14199 0
mmc_core 100418 1 rtsx_pci_sdmmc
atkbd 16934 0
libps2 4507 2 atkbd,psmouse
ahci 24043 5
libahci 21708 1 ahci
libata 174012 2 ahci,libahci
scsi_mod 137184 3 libata,sd_mod,sr_mod
rtsx_pci 33919 2 rtsx_pci_ms,rtsx_pci_sdmmc
i8042 13135 1 libps2
serio 10785 7 serio_raw,atkbd,i8042,psmouse
total used free shared buffers cached
Mem: 7866156 2336232 5529924 277204 97936 809948
-/+ buffers/cache: 1428348 6437808
Swap: 16740348 0 16740348
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub suspend suspend:
/usr/lib/pm-utils/sleep.d/01grub suspend suspend: success.
Running hook /etc/pm/sleep.d/10-second-fix suspend suspend:
Unbinding 0000:00:14.0
/etc/pm/sleep.d/10-second-fix: line 8: cd: /sys/bus/pci/drivers/ehci_hcd: No such file or directory
/etc/pm/sleep.d/10-second-fix: line 8: cd: /sys/bus/pci/drivers/ohci_hcd: No such file or directory
/etc/pm/sleep.d/10-second-fix: line 8: cd: /sys/bus/pci/drivers/uhci_hcd: No such file or directory
/etc/pm/sleep.d/10-second-fix suspend suspend: success.
Running hook /etc/pm/sleep.d/20-workaround suspend suspend:
/etc/pm/sleep.d/20-workaround suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
Unloading kernel module ehci_hcd...Done.
Unloading kernel module uhci_hcd...Done.
Unloading kernel module ohci_hcd...Done.
Unloading kernel module usbcore...Done.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:
/usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver detected, not using quirks.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Thu May 15 18:08:47 ART 2014: performing suspend
Thu May 15 18:08:55 ART 2014: Awake.
Thu May 15 18:08:55 ART 2014: Running hooks for resume
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:
/usr/lib/pm-utils/sleep.d/95led resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:
/usr/lib/pm-utils/sleep.d/90clock resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.
/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth resume suspend:
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: success.
Running hook /etc/pm/sleep.d/20-workaround resume suspend:
/etc/pm/sleep.d/20-workaround resume suspend: success.
Running hook /etc/pm/sleep.d/10-second-fix resume suspend:
Binding 0000:00:14.0
/etc/pm/sleep.d/10-second-fix: line 24: echo: write error: No such device
/etc/pm/sleep.d/10-second-fix: line 21: cd: /sys/bus/pci/drivers/ehci_hcd: No such file or directory
/etc/pm/sleep.d/10-second-fix: line 21: cd: /sys/bus/pci/drivers/ohci_hcd: No such file or directory
/etc/pm/sleep.d/10-second-fix: line 21: cd: /sys/bus/pci/drivers/uhci_hcd: No such file or directory
/etc/pm/sleep.d/10-second-fix resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01grub resume suspend:
/usr/lib/pm-utils/sleep.d/01grub resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:
/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:
/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
Thu May 15 18:08:57 ART 2014: Finished.
I already tested and tried many solutions I found on this forum with what was apparently a with the USB drivers on old versions of the kernel, but none of them solved my problem. Does someone know how can I solve this? I was trying to do it myself for a long time, but I got stuck and I can't find anything to try anymore.
Additionally, I'm having two more problems with power: First, I can't turn off the laptop correctly by software by using systemctl poweroff or the GNOME menu: the computer restarts instead of turning off if unless I hold the power button for four seconds. Besides that, if the computer is off then is turns on automatically when I connect the laptop to a power source! These problems are a lot less annoying than the suspend issue, but they may be related.
Offline
Do you have another OS on that laptop?
Perhaps try adding "acpi_osi=Linux" to the bootloader's kernel line.
Offline
Linux is the only OS on this Laptop, and adding that line to the bootloader and rebooting the computer didn't help with the suspend issues.
For the record, this is the relevant entry on my syslinux.cfg file:
LABEL arch
MENU LABEL Arch Linux
LINUX ../vmlinuz-linux
APPEND root=UUID=e4099b89-1783-42fc-9227-b6218f7ee315 rw elevator=noop acpi_osi=Linux
INITRD ../initramfs-linux.img
Offline
You could perhaps try with linux-lts or get some live medium, e.g. (old) Ubuntu 12.04, to see if it behaves the same on a different (older) distro.
The only other things that come to mind are trying to disable as many peripheral modules as possible (usb, sd card reader, etc.) before suspending and disabling everything in /proc/acpi/wakeup. Also, seeing how hibernation fares.
Last edited by lucke (2014-05-15 21:51:02)
Offline
I disabled all modules on /proc/acpi/wakeup and deleted all modules that contained hcd, pci, usb, and a few other substrings; but I still have the same problem when suspending.
Hibernating is even worse: the computer seems to hibernate and shuts down, but it turns on immidiately with a clean boot and without recovering the hibernation state.
These are the modules I currently have enabled:
6lowpan_iphc cryptd intel_powerclamp mmc_core snd_hwdep
ablk_helper ctr iwlmvm mousedev snd_pcm
ac drm iwlwifi nvram snd_timer
aes_x86_64 drm_kms_helper jbd2 pcspkr soundcore
aesni_intel e1000e joydev pps_core sr_mod
ahci evdev kvm processor thermal
arc4 ext4 led_class psmouse thinkpad_acpi
atkbd fuse libahci ptp tpm
battery gf128mul libata rfkill tpm_tis
button ghash_clmulni_intel libps2 scsi_mod video
ccm glue_helper lpc_ich sd_mod videobuf2_core
cdrom hwmon lrw serio videobuf2_memops
cfg80211 i2c_algo_bit mac80211 serio_raw videobuf2_vmalloc
coretemp i2c_core mac_hid shpchp videodev
crc16 i2c_i801 mbcache snd wmi
crc32_pclmul i8042 media snd_hda_codec x86_pkg_temp_thermal
crc32c_intel i915 mei snd_hda_codec_generic
crc_t10dif iTCO_vendor_support mei_me snd_hda_codec_hdmi
crct10dif_common iTCO_wdt memstick snd_hda_codec_realtek
crct10dif_pclmul intel_gtt microcode snd_hda_intel
Offline
Instant turning on (instead of shutting down) makes me think of electrical problems.
Have you looked at BIOS/UEFI settings?
Offline
UEFI is deactivated, and I couldn't find any setting on the L540's BIOS that could be relevant.
There is a "turn on computer when connected to AC", but it's disabled.
Offline
Does it shut down properly when you press (and not hold) the power button in BIOS/GRUB?
-edit-
syslinux in your case.
dmesg talks about sda and sdb. What are they? If you have a HDD, do you hear it turn off when you turn it off (suspend)? Does the laptop shut down and start or just restart? Does the fan stop working when you suspend/turn off?
Last edited by lucke (2014-05-15 22:38:56)
Offline
I'm having similar issues with my HP pavillion. With no custom udev rules written, and with xfce4-power-manager uninstalled, my system will get down to about 2% battery power, do a hybrid-sleep thing, go into suspend, then immediately wake up. I've looked all over /usr/lib/udev for some kind of default rule, and have come up with nothing. Something is telling the system to suspend, but worse yet - waking it right back up.
If you can't be helpful, don't say anything at all. Fair enough?
Offline
Does it shut down properly when you press (and not hold) the power button in BIOS/GRUB?
-edit-
syslinux in your case.
dmesg talks about sda and sdb. What are they? If you have a HDD, do you hear it turn off when you turn it off (suspend)? Does the laptop shut down and start or just restart? Does the fan stop working when you suspend/turn off?
Welp, I forgot to answer this thread in a while.
I still couldn't solve the problems, but now I'm more sure that it's a problem in the laptop because I can't turn off the computer.
For the record, if I try to turn off the computer by doing anything else other than long-pressing the power button, the computer shuts down for a second and then restarts. This happens even if I try to shut it down before the OS is loaded by pressing the power button when the BIOS is loading.
I tried resetting all the settings from the BIOS, which makes the computer boot to a Windows 8 recovery menu (since I didn't configure my Arch partition to boot on UEFI). Even pressing the "shut down" button from that menu doesn't turn off the computer properly!
I understand now that this probably isn't an Arch Linux issue, but did anyone here have a similar problem, or any idea on how to solve it? Lenovo support has been particularly unhelpful about my issue.
Offline