I already had this problem randomly when I was under Fedora KDE edition and it was one of the motivations to reformat my PC.
But now it seems to happen systematically : when I want to hibernate, my pc simply shutdown. When I reboot, I arrive on a virgin desktop without all my opened windows.
Please read this: How to provide good information
and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…
An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.
Most of the time, if hibernation doesn’t work, it is either not enough swap space or something wrong with the nvidia driver.
You might be right about swap, this shouldn’t be a problem.
The dmesg output might only be relevant for the time during hibernating or waking-up. If the system crashes, I don’t see an option to recover this output. The journal journalctl -xeb should give some insight.
Maybe it has something to to with the swap partition being encrypted. I don’t know the order but have you tried it with the actual UUID instead of the luks-id?
the journalctl seems to give some warnings and errors :
août 26 17:55:08 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:55:08 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:55:13 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:55:13 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:55:16 weg systemd[694]: Started Application launched by gnome-shell.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:17 weg dbus-daemon[765]: [session uid=1000 pid=765] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.103' (uid=1000 pid=1962 >
août 26 17:55:17 weg systemd[694]: Created slice Slice /app/org.gnome.Terminal.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:17 weg systemd[694]: Starting GNOME Terminal Server...
░░ Subject: L'unité (unit) UNIT a commencé à démarrer
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a commencé à démarrer.
août 26 17:55:17 weg dbus-daemon[765]: [session uid=1000 pid=765] Successfully activated service 'org.gnome.Terminal'
août 26 17:55:17 weg systemd[694]: Started GNOME Terminal Server.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:17 weg systemd[694]: Started VTE child process 1990 launched by gnome-terminal-server process 1968.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
ESCOC
ct: Connection refused
ct: Connection refused
ct: Connection refused
ct: Connection refused
ct: Connection refused
ct: Connection refused
ct: Connection refused
ct: Connection refused
name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.103' (uid=1000 pid=1962 comm="gnome-terminal --window ")
'org.gnome.Terminal'
er process 1968.
ESCOD
août 26 17:54:37 weg rtkit-daemon[1012]: Supervising 5 threads of 3 processes of 1 users.
août 26 17:54:38 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:53:50 weg dbus-daemon[765]: [session uid=1000 pid=765] Activating service name='org.gnome.ChromeGnomeShell' requested by ':1.90' (uid=1000 pid=1799 comm="/usr/bin/python /usr/bin/chrome-gnome>
août 26 17:53:50 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:53:50 weg dbus-daemon[765]: [session uid=1000 pid=765] Activating service name='org.gnome.ChromeGnomeShell' requested by ':1.90' (uid=1000 pid=1799 comm="/usr/bin/python /usr/bin/chrome-gnome>
août 26 17:53:51 weg dbus-daemon[765]: [session uid=1000 pid=765] Successfully activated service 'org.gnome.ChromeGnomeShell'
août 26 17:53:52 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:53:52 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:53:52 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:53:52 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:53:53 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:53:53 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:53:58 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:53:58 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:03 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:03 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:07 weg gnome-shell[897]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0xc00008 specified for 0xc0006d.
août 26 17:54:08 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:08 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:13 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:13 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:18 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:18 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:21 weg gnome-shell[897]: Could not create transient scope for PID 1890: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1890 does not exist.
août 26 17:54:23 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:23 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:28 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:28 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:33 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:33 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:36 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:54:36 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:54:37 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:54:37 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:54:37 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:54:37 weg rtkit-daemon[1012]: Supervising 4 threads of 2 processes of 1 users.
août 26 17:54:37 weg rtkit-daemon[1012]: Successfully made thread 1954 of process 1652 owned by '1000' RT at priority 10.
août 26 17:54:37 weg rtkit-daemon[1012]: Supervising 5 threads of 3 processes of 1 users.
août 26 17:54:38 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:38 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:43 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:43 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:48 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:48 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:53 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:53 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:54:58 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:54:58 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:55:03 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:55:03 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:55:08 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:55:08 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:55:13 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:55:13 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
août 26 17:55:16 weg systemd[694]: Started Application launched by gnome-shell.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:17 weg dbus-daemon[765]: [session uid=1000 pid=765] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.103' (uid=1000 pid=1962 >
août 26 17:55:17 weg systemd[694]: Created slice Slice /app/org.gnome.Terminal.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:17 weg systemd[694]: Starting GNOME Terminal Server...
░░ Subject: L'unité (unit) UNIT a commencé à démarrer
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a commencé à démarrer.
août 26 17:55:17 weg dbus-daemon[765]: [session uid=1000 pid=765] Successfully activated service 'org.gnome.Terminal'
août 26 17:55:17 weg systemd[694]: Started GNOME Terminal Server.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:17 weg systemd[694]: Started VTE child process 1990 launched by gnome-terminal-server process 1968.
░░ Subject: L'unité (unit) UNIT a terminé son démarrage
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ L'unité (unit) UNIT a terminé son démarrage, avec le résultat done.
août 26 17:55:18 weg touchegg.desktop[1251]: Error connecting to Touchégg daemon: Could not connect: Connection refused
août 26 17:55:18 weg touchegg.desktop[1251]: Reconnecting in 5 seconds...
lines 2002-2050/2050 (END)
The special reason is this is the kernel installed by default…
I can’t install the lts kernel :
The following packages will be installed:
linux510
linux510-rt
Starting
resolving dependencies...
looking for conflicting packages...
warning: linux510-rt-5.10.52_rt47-3 is up to date -- reinstalling
Packages (2) linux510-5.10.59-1 linux510-rt-5.10.52_rt47-3
Total Installed Size: 157.94 MiB
Net Upgrade Size: 78.24 MiB
:: Proceed with installation? [Y/n]
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
E: Commands listed below are not available on this system:
* rsync
* /sbin/blkid
* df
* mount
* umount
* fuser
* crontab
* cp
* rm
* touch
* ln
* sync
* which
Please install required packages and try running TimeShift again
** (process:4364): CRITICAL **: 19:23:22.519: app_lock_remove: assertion 'self != NULL' failed
Unable to run timeshift-autosnap! Please close Timeshift and try again. Script will now exit...
Errors occurred, no packages were upgraded.
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Terminé ...
It seems it try to install the kernel already installed. weird.
Ok, I was able to install new kernels and to boot on them (I didn’t uninstall timeshift, I will take the time to look at clonezilla later when I’ll have more time). I tried to boot with the two lts kernel recommended and it didn’t change anything.
I can give one supplementary information which could help. When booting, after entering the password to decrypt disks, I have the following messages :
Failed to open key files.
ERROR: resume: hibernation device ’dev/mapper/luks-fcec610d[…]
It happen at each start-up, no matter I clicked on hibernate, shutdown or reboot when leaving.
So, maybe it is rather a problem of encryption/decryption ?
Ok, still thank you very much.
The topic stay open if somebody have a better idea.
I googled from my side. One possibility seems really probable to me. It seems by default the swap key is generated randomly at each reboot in some distrib’. May it be the case on manjaro ? In this case how can I check it ? And if this is the cause how can I make the swap use the same key files than the rest of the system ?
Edit : I think I found something interesting :
GNU nano 5.8 /etc/crypttab
# /etc/crypttab: mappings for encrypted partitions.
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/<name> paths for encrypted devices.
#
# See crypttab(5) for the supported syntax.
#
# NOTE: Do not list your root (/) partition here, it must be set up
# beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
# to encrypted swap, which should be set up with mkinitcpio-openswap
# for resume support.
#
# <name> <device> <password> <options>
luks-bca40e75-a646-43ce-94bf-baa9e8465544 UUID=bca40e75-a646-43ce-94bf-baa9e8465544 /crypto_keyfile.bin luks
luks-0601a8bf-665e-43b5-a183-1a9cc8d83bc4 UUID=0601a8bf-665e-43b5-a183-1a9cc8d83bc4 /crypto_keyfile.bin luks
luks-fcec610d-0b7b-4609-9fe0-be9508822a57 UUID=fcec610d-0b7b-4609-9fe0-be9508822a57 /crypto_keyfile.bin luks
“Do not list your root (/) partition here, it must be set up
beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
to encrypted swap, which should be set up with mkinitcpio-openswap
for resume support.”
The third line correspond to the swap, so, it is listed here. And I don’t know how to use mkinitcpio-openswap.
I am waiting for an answer before touching these files… Should I comment the last line for example ?
comment the third line in crypttab: doesn’t work. The same message appear a longer time, plus another one that I don’t have the time to read. Afterwhat it boot normally.
close reopen the swap partition with gparted : work fine, so I guess that mean the swap is encrypted with the good password and not a random one.
uncomment GRUB_ENABLE_CRYPTODISK=y in /etc/default/grub: doesn’t change anything.
Failed to open key files.
ERROR: resume: hibernation device ’dev/mapper/luks[…]
I’ve also have this error message, since first boot, off a fresh Manjaro KDE 21.1.0 install using calamares automatic partitioning + luks + btrfs + swap.
It happens on every boot, the system still boots though, and I also had to disable hibernation because it didn’t work.