Пытаюсь настроить suspend и hibernate на своей генте.
Машина не уходит ни в suspend ни в hibernate, т.к. не может сделать снапшот текущего состояния.
cat < /dev/snapshot
-bash: /dev/snapshot: No such device
Версия ядра 4.14.114. Пытался поднять suspend и гибернацию на 4.19.37 и 5.1.1, но на них имеется та же проблема.
Состояние системы: Ram: 64GB, Swap 122,8 GB на SSD /dev/sdf3
s2disk и s2ram выдают следующее:
s2disk
s2disk: Could not open the snapshot device. Reason: No such device
s2ram
KMS graphics driver is in use, skipping quirks.
s2ram_do: No such device
dmesg
[35176.521108] CPU0 is offline.
[35325.336627] PM: suspend entry (deep)
[35325.336630] PM: Syncing filesystems ... done.
Mem, disk и free - поддерживаются:
cat /sys/power/state
freeze mem disk
Команды
echo mem > /sys/power/state
echo disk > /sys/power/state
echo freeze > /sys/power/state
Выводят одно и то же:
-bash: echo: write error: No such device
Трассировка s2disk показывает устройство /dev/snapshot, которое в dev и sys есть, но почему-то при обращении к нему появляется ошибка «Нет такого устройства».
strace s2disk
...
stat("/dev/snapshot", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 231), ...}) = 0
openat(AT_FDCWD, "/dev/snapshot", O_RDONLY) = -1 ENODEV (No such device)
write(2, "s2disk: Could not open the snaps"..., 67s2disk: Could not open the snapshot device. Reason: No such device
...
ls -lh /dev/snapshot
crw------- 1 root root 10, 231 мая 13 03:23 /dev/snapshot
ls -lh /sys/dev/char/10:231/
-r--r--r-- 1 root root 4,0K may 13 10:38 dev
drwxr-xr-x 2 root root 0 may 13 10:38 power
lrwxrwxrwx 1 root root 0 may 13 03:23 subsystem -> ../../../../class/misc
-rw-r--r-- 1 root root 4,0K may 13 03:23 uevent
Своп в fstab и командной строке ядра прописан.
swapon
NAME TYPE SIZE USED PRIO
/dev/sdf3 partition 122,8G 0B -2
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.14.114-gentoo root=/dev/sdd1 ro resume=/dev/sdf3 init=/usr/lib/systemd/systemd radeon.dpm=1 amdgpu.dc=1 radeon.si_support=0 amdgpu.si_support=1 drm_kms_helper.edid_firmware=DP-1:edid/2560x1440.bin drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin
Параметры управления питанием в конфигурации ядра:
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
CONFIG_PM_WAKELOCKS=y
CONFIG_PM_WAKELOCKS_LIMIT=100
CONFIG_PM_WAKELOCKS_GC=y
CONFIG_PM=y
CONFIG_PM_DEBUG=y
CONFIG_PM_ADVANCED_DEBUG=y
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not set
CONFIG_PM_TRACE=y
CONFIG_PM_TRACE_RTC=y
CONFIG_PM_CLK=y
CONFIG_PM_GENERIC_DOMAINS=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
CONFIG_PM_GENERIC_DOMAINS_SLEEP=y
CONFIG_PM_GENERIC_DOMAINS_OF=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
CONFIG_ACPI_DEBUGGER=y
CONFIG_ACPI_DEBUGGER_USER=y
CONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS_POWER is not set
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
# CONFIG_ACPI_VIDEO is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_PROCESSOR_AGGREGATOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_DEBUG=y
CONFIG_ACPI_PCI_SLOT=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_HOTPLUG_IOAPIC=y
CONFIG_ACPI_SBS=y
CONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not set
CONFIG_ACPI_BGRT=y
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
CONFIG_ACPI_NFIT=y
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
CONFIG_ACPI_APEI=y
CONFIG_ACPI_APEI_GHES=y
CONFIG_ACPI_APEI_PCIEAER=y
CONFIG_ACPI_APEI_MEMORY_FAILURE=y
# CONFIG_ACPI_APEI_EINJ is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
CONFIG_DPTF_POWER=y
CONFIG_ACPI_EXTLOG=y
CONFIG_PMIC_OPREGION=y
# CONFIG_XPOWER_PMIC_OPREGION is not set
CONFIG_ACPI_CONFIGFS=y
CONFIG_SFI=y
Как заставить в данной ситуации работать гибернацию и suspend?