Calculate Forum

Desktop doesnt suspend/resume correctly

Sorry if this is the wrong place to ask for support, but having looked through the website, there is no obvious place to where support is maintained.

Anyway, ever since I installed this distro it hasnt gone in to suspend (not hibernate) correctly. Even as super user.
I have tried different methods: loginctl suspend (as su), suspend option from xfce menu, it either keeps the fans spinning, but the monitors have gone black (indefinetily) or fails to wake up (same, fans sping, black monitors).

What hardware was you installing Calculate Linux? What version of Calculate Linux was you installing?

Присоединяюсь к вопросу. Suspend работает вроде нормально, но периодически глючит кдешный сетевой апплет - wifi ловит, но ничего не отражает, никаких сетей. loginctl hibernate просто выключает ноут. Никакого восстановления из спящего режима не происходит. Та же проблема с SuspendThenHibernate - в ждущий режим ноут уходит, через время просто выключается. Пробовал баловаться с logind.conf, но ничего не изменилось. До этого много лет использовал pm-utils, проблем не было. Система CLS, потом сменил профиль на CLD, ноут с интеловской графикой.
В logind.conf раскомментировал:

[Sleep]
AllowSuspend=yes
AllowHibernation=yes
AllowSuspendThenHibernate=yes
AllowHybridSleep=yes
#AllowPowerOffInterrupts=no
#AllowSuspendInterrupts=no
SuspendState=mem standby freeze
SuspendMode=
HibernateState=disk
HibernateMode=platform shutdown
HybridSleepState=disk
HybridSleepMode=suspend platform shutdown
HibernateDelaySec=1800

This is output of Dmesg, and a couple of attempts to suspend

[ 1027.663461] elogind-daemon[4429]: Suspending system...

[ 1027.663471] PM: suspend entry (deep)
[ 1027.670493] Filesystems sync: 0.007 seconds
[ 1028.182070] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1028.184696] OOM killer disabled.
[ 1028.184698] Freezing remaining freezable tasks … (elapsed 0.000 seconds) done.
[ 1028.185687] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1028.186385] serial 00:06: disabled
[ 1028.194660] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1028.194708] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1028.196349] sd 0:0:0:0: [sda] Stopping disk
[ 1028.197074] sd 2:0:0:0: [sdb] Stopping disk
[ 1028.198665] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1028.199245] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1028.199252] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1028.199260] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1029.128065] PM: Some devices failed to suspend, or early wake event detected
[ 1029.128375] usb usb5: root hub lost power or was reset
[ 1029.128381] usb usb7: root hub lost power or was reset
[ 1029.129809] serial 00:06: activated
[ 1029.129940] sd 0:0:0:0: [sda] Starting disk
[ 1029.130038] sd 2:0:0:0: [sdb] Starting disk
[ 1029.299094] OOM killer enabled.
[ 1029.299097] Restarting tasks … done.
[ 1029.306744] PM: suspend exit
[ 1029.306947] PM: suspend entry (s2idle)
[ 1029.318996] Filesystems sync: 0.012 seconds
[ 1029.990357] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1029.993206] OOM killer disabled.
[ 1029.993207] Freezing remaining freezable tasks … (elapsed 0.001 seconds) done.
[ 1029.994380] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1029.995198] serial 00:06: disabled
[ 1030.000674] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1030.000710] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1030.002263] sd 2:0:0:0: [sdb] Stopping disk
[ 1030.002381] sd 0:0:0:0: [sda] Stopping disk
[ 1030.007645] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1030.008071] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1030.008078] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1030.008084] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1030.564618] PM: Some devices failed to suspend, or early wake event detected
[ 1030.564930] usb usb5: root hub lost power or was reset
[ 1030.564937] usb usb7: root hub lost power or was reset
[ 1030.566098] serial 00:06: activated
[ 1030.567873] sd 0:0:0:0: [sda] Starting disk
[ 1030.567876] sd 2:0:0:0: [sdb] Starting disk
[ 1030.731280] OOM killer enabled.
[ 1030.731283] Restarting tasks … done.
[ 1030.738915] PM: suspend exit
[ 1030.739022] elogind-daemon[4429]: Failed to suspend system. System resumed again: Input/output error
[ 1030.740691] elogind-daemon[4429]: Error during inhibitor-delayed operation (already returned success to client): Input/output error
[ 1076.003698] RTL8211E Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
[ 1076.234101] r8169 0000:02:00.0 eth0: Link is Down
[ 1078.650866] r8169 0000:02:00.0 eth0: Link is Up - 100Mbps/Full - flow control off
[ 1078.650883] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1141.484757] r8169 0000:02:00.0 eth0: Link is Down
[ 1141.486502] elogind-daemon[4429]: Suspending system…
[ 1141.486512] PM: suspend entry (deep)
[ 1141.513248] Filesystems sync: 0.026 seconds
[ 1142.005013] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1142.007693] OOM killer disabled.
[ 1142.007694] Freezing remaining freezable tasks … (elapsed 0.000 seconds) done.
[ 1142.008677] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1142.009519] serial 00:06: disabled
[ 1142.016204] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1142.017909] sd 0:0:0:0: [sda] Stopping disk
[ 1142.019620] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1142.021663] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1142.022085] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1142.022092] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1142.022099] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1142.022145] sd 2:0:0:0: [sdb] Stopping disk
[ 1142.584647] PM: Some devices failed to suspend, or early wake event detected
[ 1142.584964] usb usb5: root hub lost power or was reset
[ 1142.584969] usb usb7: root hub lost power or was reset
[ 1142.586119] serial 00:06: activated
[ 1142.586478] sd 2:0:0:0: [sdb] Starting disk
[ 1142.586561] sd 0:0:0:0: [sda] Starting disk
[ 1142.755082] OOM killer enabled.
[ 1142.755085] Restarting tasks … done.
[ 1142.759867] PM: suspend exit
[ 1142.760080] PM: suspend entry (s2idle)
[ 1142.774007] Filesystems sync: 0.013 seconds
[ 1144.405165] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1144.407734] OOM killer disabled.
[ 1144.407735] Freezing remaining freezable tasks … (elapsed 0.000 seconds) done.
[ 1144.408671] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1144.409348] serial 00:06: disabled
[ 1144.414603] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1144.415963] sd 2:0:0:0: [sdb] Stopping disk
[ 1144.419621] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1144.421457] sd 0:0:0:0: [sda] Stopping disk
[ 1144.421644] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1144.422066] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1144.422072] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1144.422079] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1144.977725] PM: Some devices failed to suspend, or early wake event detected
[ 1144.978026] usb usb5: root hub lost power or was reset
[ 1144.978033] usb usb7: root hub lost power or was reset
[ 1144.979244] serial 00:06: activated
[ 1144.979408] sd 2:0:0:0: [sdb] Starting disk
[ 1144.979417] sd 0:0:0:0: [sda] Starting disk
[ 1145.147263] OOM killer enabled.
[ 1145.147265] Restarting tasks … done.
[ 1145.153692] PM: suspend exit
[ 1145.153761] elogind-daemon[4429]: Failed to suspend system. System resumed again: Input/output error
[ 1145.156257] elogind-daemon[4429]: Error during inhibitor-delayed operation (already returned success to client): Input/output error
[ 1235.859458] RTL8211E Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
[ 1236.018403] r8169 0000:02:00.0 eth0: Link is Down
[ 1238.959140] r8169 0000:02:00.0 eth0: Link is Up - 100Mbps/Full - flow control off
[ 1238.959156] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1378.922000] r8169 0000:02:00.0 eth0: Link is Down
[ 1378.923492] elogind-daemon[4429]: Suspending system…
[ 1378.923503] PM: suspend entry (deep)
[ 1378.942036] Filesystems sync: 0.018 seconds
[ 1379.348765] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1379.351484] OOM killer disabled.
[ 1379.351485] Freezing remaining freezable tasks … (elapsed 0.001 seconds) done.
[ 1379.352668] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1379.353440] serial 00:06: disabled
[ 1379.358612] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1379.360288] sd 2:0:0:0: [sdb] Stopping disk
[ 1379.363607] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1379.365273] sd 0:0:0:0: [sda] Stopping disk
[ 1379.365604] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1379.366062] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1379.366078] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1379.366089] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1379.922471] PM: Some devices failed to suspend, or early wake event detected
[ 1379.922803] usb usb5: root hub lost power or was reset
[ 1379.922811] usb usb7: root hub lost power or was reset
[ 1379.924120] serial 00:06: activated
[ 1379.924274] sd 0:0:0:0: [sda] Starting disk
[ 1379.924286] sd 2:0:0:0: [sdb] Starting disk
[ 1380.091074] OOM killer enabled.
[ 1380.091076] Restarting tasks … done.
[ 1380.099693] PM: suspend exit
[ 1380.099854] PM: suspend entry (s2idle)
[ 1380.118376] Filesystems sync: 0.018 seconds
[ 1380.778314] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1380.781305] OOM killer disabled.
[ 1380.781306] Freezing remaining freezable tasks … (elapsed 0.001 seconds) done.
[ 1380.782479] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1380.783229] serial 00:06: disabled
[ 1380.788621] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1380.790054] sd 2:0:0:0: [sdb] Stopping disk
[ 1380.792605] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1380.794260] sd 0:0:0:0: [sda] Stopping disk
[ 1380.795624] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1380.796042] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1380.796049] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1380.796056] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1381.352230] PM: Some devices failed to suspend, or early wake event detected
[ 1381.352532] usb usb5: root hub lost power or was reset
[ 1381.352538] usb usb7: root hub lost power or was reset
[ 1381.354829] serial 00:06: activated
[ 1381.355181] sd 0:0:0:0: [sda] Starting disk
[ 1381.355191] sd 2:0:0:0: [sdb] Starting disk
[ 1381.523240] OOM killer enabled.
[ 1381.523242] Restarting tasks … done.
[ 1381.530636] PM: suspend exit
[ 1381.530823] elogind-daemon[4429]: Failed to suspend system. System resumed again: Input/output error
[ 1381.532179] elogind-daemon[4429]: Error during inhibitor-delayed operation (already returned success to client): Input/output error
[ 1395.904493] RTL8211E Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
[ 1396.121360] r8169 0000:02:00.0 eth0: Link is Down
[ 1398.489993] r8169 0000:02:00.0 eth0: Link is Up - 100Mbps/Full - flow control off
[ 1398.490005] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1517.026823] PM: suspend entry (deep)
[ 1517.032458] Filesystems sync: 0.005 seconds
[ 1517.514010] Freezing user space processes … (elapsed 0.002 seconds) done.
[ 1517.516657] OOM killer disabled.
[ 1517.516658] Freezing remaining freezable tasks … (elapsed 0.000 seconds) done.
[ 1517.517650] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1517.518507] serial 00:06: disabled
[ 1517.518928] r8169 0000:02:00.0 eth0: Link is Down
[ 1517.523572] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 1517.524940] sd 2:0:0:0: [sdb] Stopping disk
[ 1517.530626] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the ‘Configuring Power Management Support’ section in the driver README.
[ 1517.531048] PM: pci_pm_suspend(): nvidia_isr_kthread_bh+0x630/0x650 [nvidia] returns -5
[ 1517.531056] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x150 returns -5
[ 1517.531063] PM: Device 0000:05:00.0 failed to suspend async: error -5
[ 1517.531631] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1517.533445] sd 0:0:0:0: [sda] Stopping disk
[ 1518.086966] PM: Some devices failed to suspend, or early wake event detected
[ 1518.087250] usb usb5: root hub lost power or was reset
[ 1518.087255] usb usb7: root hub lost power or was reset
[ 1518.088489] serial 00:06: activated
[ 1518.088687] sd 0:0:0:0: [sda] Starting disk
[ 1518.088771] sd 2:0:0:0: [sdb] Starting disk
[ 1518.288381] r8169 0000:02:00.0 eth0: Link is Down
[ 1518.289518] OOM killer enabled.
[ 1518.289520] Restarting tasks … done.
[ 1518.294242] PM: suspend exit
[ 1520.752301] r8169 0000:02:00.0 eth0: Link is Up - 100Mbps/Full - flow control off

And log of /var/log/pm-powersave.log

Running hook /usr/lib64/pm-utils/power.d/disable_wol false:
Setting Wake On Lan for eth0 to enable…Done.
/usr/lib64/pm-utils/power.d/disable_wol false: success.

Running hook /usr/lib64/pm-utils/power.d/intel-audio-powersave false:
Setting power savings for snd_hda_intel to 0…Done.
/usr/lib64/pm-utils/power.d/intel-audio-powersave false: success.

Running hook /usr/lib64/pm-utils/power.d/laptop-mode false:
Laptop mode disabled.
/usr/lib64/pm-utils/power.d/laptop-mode false: success.

Running hook /usr/lib64/pm-utils/power.d/pci_devices false:
Setting Host Bridge 0000:00:00.0 to on
Setting Audio device 0000:00:14.2 to on
Setting Host Bridge 0000:00:18.0 to on
Setting Host Bridge 0000:00:18.1 to on
Setting Host Bridge 0000:00:18.2 to on
Setting Host Bridge 0000:00:18.3 to on
Setting Host Bridge 0000:00:18.4 to on
Setting Host Bridge 0000:00:18.5 to on
Setting Ethernet device 0000:02:00.0 to on
Setting Audio device 0000:05:00.1 to on
/usr/lib64/pm-utils/power.d/pci_devices false: success.

Running hook /usr/lib64/pm-utils/power.d/pcie_aspm false:
/usr/lib64/pm-utils/power.d/pcie_aspm: line 9: echo: write error: Operation not permitted
/usr/lib64/pm-utils/power.d/pcie_aspm false: success.

Running hook /usr/lib64/pm-utils/power.d/sata_alpm false:
Setting SATA ALPM on host0 to max_performance…Done.
Setting SATA ALPM on host1 to max_performance…Done.
Setting SATA ALPM on host2 to max_performance…Done.
/usr/lib64/pm-utils/power.d/sata_alpm false: success.

Running hook /usr/lib64/pm-utils/power.d/sched-powersave false:
**sched policy powersave OFF
/usr/lib64/pm-utils/power.d/sched-powersave false: success.

Running hook /usr/lib64/pm-utils/power.d/usb_bluetooth false:
/var/log/pm-powersave.log lines 1-40/96 43%

amd fx cpu, nvidia gpu. 770 or something.

versions? whatever was latest over a month ago. I have no idea, except that its the official release.

Ive solved this issue by deciding to change distro.

Calculate is very badly tested. Support is non existant. Gentoo has had this problem with nvidia/suspend since november. The issue actually receives attention from developers of Gentoo. I originally installed CL because I like Gentoo, and installation of the latter is a process.

There I said it.

А swap раздел у вас есть для гибернации?

Есть конечно. 32 гига.

Гибернация сломалась при переходе на dracut-050. Настройку поправили =sys-apps/calculate-utils-3.6.8.17, указанием PARTUUID, вместо UUID.

А поподробнее можно? А то по PARTUID она и без initramfs работает. Что помешало восстановить работу через UUID?

Определение раздела PARTUUID работает даже из ядра, что позволяет восстанавливать систему из гибернации без initramfs. Для получения раздела по UUID требуется initramfs.

Так теперь PARTUUID надо самому руками писать? И куда писать?
У меня вообще запись о необходимости проверки просыпания из конфигурации GRUB удалилась.

Вопрос снят.
Спящий режим заработал.
Видимо, проблема заключалась эффекте, когда наложились несколько факторов друг на друга.

  1. Завершение поддержки dracut по UUID
  2. Переход по с UUID на PARTUUID
  3. Смена мною принципа монтирования swap в fstab (перешел на LABEL).

Утилита cl-setup-boot не поддерживает формирование записи в /etc/default/grub если монтирование раздела swap производится не по UUID или /dev/....
После возврата с монтирования по LABEL на монтирование по UUID утилитой cl-setup-boot были правильно сформированы /etc/default/grub и /boot/grub/grub.cfg, куда были добавлены записи с resume=PARTUUID=.
Это привело к корректному выходу из сна возможностями непосредственно ядра.

© 2007-2020 Calculate Ltd.
Mastodon Mastodon