When lid is closed, laptop doesn't suspend/sleep

Dear community,

Closing my ThinkPad X220’s lid doesn’t put it into suspend as it’s normally intended.

I tried tweaking xfce-power-management options and lines mentioning LID in logind.conf, with negative results.

I also used cat /proc/acpi/button/lid/LID/state and I’ve diagnosed that my LID is always open.

Specs:

inxi

System:
Kernel: 5.15.74-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
root=UUID=2b631092-0985-499b-94f2-72d85451883a rw quiet apparmor=1
security=apparmor resume=UUID=beecc709-d951-4d54-b77c-6c9d77e0fa17
udev.log_priority=3
Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
v: 4.16.1 vt: 7 dm: LightDM v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 429135G v: ThinkPad X220
serial: Chassis: type: 10 serial:
Mobo: LENOVO model: 429135G serial:
UEFI-[Legacy]: LENOVO v: 8DET47WW (1.17 ) date: 05/31/2011
Battery:
ID-1: BAT0 charge: 83.4 Wh (99.8%) condition: 83.6/94.0 Wh (89.0%)
volts: 12.4 min: 10.8 model: SANYO 45N1175 type: Li-ion serial:
status: not charging
Memory:
RAM: total: 7.65 GiB used: 2.65 GiB (34.6%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: Intel Core i7-2620M bits: 64 type: MT MCP arch: Sandy Bridge
gen: core 2 level: v2 built: 2010-12 process: Intel 32nm family: 6
model-id: 0x2A (42) stepping: 7 microcode: 0x2F
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 829 high: 858 min/max: 800/3400 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 827 2: 836 3: 797 4: 858
bogomips: 21536
Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov
constant_tsc cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts epb est flush_l1d
fpu fxsr ht ibpb ibrs ida lahf_lm lm mca mce md_clear mmx monitor msr mtrr
nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pebs pge pln pni
popcnt pse pse36 pti pts rdtscp sep smx ssbd sse sse2 sse4_1 sse4_2 ssse3
stibp syscall tm tm2 tsc tsc_deadline_timer vme x2apic xsave xsaveopt
xtopology xtpr
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX unsupported
Type: l1tf mitigation: PTE Inversion
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
vendor: Lenovo driver: i915 v: kernel arch: Gen-6 process: Intel 32nm
built: 2011 ports: active: LVDS-1 empty: DP-1, DP-2, DP-3, HDMI-A-1,
HDMI-A-2, HDMI-A-3, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0126 class-ID: 0300
Device-2: Acer ThinkPad Integrated Camera type: USB driver: uvcvideo
bus-ID: 1-1.6:5 chip-ID: 5986:02d2 class-ID: 0e02
Display: x11 server: X Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver: X:
loaded: modesetting alternate: fbdev,vesa dri: crocus gpu: i915
display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
s-diag: 414mm (16.31")
Monitor-1: LVDS-1 model: LG Display 0x03a3 built: 2012 res: 1366x768 hz: 60
dpi: 125 gamma: 1.2 size: 277x156mm (10.91x6.14") diag: 318mm (12.5")
ratio: 16:9 modes: 1366x768
API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:1c20 class-ID: 0403
Sound API: ALSA v: k5.15.74-3-MANJARO running: yes
Sound Server-1: JACK v: 1.9.21 running: no
Sound Server-2: PulseAudio v: 16.1 running: yes
Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
Device-1: Intel 82579LM Gigabit Network vendor: Lenovo ThinkPad T520
driver: e1000e v: kernel port: 5060 bus-ID: 00:19.0 chip-ID: 8086:1502
class-ID: 0200
IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac:
IP v4: type: dynamic noprefixroute scope: global
broadcast:
IP v6: type: dynamic noprefixroute scope: global
IP v6: type: noprefixroute scope: link
Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
chip-ID: 8086:0085 class-ID: 0280
IF: wlp3s0 state: down mac:
IF-ID-1: wwp0s29u1u4i6 state: down mac:
WAN IP:
Bluetooth:
Device-1: Broadcom BCM2045B (BDC-2.1) type: USB driver: btusb v: 0.8
bus-ID: 1-1.4:4 chip-ID: 0a5c:217f class-ID: fe01 serial:
Report: rfkill ID: hci0 rfk-id: 5 state: up address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 238.47 GiB used: 79.96 GiB (33.5%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SSDPR-CX400-256-G2
size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: rev: 72 scheme: MBR
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 229.67 GiB size: 225 GiB (97.97%) used: 79.95 GiB (35.5%)
fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
uuid: 2b631092-0985-499b-94f2-72d85451883a
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8.8 GiB used: 14 MiB (0.2%) priority: -2
dev: /dev/sda2 maj-min: 8:2 label: swap
uuid: beecc709-d951-4d54-b77c-6c9d77e0fa17
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: Full speed or root hub ports: 3 rev: 2.0 speed: 480 Mb/s
chip-ID: 1d6b:0002 class-ID: 0900
Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
Device-1: 1-1.3:7 info: Upek Biometric Touchchip/Touchstrip Fingerprint
Sensor type: driver: N/A interfaces: 1 rev: 1.0
speed: 12 Mb/s power: 100mA chip-ID: 147e:2016 class-ID: 0000
Device-2: 1-1.4:4 info: Broadcom BCM2045B (BDC-2.1) type: Bluetooth
driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip-ID: 0a5c:217f
class-ID: fe01 serial:
Device-3: 1-1.6:5 info: Acer ThinkPad Integrated Camera type: Video
driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 200mA
chip-ID: 5986:02d2 class-ID: 0e02
Hub-3: 2-0:1 info: Full speed or root hub ports: 3 rev: 2.0 speed: 480 Mb/s
chip-ID: 1d6b:0002 class-ID: 0900
Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
Device-1: 2-1.4:3 info: Ericsson Business Mobile Networks BV F5521gw
type: Communication,Abstract (modem),CDC-Data driver: cdc_acm,cdc_ncm,cdc_wdm
interfaces: 11 rev: 2.0 speed: 480 Mb/s chip-ID: 0bdb:1911 class-ID: 0202
serial:
Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Hub-6: 4-0:1 info: Super-speed hub ports: 2 rev: 3.0 speed: 5 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 49.0 C mobo: N/A
Fan Speeds (RPM): cpu: 3000
Info:
Processes: 207 Uptime: 1h 40m wakeups: 3 Init: systemd v: 251
default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6
Packages: pm: pacman pkgs: 1072 libs: 345 tools: pamac,pikaur pm: flatpak
pkgs: 0 Shell: Bash v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.23

/etc/systemd/logind.conf

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

I checked a lot of threads about this problem and nothing came close to a solution.

I’d like to mention that I use Arch on another X220 (kernel 6.0.6, XFCE too) and I don’t have this problem.

Thank you for your consideration.

nep³

Is Arch running xfce4-screensaver? Manjaro xfce installs light-locker by default, I believe. Could light-locker have something to do with this? I would compare your Arch Power settings and logind.conf to your Manjaro settings and note the difference(s)

Check in Settings Editor- xfce4-power-manager settings

Check status of systemd-logind.service :
systemctl status systemd-logind.service

Any changes made to logind.conf and you will need to restart the service.

@jrichard326

Arch isn’t running xfce4-screensaver.

I compared the two power settings as you rightly recommended, and they are the same.

In doubt on manjaro, I uninstalled default light-locker to see what happens, and nothing happened.

I checked status of systemd-logind.service on both machines, they are the same.

The only clue I have is that LID state seems always on. And in fact, when I close the lid physically, I can see that it doesn’t turn off. I checked with sudo libinput debug-events and there’s absolutely no lid reaction when I close it.

I also tried changing lines in logind.conf and restarting the service as you mentionned but it didn’t work.

Try adding:

HandleLidSwitchDocked=suspend

I tried but it doesn’t change a thing.
Screen is still on when I close the lid.

Unless you find a way to remedy this situation …
I do not see how any software can react to a non-changing event.

Hello people,

I found some interesting (new) issues with my laptop.

So first of all the screen couldn’t turn off because simply, the magnet under the palmrest that normally triggers the Hall sensor in the lid around the camera, was missing.

In close-up the magnet looks like this, and is normally located here :slight_smile:


(pictures from another forum, not my actual setup)

The way I found it was missing was totally unexpected. I was sorting out my two X220s - putting one onto another - when the magnet from the Arch-X220 triggered the suspend mode of the Manjaro-X220. So yeah, talk about second hand ThinkPads…

I verified the trigger event with acpi_listen by putting some magnet in front of the lid sensor, on both machines :

$ acpi_listen
video/brightnessdown BRTDN 00000087 00000000
video/brightnessup BRTUP 00000086 00000000
button/lid LID close
button/lid LID open
button/lid LID close
button/lid LID open
button/lid LID close

The first two lines are testing brightness buttons but as quickly as you can see lid sensor is triggered. Of course in absence of magnet, these events don’t occur on concerned machine.

Now by chance I had some tiny round neodymium magnets (N35) hanging around in my office so I replaced the magnet. This is the result:

The lid sensor is now correctly triggered but, as soon as the laptop goes to sleep, it wakes up immediately. I tested different magnets and also poles positions, but it seems that it comes from the software.

Now according to this thread that investigates wakings after sleep, it could be related to BIOS take over or NVME SSD. As it turns out, I have installed an SSD for Manjaro.

As suggested in the thread, I did a journalctl --boot 0 | sed -n -r "/Starting.+Suspend/,/Finished.+Suspend/p" and here’s the log:

nov. 13 17:10:17 X220 systemd[1]: Starting System Suspend...
nov. 13 17:10:17 X220 wpa_supplicant[924]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
nov. 13 17:10:17 X220 wpa_supplicant[924]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
nov. 13 17:10:17 X220 wpa_supplicant[924]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
nov. 13 17:10:17 X220 systemd-sleep[5509]: Entering sleep state 'suspend'...
nov. 13 17:10:17 X220 kernel: PM: suspend entry (deep)
nov. 13 17:10:24 X220 kernel: Filesystems sync: 0.073 seconds
nov. 13 17:10:24 X220 kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
nov. 13 17:10:24 X220 kernel: OOM killer disabled.
nov. 13 17:10:24 X220 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
nov. 13 17:10:24 X220 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
nov. 13 17:10:24 X220 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
nov. 13 17:10:24 X220 kernel: sd 0:0:0:0: [sda] Stopping disk
nov. 13 17:10:24 X220 kernel: e1000e: EEE TX LPI TIMER: 00000011
nov. 13 17:10:24 X220 kernel: ACPI: EC: interrupt blocked
nov. 13 17:10:24 X220 kernel: ACPI: PM: Preparing to enter system sleep state S3
nov. 13 17:10:24 X220 kernel: ACPI: EC: event blocked
nov. 13 17:10:24 X220 kernel: ACPI: EC: EC stopped
nov. 13 17:10:24 X220 kernel: ACPI: PM: Saving platform NVS memory
nov. 13 17:10:24 X220 kernel: Disabling non-boot CPUs ...
nov. 13 17:10:24 X220 kernel: smpboot: CPU 1 is now offline
nov. 13 17:10:24 X220 kernel: smpboot: CPU 2 is now offline
nov. 13 17:10:24 X220 kernel: smpboot: CPU 3 is now offline
nov. 13 17:10:24 X220 kernel: ACPI: PM: Low-level resume complete
nov. 13 17:10:24 X220 kernel: ACPI: EC: EC started
nov. 13 17:10:24 X220 kernel: ACPI: PM: Restoring platform NVS memory
nov. 13 17:10:24 X220 kernel: Enabling non-boot CPUs ...
nov. 13 17:10:24 X220 kernel: x86: Booting SMP configuration:
nov. 13 17:10:24 X220 kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
nov. 13 17:10:24 X220 kernel: Disabled fast string operations
nov. 13 17:10:24 X220 kernel: CPU1 is up
nov. 13 17:10:24 X220 kernel: smpboot: Booting Node 0 Processor 2 APIC 0x2
nov. 13 17:10:24 X220 kernel: Disabled fast string operations
nov. 13 17:10:24 X220 kernel: CPU2 is up
nov. 13 17:10:24 X220 kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
nov. 13 17:10:24 X220 kernel: Disabled fast string operations
nov. 13 17:10:24 X220 kernel: CPU3 is up
nov. 13 17:10:24 X220 kernel: ACPI: PM: Waking up from system sleep state S3
nov. 13 17:10:24 X220 kernel: ACPI: EC: interrupt unblocked
nov. 13 17:10:24 X220 kernel: sdhci-pci 0000:0d:00.0: MMC controller base frequency changed to 50Mhz.
nov. 13 17:10:24 X220 kernel: xhci_hcd 0000:0e:00.0: xHC error in resume, USBSTS 0x401, Reinit
nov. 13 17:10:24 X220 kernel: usb usb3: root hub lost power or was reset
nov. 13 17:10:24 X220 kernel: usb usb4: root hub lost power or was reset
nov. 13 17:10:24 X220 kernel: ACPI: EC: event unblocked
nov. 13 17:10:24 X220 kernel: sd 0:0:0:0: [sda] Starting disk
nov. 13 17:10:24 X220 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
nov. 13 17:10:24 X220 kernel: tpm tpm0: TPM is disabled/deactivated (0x6)
nov. 13 17:10:24 X220 kernel: usb 2-1.4: reset high-speed USB device number 3 using ehci-pci
nov. 13 17:10:24 X220 kernel: usb 1-1.4: reset full-speed USB device number 4 using ehci-pci
nov. 13 17:10:24 X220 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
nov. 13 17:10:24 X220 kernel: ata3: SATA link down (SStatus 0 SControl 300)
nov. 13 17:10:24 X220 kernel: usb 1-1.6: reset high-speed USB device number 5 using ehci-pci
nov. 13 17:10:24 X220 kernel: psmouse serio1: synaptics: queried max coordinates: x [..5472], y [..4448]
nov. 13 17:10:24 X220 kernel: OOM killer enabled.
nov. 13 17:10:24 X220 kernel: Restarting tasks ... 
nov. 13 17:10:24 X220 kernel: ACPI: \_SB_.PCI0.SAT1.SCND.MSTR: docking
nov. 13 17:10:24 X220 kernel: ACPI: \_SB_.PCI0.SAT1.SCND.MSTR: Unable to dock!
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/ldac_hq
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/ldac_sq
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/ldac_mq
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/aptx_hd
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/aptx_hd
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/aptx
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/aptx
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc_xq_453
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc_xq_453
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc_xq_512
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc_xq_512
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc_xq_552
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint unregistered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc_xq_552
nov. 13 17:10:24 X220 kernel: done.
nov. 13 17:10:24 X220 audit: BPF prog-id=34 op=LOAD
nov. 13 17:10:24 X220 kernel: audit: type=1334 audit(1668355824.023:292): prog-id=34 op=LOAD
nov. 13 17:10:24 X220 systemd[1]: Starting Update locate database...
nov. 13 17:10:24 X220 systemd-sleep[5509]: System returned from sleep state.
nov. 13 17:10:24 X220 kernel: video LNXVIDEO:00: Restoring backlight state
nov. 13 17:10:24 X220 kernel: PM: suspend exit
nov. 13 17:10:24 X220 pulseaudio[1189]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?
nov. 13 17:10:24 X220 kernel: ata4: failed to resume link (SControl 0)
nov. 13 17:10:24 X220 kernel: ata4: SATA link down (SStatus 4 SControl 0)
nov. 13 17:10:24 X220 kernel: audit: type=1111 audit(1668355824.197:293): pid=549 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='op=radio-control arg="wwan-enabled:on" pid=5589 uid=0 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
nov. 13 17:10:24 X220 kernel: ata2.01: failed to resume link (SControl 0)
nov. 13 17:10:24 X220 kernel: ata2.00: SATA link down (SStatus 0 SControl 300)
nov. 13 17:10:24 X220 kernel: ata2.01: SATA link down (SStatus 0 SControl 0)
nov. 13 17:10:24 X220 kernel: ata1.01: failed to resume link (SControl 0)
nov. 13 17:10:24 X220 kernel: audit: type=1130 audit(1668355824.460:294): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
nov. 13 17:10:24 X220 kernel: ata1.00: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
nov. 13 17:10:24 X220 kernel: ata1.01: SATA link down (SStatus 0 SControl 0)
nov. 13 17:10:24 X220 kernel: ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
nov. 13 17:10:24 X220 kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
nov. 13 17:10:24 X220 kernel: ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
nov. 13 17:10:24 X220 kernel: ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
nov. 13 17:10:24 X220 kernel: ata1.00: configured for UDMA/133
nov. 13 17:10:24 X220 audit[549]: USYS_CONFIG pid=549 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='op=radio-control arg="wwan-enabled:on" pid=5589 uid=0 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
nov. 13 17:10:24 X220 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/ldac_hq
nov. 13 17:10:24 X220 systemd[1103]: Stopped target Bluetooth.
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/ldac_sq
nov. 13 17:10:24 X220 systemd[1]: Stopped target Bluetooth Support.
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/ldac_mq
nov. 13 17:10:24 X220 systemd[1103]: Reached target Bluetooth.
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/aptx_hd
nov. 13 17:10:24 X220 systemd[1]: Reached target Bluetooth Support.
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/aptx_hd
nov. 13 17:10:24 X220 NetworkManager[549]: <info>  [1668355824.1994] audit: op="radio-control" arg="wwan-enabled:on" pid=5589 uid=0 result="success"
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/aptx
nov. 13 17:10:24 X220 systemd[1]: Starting Bluetooth management mechanism...
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/aptx
nov. 13 17:10:24 X220 systemd[1]: Started Bluetooth management mechanism.
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc
nov. 13 17:10:24 X220 systemd-logind[529]: Lid opened.
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc_xq_453
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc_xq_453
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc_xq_512
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc_xq_512
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSink/sbc_xq_552
nov. 13 17:10:24 X220 bluetoothd[1015]: Endpoint registered: sender=:1.35 path=/MediaEndpoint/A2DPSource/sbc_xq_552
nov. 13 17:10:24 X220 bluetoothd[1015]: src/adv_monitor.c:btd_adv_monitor_power_down() Unexpected NULL btd_adv_monitor_manager object upon power down
nov. 13 17:10:24 X220 dbus-daemon[526]: [system] Activating via systemd: service name='org.blueman.Mechanism' unit='blueman-mechanism.service' requested by ':1.56' (uid=1000 pid=1362 comm="/usr/bin/python /usr/bin/blueman-applet")
nov. 13 17:10:24 X220 dbus-daemon[526]: [system] Successfully activated service 'org.blueman.Mechanism'
nov. 13 17:10:24 X220 root[5669]: LID opened
nov. 13 17:10:24 X220 systemd[1]: systemd-suspend.service: Deactivated successfully.
nov. 13 17:10:24 X220 systemd[1]: Finished System Suspend.

Also according to user mentioned in this thread, if the problem happened to SSD related, I’m supposed to cat /proc/acpi/wakeup and disable something in this list but I don’t know what:

$ cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
LID	  S3	*enabled   platform:PNP0C0D:00
SLPB	  S3	*enabled   platform:PNP0C0E:00
IGBE	  S4	*enabled   pci:0000:00:19.0
EXP4	  S4	*disabled  pci:0000:00:1c.3
EXP7	  S4	*disabled  pci:0000:00:1c.6
EHC1	  S3	*enabled   pci:0000:00:1d.0
EHC2	  S3	*enabled   pci:0000:00:1a.0
HDEF	  S4	*disabled  pci:0000:00:1b.0

That’s pretty much where I am now and asking for help.

I hope this new development finds answers.

nep³

Just a quick update.

I tried several combinations but when I disable LID in /proc/acpi/wakeup it finally works ! the system sleeps when I close the lid, but it does not wake up when I open it back… I have to resume from sleep by using power button.

New journalctl:

nov. 15 13:51:44 X220 systemd[1]: Starting System Suspend...
nov. 15 13:51:44 X220 wpa_supplicant[1006]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
nov. 15 13:51:44 X220 wpa_supplicant[1006]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
nov. 15 13:51:44 X220 wpa_supplicant[1006]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
nov. 15 13:51:44 X220 systemd-sleep[5876]: Entering sleep state 'suspend'...
nov. 15 13:51:44 X220 kernel: PM: suspend entry (deep)
nov. 15 13:52:09 X220 kernel: Filesystems sync: 0.047 seconds
nov. 15 13:52:09 X220 kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
nov. 15 13:52:09 X220 kernel: OOM killer disabled.
nov. 15 13:52:09 X220 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
nov. 15 13:52:09 X220 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
nov. 15 13:52:09 X220 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
nov. 15 13:52:09 X220 kernel: sd 0:0:0:0: [sda] Stopping disk
nov. 15 13:52:09 X220 kernel: e1000e: EEE TX LPI TIMER: 00000011
nov. 15 13:52:09 X220 kernel: ACPI: EC: interrupt blocked
nov. 15 13:52:09 X220 kernel: ACPI: PM: Preparing to enter system sleep state S3
nov. 15 13:52:09 X220 kernel: ACPI: EC: event blocked
nov. 15 13:52:09 X220 kernel: ACPI: EC: EC stopped
nov. 15 13:52:09 X220 kernel: ACPI: PM: Saving platform NVS memory
nov. 15 13:52:09 X220 kernel: Disabling non-boot CPUs ...
nov. 15 13:52:09 X220 kernel: smpboot: CPU 1 is now offline
nov. 15 13:52:09 X220 kernel: smpboot: CPU 2 is now offline
nov. 15 13:52:09 X220 kernel: smpboot: CPU 3 is now offline
nov. 15 13:52:09 X220 kernel: ACPI: PM: Low-level resume complete
nov. 15 13:52:09 X220 kernel: ACPI: EC: EC started
nov. 15 13:52:09 X220 kernel: ACPI: PM: Restoring platform NVS memory
nov. 15 13:52:09 X220 kernel: Enabling non-boot CPUs ...
nov. 15 13:52:09 X220 kernel: x86: Booting SMP configuration:
nov. 15 13:52:09 X220 kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
nov. 15 13:52:09 X220 kernel: Disabled fast string operations
nov. 15 13:52:09 X220 kernel: CPU1 is up
nov. 15 13:52:09 X220 kernel: smpboot: Booting Node 0 Processor 2 APIC 0x2
nov. 15 13:52:09 X220 kernel: Disabled fast string operations
nov. 15 13:52:09 X220 kernel: CPU2 is up
nov. 15 13:52:09 X220 kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
nov. 15 13:52:09 X220 kernel: Disabled fast string operations
nov. 15 13:52:09 X220 kernel: CPU3 is up
nov. 15 13:52:09 X220 kernel: ACPI: PM: Waking up from system sleep state S3
nov. 15 13:52:09 X220 kernel: ACPI: EC: interrupt unblocked
nov. 15 13:52:09 X220 kernel: sdhci-pci 0000:0d:00.0: MMC controller base frequency changed to 50Mhz.
nov. 15 13:52:09 X220 kernel: xhci_hcd 0000:0e:00.0: xHC error in resume, USBSTS 0x401, Reinit
nov. 15 13:52:09 X220 kernel: usb usb3: root hub lost power or was reset
nov. 15 13:52:09 X220 kernel: usb usb4: root hub lost power or was reset
nov. 15 13:52:09 X220 kernel: ACPI: EC: event unblocked
nov. 15 13:52:09 X220 kernel: sd 0:0:0:0: [sda] Starting disk
nov. 15 13:52:09 X220 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
nov. 15 13:52:09 X220 kernel: tpm tpm0: TPM is disabled/deactivated (0x6)
nov. 15 13:52:09 X220 kernel: usb 1-1.6: reset high-speed USB device number 5 using ehci-pci
nov. 15 13:52:09 X220 kernel: usb 2-1.4: reset high-speed USB device number 3 using ehci-pci
nov. 15 13:52:09 X220 kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
nov. 15 13:52:09 X220 kernel: ata3: SATA link down (SStatus 0 SControl 300)
nov. 15 13:52:09 X220 kernel: usb 1-1.4: reset full-speed USB device number 4 using ehci-pci
nov. 15 13:52:09 X220 kernel: psmouse serio1: synaptics: queried max coordinates: x [..5472], y [..4448]
nov. 15 13:52:09 X220 kernel: OOM killer enabled.
nov. 15 13:52:09 X220 kernel: Restarting tasks ... 
nov. 15 13:52:09 X220 kernel: ACPI: \_SB_.PCI0.SAT1.SCND.MSTR: docking
nov. 15 13:52:09 X220 kernel: ACPI: \_SB_.PCI0.SAT1.SCND.MSTR: Unable to dock!
nov. 15 13:52:09 X220 kernel: done.
nov. 15 13:52:09 X220 kernel: usb 1-1.3: USB disconnect, device number 7
nov. 15 13:52:09 X220 systemd-logind[511]: Lid opened.
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/ldac_hq
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/ldac_sq
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/ldac_mq
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSink/aptx_hd
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/aptx_hd
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSink/aptx
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/aptx
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc_xq_453
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc_xq_453
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc_xq_512
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc_xq_512
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc_xq_552
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint unregistered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc_xq_552
nov. 15 13:52:09 X220 systemd-sleep[5876]: System returned from sleep state.
nov. 15 13:52:09 X220 kernel: video LNXVIDEO:00: Restoring backlight state
nov. 15 13:52:09 X220 kernel: PM: suspend exit
nov. 15 13:52:09 X220 pulseaudio[1188]: Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/ldac_hq
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/ldac_sq
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/ldac_mq
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink/aptx_hd
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/aptx_hd
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink/aptx
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/aptx
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc_xq_453
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc_xq_453
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc_xq_512
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc_xq_512
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSink/sbc_xq_552
nov. 15 13:52:09 X220 bluetoothd[1005]: Endpoint registered: sender=:1.34 path=/MediaEndpoint/A2DPSource/sbc_xq_552
nov. 15 13:52:09 X220 kernel: ata4: failed to resume link (SControl 0)
nov. 15 13:52:09 X220 kernel: usb 1-1.3: new full-speed USB device number 8 using ehci-pci
nov. 15 13:52:09 X220 kernel: ata4: SATA link down (SStatus 4 SControl 0)
nov. 15 13:52:09 X220 systemd[1102]: Stopped target Bluetooth.
nov. 15 13:52:09 X220 systemd[1]: Stopped target Bluetooth Support.
nov. 15 13:52:09 X220 systemd[1]: Reached target Bluetooth Support.
nov. 15 13:52:09 X220 systemd[1102]: Reached target Bluetooth.
nov. 15 13:52:09 X220 audit[522]: USYS_CONFIG pid=522 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='op=radio-control arg="wwan-enabled:on" pid=5959 uid=0 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
nov. 15 13:52:09 X220 NetworkManager[522]: <info>  [1668516729.5678] audit: op="radio-control" arg="wwan-enabled:on" pid=5959 uid=0 result="success"
nov. 15 13:52:09 X220 kernel: audit: type=1111 audit(1668516729.562:311): pid=522 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='op=radio-control arg="wwan-enabled:on" pid=5959 uid=0 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
nov. 15 13:52:09 X220 kernel: usb 1-1.3: New USB device found, idVendor=147e, idProduct=2016, bcdDevice= 0.02
nov. 15 13:52:09 X220 kernel: usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
nov. 15 13:52:09 X220 kernel: usb 1-1.3: Product: Biometric Coprocessor
nov. 15 13:52:09 X220 kernel: usb 1-1.3: Manufacturer: UPEK
nov. 15 13:52:09 X220 mtp-probe[5965]: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3"
nov. 15 13:52:09 X220 bluetoothd[1005]: src/adv_monitor.c:btd_adv_monitor_power_down() Unexpected NULL btd_adv_monitor_manager object upon power down
nov. 15 13:52:09 X220 mtp-probe[5965]: bus: 1, device: 8 was not an MTP device
nov. 15 13:52:09 X220 dbus-daemon[508]: [system] Activating via systemd: service name='org.blueman.Mechanism' unit='blueman-mechanism.service' requested by ':1.49' (uid=1000 pid=1346 comm="/usr/bin/python /usr/bin/blueman-applet")
nov. 15 13:52:09 X220 systemd[1]: Starting Bluetooth management mechanism...
nov. 15 13:52:09 X220 kernel: ata1.01: failed to resume link (SControl 0)
nov. 15 13:52:09 X220 kernel: ata2.01: failed to resume link (SControl 0)
nov. 15 13:52:09 X220 kernel: ata2.00: SATA link down (SStatus 0 SControl 300)
nov. 15 13:52:09 X220 kernel: ata2.01: SATA link down (SStatus 0 SControl 0)
nov. 15 13:52:09 X220 dbus-daemon[508]: [system] Successfully activated service 'org.blueman.Mechanism'
nov. 15 13:52:09 X220 systemd[1]: Started Bluetooth management mechanism.
nov. 15 13:52:09 X220 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
nov. 15 13:52:09 X220 kernel: audit: type=1130 audit(1668516729.839:312): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=unconfined msg='unit=blueman-mechanism comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
nov. 15 13:52:09 X220 kernel: ata1.00: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
nov. 15 13:52:09 X220 kernel: ata1.01: SATA link down (SStatus 0 SControl 0)
nov. 15 13:52:09 X220 kernel: ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
nov. 15 13:52:09 X220 kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
nov. 15 13:52:09 X220 kernel: ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
nov. 15 13:52:09 X220 kernel: ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
nov. 15 13:52:09 X220 kernel: ata1.00: configured for UDMA/133
nov. 15 13:52:10 X220 systemd[1]: systemd-suspend.service: Deactivated successfully.
nov. 15 13:52:10 X220 systemd[1]: Finished System Suspend.

edit: I checked the wakeup table on the other X220, which had the same items : LID is enabled, alongside SLPB, ECH1, ECH2, etc. except IGBE. Anyway I tried to replicate it but of course it doesn’t work. Hence the problem must be elsewhere…

edit2: after reading suggestions that kernel upgrade solved the issues for some users, I updated kernel to the last non-rc version proposed by Manjaro utility which is 6.0.8, unfortunately in vain.

I also livebooted from Ubuntu to discard any idiosyncrasies with my manjaro-setup, and the problem is still here. From what I keep reading, my next stop is flashing the BIOS (1.17 from 2011-05-31 at the moment).