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

Koncept
MicheleC chce sloučit 10 commity z větve feat/fix-suspend-code do master
MicheleC okomentoval před 6 roky
Vlastník
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 přidal/a toto do milníku R14.1.0 release před 6 roky
SlavekB okomentoval před 6 roky
Vlastník

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 přidal/a PR/not-ok štítek před 6 roky
MicheleC okomentoval před 6 roky
Autor
Vlastník

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 přidáno PR/wip a odebráno PR/not-ok štítků před 6 roky
MicheleC odstranil/a PR/wip štítek před 6 roky
MicheleC okomentoval před 6 roky
Autor
Vlastník

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 okomentoval před 5 roky
Autor
Vlastník

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 okomentoval před 5 roky
Autor
Vlastník

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

Rebased to latest master. IMO, this PR is ready for merging.
MicheleC okomentoval před 5 roky
Autor
Vlastník

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 okomentoval před 5 roky
Autor
Vlastník

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 změnil/a název z Fixed support for freeze/standby/suspend/hybrid suspend/hibernate na WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate před 5 roky
MicheleC změnil/a název z WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate na Fixed support for freeze/standby/suspend/hybrid suspend/hibernate před 5 roky
MicheleC okomentoval před 5 roky
Autor
Vlastník

new version with polkit support

new version with polkit support
MicheleC okomentoval před 5 roky
Autor
Vlastník

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 změnil/a název z Fixed support for freeze/standby/suspend/hybrid suspend/hibernate na WIP: Fixed support for freeze/standby/suspend/hybrid suspend/hibernate před 5 roky
MicheleC okomentoval před 5 roky
Autor
Vlastník

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 upravil/a milník z R14.1.0 release na R14.1.x před 1 rokem
Tento požadavek na natažení obsahuje změny, které kolidují s cílovou větví.
tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf
tdecore/tdehw/tderootsystemdevice.cpp
tdecore/tdehw/tderootsystemdevice.h
Přihlaste se pro zapojení do konverzace.
Žádní posuzovatelé
Bez milníku
Bez zpracovatelů
2 účastníků
Oznámení
Termín dokončení

Žádný termín dokončení.

Závislosti

Nejsou nastaveny žádné závislosti.

Reference: TDE/tdelibs#2
Načítá se…
Není zde žádný obsah.