You are not logged in.

#1 2022-11-12 04:53:28

archielogist
Member
Registered: 2022-11-12
Posts: 3

Automatically waking up from suspension, then shuts down later.

Hi. New installation with gdm+xfce4. Most settings are the default.

I put my unplugged laptop to sleep and found it turned off hours later.
According to the log it seems to have woke itself up and shut itself down.

All the power settings in xfce4 is to do nothing under any circumstances unless the power button is pressed.

The display/screensaver settings have some power saving options enabled though, but only for the display itself under "Display power management" in xfce4.
Blank after: one minute
Put to sleep after: 14 minutes
Switch off after: 16 minutes

Here's a log of the incident, with rows believed to be irrelevant removed. Log is empty (nothing happens) between the bursts of logged events.

Any insight into why this might be happening? Thanks in advance.

01:11:53 systemd-logind: Power key pressed short.
01:11:53 systemd[1]: Reached target Sleep.
01:11:53 systemd[1]: Starting System Suspend...
01:11:53 systemd-sleep[54341]: Entering sleep state 'suspend'...
01:11:53 kernel: PM: suspend entry (deep)
01:11:53 kernel: Filesystems sync: 0.007 seconds
11:04:18 kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
11:04:18 kernel: OOM killer disabled.
11:04:18 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
11:04:18 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
11:04:18 kernel: ACPI: EC: interrupt blocked
11:04:18 kernel: ACPI: PM: Preparing to enter system sleep state S3
11:04:18 kernel: ACPI: EC: event blocked
11:04:18 kernel: ACPI: EC: EC stopped
11:04:18 kernel: ACPI: PM: Saving platform NVS memory
11:04:18 kernel: Disabling non-boot CPUs ...
11:04:18 kernel: smpboot: CPU 1 is now offline
11:04:18 kernel: smpboot: CPU 2 is now offline
11:04:18 kernel: smpboot: CPU 3 is now offline
11:04:18 kernel: smpboot: CPU 4 is now offline
11:04:18 kernel: smpboot: CPU 5 is now offline
11:04:18 kernel: smpboot: CPU 6 is now offline
11:04:18 kernel: smpboot: CPU 7 is now offline
11:04:18 kernel: [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -56545678. Restoring
11:04:18 kernel: ACPI: PM: Low-level resume complete
11:04:18 kernel: ACPI: EC: EC started
11:04:18 kernel: ACPI: PM: Restoring platform NVS memory
11:04:18 kernel: Enabling non-boot CPUs ...
11:04:18 kernel: x86: Booting SMP configuration:
11:04:18 kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
11:04:18 kernel: CPU1 is up
11:04:18 kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
11:04:18 kernel: CPU2 is up
11:04:18 kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
11:04:18 kernel: CPU3 is up
11:04:18 kernel: smpboot: Booting Node 0 Processor 4 APIC 0x1
11:04:18 kernel: CPU4 is up
11:04:18 kernel: smpboot: Booting Node 0 Processor 5 APIC 0x3
11:04:18 kernel: CPU5 is up
11:04:18 kernel: smpboot: Booting Node 0 Processor 6 APIC 0x5
11:04:18 kernel: CPU6 is up
11:04:18 kernel: smpboot: Booting Node 0 Processor 7 APIC 0x7
11:04:18 kernel: CPU7 is up
11:04:18 kernel: ACPI: PM: Waking up from system sleep state S3
11:04:18 kernel: ACPI: EC: interrupt unblocked
11:04:18 kernel: ACPI: EC: event unblocked
11:04:18 kernel: OOM killer enabled.
11:04:18 kernel: Restarting tasks ... done.
11:04:18 kernel: random: crng reseeded on system resumption
11:04:18 systemd-logind: Lid closed.
11:04:18 systemd[1]: Daily man-db regeneration was skipped because of a failed condition check (ConditionACPower=true).
11:04:18 systemd-sleep[54341]: System returned from sleep state.
11:04:18 kernel: PM: suspend exit
11:04:18 systemd[1]: systemd-suspend.service: Deactivated successfully.
11:04:18 systemd[1]: Finished System Suspend.
11:04:18 systemd[1]: Stopped target Sleep.
11:04:18 systemd[1]: Reached target Suspend.
11:04:18 systemd[1]: Stopped target Suspend.
11:04:18 systemd-logind: Operation 'sleep' finished.
11:04:20 xfce4-screensaver-dialog[54419]: PAM unable to dlopen(/usr/lib/security/pam_gnome_keyring.so): /usr/lib/security/pam_gnome_keyring.so: cannot open shared object file: No>
11:04:20 xfce4-screensaver-dialog[54419]: PAM adding faulty module: /usr/lib/security/pam_gnome_keyring.so
11:04:20 xfce4-screensaver-dialog[54419]: pam_systemd_home(xfce4-screensaver:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
11:20:49 systemd-logind: System is powering down.
11:20:49 systemd[1]: Stopping Session 3 of User xavier...
11:20:49 systemd[1]: Stopped target Multi-User System.
11:20:49 systemd-logind: Session 3 logged out. Waiting for processes to exit.
11:20:49 dbus-daemon[570]: [system] Activation via systemd failed for unit 'accounts-daemon.service': Refusing activation, D-Bus is shutting down.
11:20:49 systemd[1]: gdm.service: Main process exited, code=exited, status=1/FAILURE
11:20:49 systemd[1]: gdm.service: Failed with result 'exit-code'.
11:20:49 systemd[1]: Stopped GNOME Display Manager.
11:20:50 systemd[1]: upower.service: Deactivated successfully.
11:20:50 systemd[1]: Stopped Daemon for power management.
11:20:50 mkinitcpio[54569]: ==> Starting build: none
11:20:50 mkinitcpio[54569]:   -> Running build hook: [sd-shutdown]
11:20:50 mkinitcpio[54569]: ==> Build complete.
11:20:50 systemd[1]: mkinitcpio-generate-shutdown-ramfs.service: Deactivated successfully.
11:20:50 systemd[1]: Finished Generate shutdown-ramfs.
11:20:52 systemd[1]: Reached target System Shutdown.
11:20:52 systemd[1]: Reached target Late Shutdown Services.
11:20:52 systemd[1]: systemd-poweroff.service: Deactivated successfully.
11:20:52 systemd[1]: Finished System Power Off.
11:20:52 systemd[1]: Reached target System Power Off.
11:20:52 systemd[1]: Shutting down.

Last edited by archielogist (2022-11-12 23:45:48)

Offline

#2 2022-11-12 06:13:21

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Automatically waking up from suspension, then shuts down later.

Welcome to the forums. Please edit your post to use [ code ] [ /code ] tags as it makes output more readable.

I don't use xfce, but systemd can conflict with DE power management, as might anything else you've installed to manage power. Look in /etc/systemd/logind.conf and see the manual page for details of what the options do.

What do those times correspond to? When did you return to the laptop? At 11:04? Or 11:20? Or some other time? What was the state of the battery at that point?

Do you have Windows installed?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2022-11-13 04:03:11

archielogist
Member
Registered: 2022-11-12
Posts: 3

Re: Automatically waking up from suspension, then shuts down later.

My best guess so far is that some type of PCI-device is waking up the computer.

Possible hint:

[xavier@CCCP ~]$ cat /proc/acpi/wakeup 
Device	S-state	  Status
XHC	  S3	*enabled

That XHC wakeup thing can be disabled. Not going to be pretty, but it's doable.

There's a tool called "powertop" however, that list devices that can wake up the computer (I guess). It isn't showing any devices on its "WakeUp"-list that with their "WakeUp"-property enabled (it's disabled for all the listed devices).

I'll have to do some experimenting.. and a lot of waiting i suppose.

cfr wrote:

Welcome to the forums. Please edit your post to use [ code ] [ /code ] tags as it makes output more readable.

I don't use xfce, but systemd can conflict with DE power management, as might anything else you've installed to manage power. Look in /etc/systemd/logind.conf and see the manual page for details of what the options do.

What do those times correspond to? When did you return to the laptop? At 11:04? Or 11:20? Or some other time? What was the state of the battery at that point?

Do you have Windows installed?

I suspended the computer at 01:11 and went out.
Hours later, 11:04 the computer woke itself up. I'm still out.
About 16 minutes later, the computer powers itself off. I'm still out.
Much later, maybe hours, I got back home and found my computer shut off.
Battery seemed low, yes.

No windows installed.

I found nothing in /etc/systemd/logind.conf that would shut the computer off except for pressing or holding the power button or something like that.

Last edited by archielogist (2022-11-13 04:21:07)

Offline

Board footer

Powered by FluxBB