systemd-sleep - suspend not working
Hello, I noticed that suspend on my Laptop is not working anymore. The log offers: https://paste.opensuse.org/pastes/8e73d324319d I guess the issue is this: Aug 04 07:46:48 X1E systemd-sleep[260321]: User sessions remain unfrozen (add $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=1 to override), Aug 04 07:46:48 X1E systemd-sleep[260321]: relying on kernel to perform the freeze. Aug 04 07:46:48 X1E systemd-sleep[260321]: This is a temporary downstream workaround for https://github.com/systemd/systemd/issues/33083. Aug 04 07:46:48 X1E systemd-sleep[260326]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend Aug 04 07:46:48 X1E systemd-sleep[260321]: Performing sleep operation 'suspend'... Aug 04 07:46:48 X1E kernel: PM: suspend entry (deep) Aug 04 07:46:48 X1E kernel: Filesystems sync: 0.040 seconds Aug 04 07:47:08 X1E kernel: Freezing user space processes Aug 04 07:47:08 X1E kernel: Freezing user space processes failed after 20.009 seconds (2 tasks refusing to freeze, wq_busy=0): Aug 04 07:47:08 X1E kernel: task:KIO::WorkerThre state:D stack:0 pid:216745 tgid:216055 ppid:1914 flags:0x00004006 Where should the parameter be added? As Kernel parameter on boot? I have opened https://bugzilla.opensuse.org/show_bug.cgi?id=1228833 for this Cheers Axel
On 04.08.2024 17:30, Axel Braun wrote:
Hello,
I noticed that suspend on my Laptop is not working anymore. The log offers: https://paste.opensuse.org/pastes/8e73d324319d
I guess the issue is this:
Aug 04 07:46:48 X1E systemd-sleep[260321]: User sessions remain unfrozen (add $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=1 to override), Aug 04 07:46:48 X1E systemd-sleep[260321]: relying on kernel to perform the freeze. Aug 04 07:46:48 X1E systemd-sleep[260321]: This is a temporary downstream workaround for https://github.com/systemd/systemd/issues/33083. Aug 04 07:46:48 X1E systemd-sleep[260326]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend Aug 04 07:46:48 X1E systemd-sleep[260321]: Performing sleep operation 'suspend'... Aug 04 07:46:48 X1E kernel: PM: suspend entry (deep) Aug 04 07:46:48 X1E kernel: Filesystems sync: 0.040 seconds Aug 04 07:47:08 X1E kernel: Freezing user space processes Aug 04 07:47:08 X1E kernel: Freezing user space processes failed after 20.009 seconds (2 tasks refusing to freeze, wq_busy=0): Aug 04 07:47:08 X1E kernel: task:KIO::WorkerThre state:D stack:0 pid:216745 tgid:216055 ppid:1914 flags:0x00004006
'D' state means that process is stuck in kernel. It could be device issue, it could be communication issue (like non-responsive NFS server), it could be kernel bug (deadlock). That is what you need to investigate.
Where should the parameter be added? As Kernel parameter on boot?
Kernel parameter may work, but normally you would add Environment=SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=1 to the unit definition that starts this service. I doubt it will help.
I have opened https://bugzilla.opensuse.org/show_bug.cgi?id=1228833 for this
Cheers Axel
On 04. 08. 24, 16:42, Andrei Borzenkov wrote:
On 04.08.2024 17:30, Axel Braun wrote:
Hello,
I noticed that suspend on my Laptop is not working anymore. The log offers: https://paste.opensuse.org/pastes/8e73d324319d
I guess the issue is this:
Aug 04 07:46:48 X1E systemd-sleep[260321]: User sessions remain unfrozen (add $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=1 to override), Aug 04 07:46:48 X1E systemd-sleep[260321]: relying on kernel to perform the freeze. Aug 04 07:46:48 X1E systemd-sleep[260321]: This is a temporary downstream workaround for https://github.com/systemd/systemd/issues/33083. Aug 04 07:46:48 X1E systemd-sleep[260326]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend Aug 04 07:46:48 X1E systemd-sleep[260321]: Performing sleep operation 'suspend'... Aug 04 07:46:48 X1E kernel: PM: suspend entry (deep) Aug 04 07:46:48 X1E kernel: Filesystems sync: 0.040 seconds Aug 04 07:47:08 X1E kernel: Freezing user space processes Aug 04 07:47:08 X1E kernel: Freezing user space processes failed after 20.009 seconds (2 tasks refusing to freeze, wq_busy=0): Aug 04 07:47:08 X1E kernel: task:KIO::WorkerThre state:D stack:0 pid:216745 tgid:216055 ppid:1914 flags:0x00004006
'D' state means that process is stuck in kernel. It could be device issue, it could be communication issue (like non-responsive NFS server), it could be kernel bug (deadlock). That is what you need to investigate.
From the log above, both tasks are in fuse_dir_open()->fuse_simple_request(). What filesystems have you mounted by fuse? -- js suse labs
Helo Jiri, Am Montag, 5. August 2024, 08:33:18 MESZ schrieb Jiri Slaby:
On 04. 08. 24, 16:42, Andrei Borzenkov wrote:
On 04.08.2024 17:30, Axel Braun wrote:
Hello,
I noticed that suspend on my Laptop is not working anymore. The log offers: https://paste.opensuse.org/pastes/8e73d324319d
I guess the issue is this:
Aug 04 07:46:48 X1E systemd-sleep[260321]: User sessions remain unfrozen (add $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=1 to override), Aug 04 07:46:48 X1E systemd-sleep[260321]: relying on kernel to perform the freeze. Aug 04 07:46:48 X1E systemd-sleep[260321]: This is a temporary downstream workaround for https://github.com/systemd/systemd/issues/33083. Aug 04 07:46:48 X1E systemd-sleep[260326]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend Aug 04 07:46:48 X1E systemd-sleep[260321]: Performing sleep operation 'suspend'... Aug 04 07:46:48 X1E kernel: PM: suspend entry (deep) Aug 04 07:46:48 X1E kernel: Filesystems sync: 0.040 seconds Aug 04 07:47:08 X1E kernel: Freezing user space processes Aug 04 07:47:08 X1E kernel: Freezing user space processes failed after 20.009 seconds (2 tasks refusing to freeze, wq_busy=0): Aug 04 07:47:08 X1E kernel: task:KIO::WorkerThre state:D stack:0 pid:216745 tgid:216055 ppid:1914 flags:0x00004006
'D' state means that process is stuck in kernel. It could be device issue, it could be communication issue (like non-responsive NFS server), it could be kernel bug (deadlock). That is what you need to investigate.
From the log above, both tasks are in fuse_dir_open()->fuse_simple_request(). What filesystems have you mounted by fuse?
I guess its a default: docb@X1E:~/buildservice> cat /proc/mounts /dev/nvme0n1p3 / btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=2100,subvol=/@/.snapshots/1691/snapshot 0 0 devtmpfs /dev devtmpfs rw,nosuid,size=4096k,nr_inodes=2006827,mode=755,inode64 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0 pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0 bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /run tmpfs rw,nosuid,nodev,size=3227556k,nr_inodes=819200,mode=755,inode64 0 0 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12600 0 0 none /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0 tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0 mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0 hugetlbfs /dev/hugepages hugetlbfs rw,nosuid,nodev,relatime,pagesize=2M 0 0 tmpfs /run/credentials/systemd-udev-load-credentials.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0 configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /run/credentials/systemd-tmpfiles-setup-dev-early.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 tmpfs /run/credentials/systemd-journald.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 tmpfs /run/credentials/systemd-sysctl.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 tmpfs /run/credentials/systemd-tmpfiles-setup-dev.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 tmpfs /run/credentials/systemd-cryptsetup@cr_home.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 tmpfs /run/credentials/systemd-vconsole-setup.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 /dev/nvme0n1p3 /.snapshots btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=265,subvol=/@/.snapshots 0 0 /dev/nvme0n1p3 /root btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=261,subvol=/@/root 0 0 /dev/nvme0n1p3 /boot/grub2/i386-pc btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=264,subvol=/@/boot/grub2/i386-pc 0 0 /dev/nvme0n1p3 /boot/grub2/x86_64-efi btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=263,subvol=/@/boot/grub2/x86_64-efi 0 0 /dev/nvme0n1p3 /opt btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=262,subvol=/@/opt 0 0 /dev/nvme0n1p3 /tmp btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=259,subvol=/@/tmp 0 0 /dev/nvme0n1p3 /srv btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=260,subvol=/@/srv 0 0 /dev/nvme0n1p3 /usr/local btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=258,subvol=/@/usr/local 0 0 /dev/nvme0n1p3 /var btrfs rw,relatime,ssd,discard=async,space_cache,subvolid=257,subvol=/@/var 0 0 /dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0 /dev/mapper/cr_home /home xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 tmpfs /run/credentials/systemd-tmpfiles-setup.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /run/credentials/getty@tty1.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap 0 0 tmpfs /run/user/1001 tmpfs rw,nosuid,nodev,relatime,size=1613776k,nr_inodes=403444,mode=700,uid=1001,gid=100,inode64 0 0 gvfsd-fuse /run/user/1001/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1001,group_id=100 0 0 portal /run/user/1001/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1001,group_id=100 0 0 tracefs /sys/kernel/debug/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0 Cheers Axel
participants (3)
-
Andrei Borzenkov
-
Axel Braun
-
Jiri Slaby