You are not logged in.

#1 2021-11-23 11:16:12

Superkasper
Member
Registered: 2020-08-28
Posts: 9

Arch not waking up from suspend on power key press

This may be a duplicate (see e.g. https://bbs.archlinux.org/viewtopic.php?id=271468 but there was no fix there and the thread is regarding Wayland while I am on X11)

As the title suggests, I am having trouble waking up from suspend. Usually this should work when pressing the power key, however this does not do anything for me. The only way to Arch back up is via hard reboot. All power events are handled by systemd, acpid is disabled. Is it possible that I "accidentally" configured the system such that it ignores the power button somehow?

Here are some details about my system


Model Thinkpad T14
CPU Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
CPU 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 pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
CPU bugs spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit srbds
Linux kernel 5.4.98-1-lts (I tried overcoming the freezes using the lts Kernel but no avail)
Xorg Server X.Org X Server 1.21.1.1
X Protocol Version 11, Revision 0

Here is the relevant part of journalctl until I hard rebooted my system.


Nov 23 09:52:55 jarch polkitd[774]: Registered Authentication Agent for unix-process:83015:149622 (system bus name :1.14444 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8003] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8004] device (p2p-dev-wlp0s20f3): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8009] manager: NetworkManager state is now ASLEEP
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8011] device (wlp0s20f3): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Nov 23 09:52:55 jarch polkitd[774]: Unregistered Authentication Agent for unix-process:83015:149622 (system bus name :1.14444, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Nov 23 09:52:55 jarch dbus-daemon[439]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.3' (uid=0 pid=440 comm="/usr/bin/NetworkManager --no-daemon ")
Nov 23 09:52:55 jarch systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov 23 09:52:55 jarch dbus-daemon[439]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 23 09:52:55 jarch systemd[1]: Started Network Manager Script Dispatcher Service.
Nov 23 09:52:55 jarch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 09:52:55 jarch dbus-daemon[736]: [session uid=1000 pid=736] Activating via systemd: service name='org.freedesktop.Notifications' unit='dunst.service' requested by ':1.14419' (uid=1000 pid=83043 comm="dbus-send --print-reply=literal --dest=org.freedes")
Nov 23 09:52:55 jarch kernel: audit: type=1130 audit(1637657575.808:157): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 23 09:52:55 jarch kernel: wlp0s20f3: deauthenticating from 2c:91:ab:5f:18:0d by local choice (Reason: 3=DEAUTH_LEAVING)
Nov 23 09:52:55 jarch systemd[655]: Starting Dunst notification daemon...
Nov 23 09:52:55 jarch wpa_supplicant[536]: wlp0s20f3: CTRL-EVENT-DISCONNECTED bssid=2c:91:ab:5f:18:0d reason=3 locally_generated=1
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8240] device (wlp0s20f3): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Nov 23 09:52:55 jarch wpa_supplicant[536]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=0 noise=9999 txrate=0
Nov 23 09:52:55 jarch avahi-daemon[437]: Withdrawing address record for 2001:16b8:4856:ff00:df6f:1f4e:90e1:cf19 on wlp0s20f3.
Nov 23 09:52:55 jarch avahi-daemon[437]: Leaving mDNS multicast group on interface wlp0s20f3.IPv6 with address 2001:16b8:4856:ff00:df6f:1f4e:90e1:cf19.
Nov 23 09:52:55 jarch avahi-daemon[437]: Joining mDNS multicast group on interface wlp0s20f3.IPv6 with address fe80::2bea:1b33:8f38:9e37.
Nov 23 09:52:55 jarch avahi-daemon[437]: Registering new address record for fe80::2bea:1b33:8f38:9e37 on wlp0s20f3.*.
Nov 23 09:52:55 jarch avahi-daemon[437]: Withdrawing address record for fe80::2bea:1b33:8f38:9e37 on wlp0s20f3.
Nov 23 09:52:55 jarch avahi-daemon[437]: Leaving mDNS multicast group on interface wlp0s20f3.IPv6 with address fe80::2bea:1b33:8f38:9e37.
Nov 23 09:52:55 jarch avahi-daemon[437]: Interface wlp0s20f3.IPv6 no longer relevant for mDNS.
Nov 23 09:52:55 jarch dunst[83045]: WARNING: Setting geometry in section global doesn't exist
Nov 23 09:52:55 jarch dunst[83045]: WARNING: Setting notification_height in section global doesn't exist
Nov 23 09:52:55 jarch dunst[83045]: WARNING: Setting startup_notification in section global doesn't exist
Nov 23 09:52:55 jarch dunst[83045]: WARNING: Setting verbosity in section global doesn't exist
Nov 23 09:52:55 jarch dunst[83045]: WARNING: Section shortcuts is deprecated. Ignoring
Nov 23 09:52:55 jarch dbus-daemon[736]: [session uid=1000 pid=736] Successfully activated service 'org.freedesktop.Notifications'
Nov 23 09:52:55 jarch systemd[655]: Started Dunst notification daemon.
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8900] dhcp4 (wlp0s20f3): canceled DHCP transaction
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8900] dhcp4 (wlp0s20f3): state changed bound -> terminated
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8904] dhcp6 (wlp0s20f3): canceled DHCP transaction
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.8904] dhcp6 (wlp0s20f3): state changed bound -> terminated
Nov 23 09:52:55 jarch avahi-daemon[437]: Interface wlp0s20f3.IPv4 no longer relevant for mDNS.
Nov 23 09:52:55 jarch avahi-daemon[437]: Leaving mDNS multicast group on interface wlp0s20f3.IPv4 with address 192.168.178.28.
Nov 23 09:52:55 jarch avahi-daemon[437]: Withdrawing address record for 192.168.178.28 on wlp0s20f3.
Nov 23 09:52:55 jarch NetworkManager[440]: <info>  [1637657575.9053] device (wlp0s20f3): set-hw-addr: set MAC address to 62:48:12:32:79:49 (scanning)
Nov 23 09:52:56 jarch avahi-daemon[437]: Joining mDNS multicast group on interface wlp0s20f3.IPv4 with address 192.168.178.28.
Nov 23 09:52:56 jarch avahi-daemon[437]: New relevant interface wlp0s20f3.IPv4 for mDNS.
Nov 23 09:52:56 jarch avahi-daemon[437]: Registering new address record for 192.168.178.28 on wlp0s20f3.IPv4.
Nov 23 09:52:56 jarch avahi-daemon[437]: Withdrawing address record for 192.168.178.28 on wlp0s20f3.
Nov 23 09:52:56 jarch avahi-daemon[437]: Leaving mDNS multicast group on interface wlp0s20f3.IPv4 with address 192.168.178.28.
Nov 23 09:52:56 jarch avahi-daemon[437]: Interface wlp0s20f3.IPv4 no longer relevant for mDNS.
Nov 23 09:52:56 jarch NetworkManager[440]: <info>  [1637657576.1303] device (wlp0s20f3): supplicant interface state: completed -> disconnected
Nov 23 09:52:56 jarch NetworkManager[440]: <info>  [1637657576.1313] device (wlp0s20f3): supplicant interface state: disconnected -> interface_disabled
Nov 23 09:52:56 jarch NetworkManager[440]: <info>  [1637657576.1315] device (wlp0s20f3): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Nov 23 09:52:56 jarch NetworkManager[440]: <info>  [1637657576.1458] device (wlp0s20f3): set-hw-addr: reset MAC address to C8:58:C0:29:78:B8 (unmanage)
Nov 23 09:52:56 jarch systemd[1]: Reached target Sleep.
Nov 23 09:52:56 jarch systemd[1]: Starting System Suspend...
Nov 23 09:52:56 jarch systemd-sleep[83087]: Entering sleep state 'suspend'...
-- Boot 8b44e97e855c40a097adb18cb0e94d7f --

This is the content of my /etc/systemd/logind.conf

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate

HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend

#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Offline

Board footer

Powered by FluxBB