I've set system to hibernate when I close laptop in KDE settings, both for battery and cable. Hibernation works fine when I execute it from KDE menu but does not work when I close laptop despite system settings. Strange, but recently it was working correctly, don't know what happened and why now it is broken, I haven't touched anything related, only upgraded system from time to time. Grep dmesg by "hibernation" shows nothing interesting. Laptop - ThinkPad X1 Carbon Gen 8.
Could anybody help me get hibernation back to work?
UPD-1: Answers to some questions
Q1)
$ sudo ls /etc/polkit-1/localauthority/
10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d
also there is
$ ls /etc/polkit-1/localauthority.conf.d/
50-localauthority.conf 51-ubuntu-admin.conf
Q2)
$ dpkg -l | grep -E 'pm-utils|hibernate'
shows nothing, packages not installed
Q3)
$ cat /sys/power/state
freeze mem disk
/etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
and/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
. – sancho.s ReinstateMonicaCellio Feb 04 '21 at 14:53/etc/polkit-1/localauthority
?pm-utils
andhibernate
?cat /sys/power/state
.sudo systemctl hibernate
makes my laptop freeze. I see black screen and laptop didn't react to any buttons including short press on power button, I needed to long press power button for hard reset. It was definitely freeze and not hibernation because when in sleep mode LEDs on my laptop blinks and in this case they were enabled constantly like when it works normally (but it didn't react to anything as I've said). – Dmitriy Vinokurov Feb 06 '21 at 05:53