Sleep and hibernate don't work anymore in KDE plasma

Hi,

When I installed Manjaro KDE, I remember testing sleep and hibernate and they worked.
I don't know exactly when it happened (I guess 2 days ago when there was a bunch of updates), but now sleep, hibernate or closing just make the screen black while I can still move the mouse and even click on buttons (the pointer changes), even typing text works. After a few random inputs I get the image back.

Any idea?

Issue systemctl hibernate in the command line. When it comes back, issue journalctl -xe -b and post the results here.

I get Failed to hibernate system via logind: Not enough swap space for hibernation.

[louisabraham@pbp ~]$ free -h
              total        used        free      shared  buff/cache   available
Mem:          3.7Gi       2.2Gi       769Mi       293Mi       722Mi       1.1Gi
Swap:         5.6Gi        24Mi       5.6Gi
[louisabraham@pbp ~]$ swapon 
NAME       TYPE       SIZE  USED PRIO
/swapfile  file      1024M    0B   -2
/dev/zram0 partition  4.6G 24.3M    5

Is something wrong with this setting? I think sleeping worked at some point.

Then I resized my swap to 4GB and I observe the following:

  • sleep (suspend) only works the first time after reboot then just locks the screen (I have already seen this problem in the past, don't remember how to fix it though, I think it just was fixed by an update)
  • hibernate restarts the computer. To be more precise, the screen locks, becomes black then after a few seconds the lock screen reappears and the computer shuts down.

Your command only shows the last boot and it's quite hard to find the exact reboot moment in the logs, the timestamps are scrambled.

Using journalctl -x --since=[date], I get:

Mar 31 20:06:20 pbp polkitd[1092]: Registered Authentication Agent for unix-process:3136:55049 (system bus name :1.208 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/Au>
Mar 31 20:06:20 pbp kded5[1219]: bluedevil: About to suspend
Mar 31 20:06:20 pbp ksmserver[1268]: lock called
Mar 31 20:06:20 pbp NetworkManager[735]: <info>  [1585677980.8518] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Mar 31 20:06:20 pbp NetworkManager[735]: <info>  [1585677980.8521] device (p2p-dev-wlan0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Mar 31 20:06:20 pbp NetworkManager[735]: <info>  [1585677980.8548] manager: NetworkManager state is now ASLEEP
Mar 31 20:06:20 pbp polkitd[1092]: Unregistered Authentication Agent for unix-process:3136:55049 (system bus name :1.208, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8) (discon>
Mar 31 20:06:20 pbp ksmserver[1268]: Lock window Id:  23068678
Mar 31 20:06:20 pbp ksmserver[1268]: CreateNotify: 23068678
Mar 31 20:06:20 pbp ksmserver[1268]: CreateNotify: 23068680
Mar 31 20:06:20 pbp org_kde_powerdevil[1303]: powerdevil: Pausing all media players before sleep
Mar 31 20:06:21 pbp ksmserver[1268]: CreateNotify: 88080388
Mar 31 20:06:21 pbp kscreenlocker_greet[3141]: Qt: Session management error: networkIdsList argument is NULL
Mar 31 20:06:21 pbp ksmserver[1268]: CreateNotify: 88080392
Mar 31 20:06:21 pbp kscreenlocker_greet[3141]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/wallpapers/Breath2/contents/images/"
Mar 31 20:06:21 pbp kscreenlocker_greet[3141]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/wallpapers/Breath2/contents/images/"
Mar 31 20:06:21 pbp kscreenlocker_greet[3141]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/wallpapers/Breath2/contents/images/"
Mar 31 20:06:21 pbp kscreenlocker_greet[3141]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:76:9: Unable to assign [undefined] to QStringList
Mar 31 20:06:21 pbp kscreenlocker_greet[3141]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:75:9: Unable to assign [undefined] to int
Mar 31 20:06:21 pbp ksmserver[1268]: CreateNotify: 88080394
Mar 31 20:06:21 pbp ksmserver[1268]: CreateNotify: 88080396
Mar 31 20:06:21 pbp ksmserver[1268]: MapNotify: 88080394
Mar 31 20:06:21 pbp ksmserver[1268]: CreateNotify: 41949055
Mar 31 20:06:21 pbp ksmserver[1268]: MapNotify: 23068678
Mar 31 20:06:21 pbp systemd[1]: Reached target Sleep.
-- Subject: A start job for unit sleep.target has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit sleep.target has finished successfully.
-- 
-- The job identifier is 1301.
Mar 31 20:06:21 pbp systemd[1]: Starting Hibernate...
-- Subject: A start job for unit systemd-hibernate.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit systemd-hibernate.service has begun execution.
-- 
-- The job identifier is 1300.
Mar 31 20:06:22 pbp kscreenlocker_greet[3141]: UdevQt: unable to create udev monitor connection
Mar 31 20:06:22 pbp kscreenlocker_greet[3141]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Mar 31 20:06:22 pbp kscreenlocker_greet[3141]: file:///usr/share/plasma/look-and-feel/org.kde.breath2.desktop/contents/components/VirtualKeyboard.qml:20:1: module "QtQuick.VirtualKeyboard" is not installed
Mar 31 20:06:22 pbp ksmserver[1268]: CreateNotify: 88080406
Mar 31 20:06:23 pbp systemd-sleep[3153]: Suspending system...
-- Subject: System sleep state hibernate entered
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The system has now entered the hibernate sleep state.
Mar 31 20:06:23 pbp kernel: PM: hibernation: hibernation entry
Mar 31 20:06:23 pbp kernel: dwmmc_rockchip fe310000.mmc: pre_suspend failed for non-removable host: -38

But I feel like the moment when the screen lit up again doesn't show.

I would suggest installing and testing at least 4 alternate kernels (both older and newer). Install kernels through Manjaro Settings Manager, and always have at least two kernels installed at all times for safety. Please list which kernels you have tested.

This seems likely a kernel related issue. If testing the regular kernels brought no improvement, then test one of the real time kernels.

Just for future reference, before starting any help thread always test 2 or 3 alternate kernels first. Issues that you may never expect to be related to the kernel, often are.

How to switch kernels:

When you reboot if you do not see the grub boot screen press and hold down the ESC, SHIFT or F8 key. This should show the GRUB boot menu if it doesn't appear. As soon as you see the grub boot screen, press the down arrow. Select the "advanced" menu from the choices and press enter. In the next menu you can select the different kernels you have installed to boot from. Select the regular kernel you wish boot into (not the fallback), and then press enter to complete the kernel change.

The kernel window from the Manjaro Settings Manager is empty, not sure what to do.
I'm not sure a lot of kernels are supported on my machine (pinebook pro)

I too tend to think it's a kernel issue.

actually I think sleep just locks the screen.

I also tried sudo pacman -S linux-pinebookpro pinebookpro-post-install but it doesn't change anything.

Sorry, I did not notice this was a Manjaro Arm issue. The kernel options are limited with Arm.

2 Likes

You are swapping in RAM. Look at your output. You have 5.6GB of swap, 1GB resides in disk and 4.6GB resides in RAM. Of course there isn't enough space to hibernate! Unless systemd manages your swapfile automatically as needed, which I doubt it does, at least for hibernation, you'll need to increase it quite a bit. I suggest you give it the same size of your RAM.

1 Like

Hi, after the last update sleep works again.

However, hibernate still doesn't work and shuts my computer down.

If the computer shuts down, then the problem may be on resuming, not hibernating.

2 Likes

This topic was automatically closed after 90 days. New replies are no longer allowed.

Forum kindly sponsored by