WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate #2

Draft
MicheleC хоче злити 10 комітів з feat/fix-suspend-code в master
MicheleC прокоментував(ла) 5 роки тому
Власник
Suggest to compile TDE/tdebase#16 after this. Based on info from here: https://www.kernel.org/doc/Documentation/power/states.txt https://www.kernel.org/doc/Documentation/power/interface.txt
MicheleC додав(ла) до R14.1.0 release етапу 5 роки тому
SlavekB прокоментував(ла) 5 роки тому
Власник

It looks like /sys/power/mem_sleep is new from kernel >= 4.14. We need functionality even for older versions of kernels. The code needs to be changed.

It looks like /sys/power/mem_sleep is new from kernel >= 4.14. We need functionality even for older versions of kernels. The code needs to be changed.
SlavekB додано PR/not-ok з міткою 5 роки тому
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

yes, as I mentioned yesterday on the chat, I need to fix support for when mem_sleep is not available. I will work on this during the weekend.

In the current PR, it only affects "Suspend".

yes, as I mentioned yesterday on the chat, I need to fix support for when mem_sleep is not available. I will work on this during the weekend. In the current PR, it only affects "Suspend".
MicheleC додано PR/wip і видалено PR/not-ok мітками 5 роки тому
MicheleC видалено PR/wip з міткою 5 роки тому
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

PR should now be able to support both older and newer kernel.

PR should now be able to support both older and newer kernel.
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

I have tested this (together with TDE/tdebase#16) under Slackware in a VirtualBox machines.

The options displayed on the shutdown dialog are consistent with the content of /sys/power/state and /sys/power/disk and their functionality works fine.

I could test freeze, hibernate and hybrid hibernate. The last two behaves the same in this system, since there is no support for suspend-to-RAM but /sys/power/disk contains "suspend"

I have tested this (together with TDE/tdebase#16) under Slackware in a VirtualBox machines. The options displayed on the shutdown dialog are consistent with the content of /sys/power/state and /sys/power/disk and their functionality works fine. I could test freeze, hibernate and hybrid hibernate. The last two behaves the same in this system, since there is no support for suspend-to-RAM but /sys/power/disk contains "suspend"
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

Rebased to latest master. IMO, this PR is ready for merging.

Rebased to latest master. IMO, this PR is ready for merging.
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

as per discussion on jabber, more work is required to allow user hibernation

as per discussion on jabber, more work is required to allow user hibernation
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

This is hopefully the final one 😄

Tested as simple user and as root, all available actions are possible. Actions tested are freeze, suspend, hydrid suspend and hibernate

This is hopefully the final one :smile: Tested as simple user and as root, all available actions are possible. Actions tested are freeze, suspend, hydrid suspend and hibernate
MicheleC змінився заголовок з Fixed support for freeze/standby/suspend/hybrid suspend/hibernate на WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate 5 роки тому
MicheleC змінився заголовок з WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate на Fixed support for freeze/standby/suspend/hybrid suspend/hibernate 5 роки тому
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

new version with polkit support

new version with polkit support
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

I have added DBus standard interface Introspect, Peer and Properties to the tde hw daemon. This should solve issue #9 and #12.

I have added DBus standard interface Introspect, Peer and Properties to the tde hw daemon. This should solve issue #9 and #12.
MicheleC змінився заголовок з Fixed support for freeze/standby/suspend/hybrid suspend/hibernate на WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate 5 роки тому
MicheleC прокоментував(ла) 5 роки тому
Автор
Власник

I see two potential side effect, but need further testing to make sure they are related to this PR. Further testing is needed before merge. Core functionality is there though.

I see two potential side effect, but need further testing to make sure they are related to this PR. Further testing is needed before merge. Core functionality is there though.
SlavekB змінено цільової етап з R14.1.0 release на R14.1.x 12 місяці тому
Цей запит має зміни, що конфліктують з цільовою гілкою.
tdecore/tdehw/tderootsystemdevice.h
tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf
tdecore/tdehw/tderootsystemdevice.cpp
Підпишіться щоб приєднатися до обговорення.
Немає рецензентів
Етап відсутній
Немає виконавця
2 учасників
Сповіщення
Дата завершення

Термін виконання не встановлений.

Залежності

No dependencies set.

Reference: TDE/tdelibs#2
Завантаження…
Тут ще немає жодного змісту.