Shutdown/Sleep/Hibernate/Restart fails

Hi everyone,

i have recently installed OpenSuse 15.4. used 15.3 for a while without any issue. I face i weird problem, my computer can not shutdown or restart or go to sleep mode.

Every time a try one of the above actions i get a a leap logo with a spinning circle and the computer freezes and the only solution is to force a shutdown by pressing the power button.

I use the KDE desktop environment and i have the same behavior with Xfce.

Could you please advice me how i can debug this issue. My laptop is an optimus - intel and nvidia graphics card. Is this the source of the issue?

As i said with leap 15.3 i had never faced such an issue.

Thanks!

My not so good best guess is that there is something corrupt about the upgrade/install … you should post the results of “sudo zypper lr -pE” (or similar) so that we might see from where the packages originate. In my experience, however limited, problems as you describe generally stem from a silly error of some sort. My best guess, your repos are wrong and you are running softwares that conflict with one another.

Please, either –

  • Hit the Escape key during the power off or reboot or sleep or hibernate sequence to see what the Console is displaying –

or

  • Examine the systemd Journal for the boot which hung during power off or reboot or …

The systemd Journal commands you need are:

  • “journalctl --list-boots”
  • “journalctl -b [ID] --system --no-hostname” or “journalctl -b -offset] --system --no-hostname”

Page down to the end of the Journal entries for the affected boot and, check what’s hanging.

Hello again so here are the requested data

The repo list:
https://i.ibb.co/F4TLc1K/repo-list.png](https://ibb.co/RTwktK9)

The terminal during the shutdown, here the computer freezes and cannot type anything:

https://i.ibb.co/JyyNSTT/20220822-223010.jpg](https://ibb.co/pRRgkTT)

The the logs during shutdown, interesting the last entry from udev

Aug 22 22:31:08 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:08 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:08 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:08 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:08 kded5[1773]: Registering “org.kde.StatusNotifierHost-1812” as system tray
Aug 22 22:31:08 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:08 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:08 plasmashell[1812]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/ExpandedRepresentation.qml:165:9: QML HiddenItemsView: Binding loop detected for property “implicitHeight”
Aug 22 22:31:08 plasmashell[1812]: libkcups: 0
Aug 22 22:31:08 plasmashell[1812]: libkcups: 0
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Is net mobile: false
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Is net online: true
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Is net online: true
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Daemon changed
Aug 22 22:31:08 plasmashell[1812]: trying to show an empty dialog
Aug 22 22:31:08 plasmashell[1812]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:118:19: QML Loader: Binding loop detected for property “height”
Aug 22 22:31:08 plasmashell[1812]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:118:19: QML Loader: Binding loop detected for property “height”
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Is net mobile: false
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Is net online: true
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Is net online: true
Aug 22 22:31:08 plasmashell[1812]: plasma-pk-updates: Daemon changed
Aug 22 22:31:08 plasmashell[1812]: QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Aug 22 22:31:09 plasmashell[1812]: plasma-pk-updates: acPlugged initial state true
Aug 22 22:31:09 plasmashell[1812]: plasma-pk-updates: Is on battery: false
Aug 22 22:31:09 plasmashell[1812]: QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Aug 22 22:31:09 plasmashell[1812]: trying to show an empty dialog
Aug 22 22:31:09 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:09 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:10 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:10 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:11 chronyd[1351]: Selected source 84.254.23.95 (2.opensuse.pool.ntp.org)
Aug 22 22:31:11 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:11 rtkit-daemon[1837]: Supervising 4 threads of 2 processes of 1 users.
Aug 22 22:31:12 systemd[1]: Stopping User Manager for UID 474…
Aug 22 22:31:12 systemd[1608]: Stopped target Main User Target.
Aug 22 22:31:12 systemd[1608]: Stopping D-Bus User Message Bus…
Aug 22 22:31:12 systemd[1608]: Stopped D-Bus User Message Bus.
Aug 22 22:31:12 systemd[1608]: Stopped target Basic System.
Aug 22 22:31:12 systemd[1608]: Stopped target Paths.
Aug 22 22:31:12 systemd[1608]: Stopped target Sockets.
Aug 22 22:31:12 systemd[1608]: Stopped target Timers.
Aug 22 22:31:12 systemd[1608]: Stopped Daily Cleanup of User’s Temporary Directories.
Aug 22 22:31:12 systemd[1608]: Closed D-Bus User Message Bus Socket.
Aug 22 22:31:12 systemd[1608]: Closed PipeWire Multimedia System Socket.
Aug 22 22:31:12 systemd[1608]: Closed Sound System.
Aug 22 22:31:12 systemd[1608]: Stopped Create User’s Volatile Files and Directories.
Aug 22 22:31:12 systemd[1608]: Removed slice User Application Slice.
Aug 22 22:31:12 systemd[1608]: Reached target Shutdown.
Aug 22 22:31:12 systemd[1608]: Finished Exit the Session.
Aug 22 22:31:12 systemd[1608]: Reached target Exit the Session.
Aug 22 22:31:12 systemd[1]: user@474.service: Deactivated successfully.
Aug 22 22:31:12 systemd[1]: Stopped User Manager for UID 474.
Aug 22 22:31:12 systemd[1]: Stopping User Runtime Directory /run/user/474…
Aug 22 22:31:12 systemd[1]: run-user-474.mount: Deactivated successfully.
Aug 22 22:31:12 systemd[1]: user-runtime-dir@474.service: Deactivated successfully.
Aug 22 22:31:12 systemd[1]: Stopped User Runtime Directory /run/user/474.
Aug 22 22:31:12 systemd[1]: Removed slice User Slice of UID 474.
Aug 22 22:31:16 systemd-journald[649]: Forwarding to syslog missed 134 messages.
Aug 22 22:31:16 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Aug 22 22:31:24 plasmashell[1812]: trying to show an empty dialog
Aug 22 22:31:26 systemd[1650]: Started Konsole - Terminal.
Aug 22 22:31:27 systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab…
Aug 22 22:31:27 systemd[1]: systemd-localed.service: Deactivated successfully.
Aug 22 22:31:28 PackageKit[2542]: daemon quit
Aug 22 22:31:28 systemd[1]: packagekit.service: Deactivated successfully.
Aug 22 22:31:36 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Aug 22 22:31:43 fstrim[2931]: /home: 96.1 GiB (103133679616 bytes) trimmed on /dev/system/home
Aug 22 22:31:43 fstrim[2931]: /: 44.4 GiB (47627100160 bytes) trimmed on /dev/system/root
Aug 22 22:31:43 systemd[1]: fstrim.service: Deactivated successfully.
Aug 22 22:31:43 systemd[1]: Finished Discard unused blocks on filesystems from /etc/fstab.
Aug 22 22:31:45 su[2981]: (to root) alepapadop on pts/1
Aug 22 22:31:45 su[2981]: pam_unix(su:session): session opened for user root by alepapadop(uid=1000)
Aug 22 22:31:55 systemd-udevd[668]: 0000:01:00.0: Worker [725] processing SEQNUM=2258 is taking a long time

and the logs from journalctl --list-boots

0 c8064e1d041e45bfbb8d7d529488c041 Tue 2022-08-23 01:30:48 EEST—Tue 2022-08-23 00:30:55 EEST

Just curios what if you logout first, then shutdown.
So do logout–logout then shutdown.

@alepapadop:

That the systemd Journal is only listing the current boot is strange.

  • Please check the result of “journalctl --disk-usage
    ”.

Please also check the amount of free disk space available for the ‘/var/’ partition.
At a guess, there ain’t no free space left on the ‘/var/’ partition – and therefore, that’s the reason for the power-off failures – the systemd Journal can not be written – and therefore the failed power-off because, Linux will attempt to preserve the current system messages by whatever reason possible including, not powering off in order that, system administrators have a chance to clean up the mess before the system powers off …

  • You should, possibly, reduce the amount of ‘/var/’ space being used by the systemd Journal – “journalctl --vacuum-time=1months
    ” (for example) … - You should, definitely, verify the internal consistency of the systemd Journal – “journalctl --verify
    ”The only method I’ve found to get rid of corrupt Journal files is, to vacuum until the offending Journal file has been removed …

No luck, i have tried this also and the system freezes again :frowning:

Regarding the *journalctl --disk-usage

Archived and active journals take up 16.0M in the file system.

*Regarding the var directory *

https://i.ibb.co/FKr2yJW/var-dir.png](https://imgbb.com/)
*
Regarding the *journalctl --verify

PASS: /run/log/journal/4229a1cb43b0487b9785f15ada6c4e32/system.journal
PASS: /run/log/journal/241907325ddb4903bcb7d29148e17856/system.journal

I will try to make a fresh install again and provide some feedback. I will try to avoid the btrfs filesystem

No luck with the new install, i have only one computer so i have to switch to a working distro.

Sorry guys i can not stay with leap 15.4 and keep debugging. Thanks to everyone for their help.

See you again with leap 15.5

After some research it seems it is a kernel issue!

Issue solved, I had to blacklist the nouveau drivers

su
vim /etc/modprobe.d/blacklist-nouveau.conf

into the file write>

blacklist nouveau
options nouveau modeset=0

shutdown the system, the shutdown will fail. Restart the system and now the shutdown should work!