1 --- ConsoleKit-0.4.1/src/ck-sysdeps-solaris.c 2018-01-16 08:39:38.810256813 +0000
2 +++ ConsoleKit-0.4.1/src/ck-sysdeps-solaris.c 2018-01-16 08:39:34.260866334 +0000
7 +#include <sys/uadmin.h>
13 ck_system_can_suspend (void)
15 - /* TODO: not implemented */
17 + gboolean can_suspend;
18 + can_suspend = ((uadmin(A_FREEZE, AD_CHECK_SUSPEND_TO_RAM, 0) == 0)? TRUE: FALSE) ;
23 ck_system_can_hibernate (void)
25 - /* TODO: not implemented */
27 + gboolean can_hibernate;
28 + can_hibernate = ((uadmin(A_FREEZE, AD_CHECK_SUSPEND_TO_DISK, 0) == 0)? TRUE: FALSE) ;
29 + return can_hibernate;
33 --- ConsoleKit-0.4.1/tools/solaris/ck-system-suspend.1 2018-01-16 08:42:06.323997398 +0000
34 +++ ConsoleKit-0.4.1/tools/solaris/ck-system-suspend 2018-01-16 08:44:06.015209511 +0000
38 -# FIXME: Implement this
41 +if [ -x "/usr/sbin/uadmin" ] ; then
42 + /usr/sbin/uadmin 3 20
46 --- ConsoleKit-0.4.1/tools/solaris/ck-system-hibernate.1 2018-01-16 08:45:01.320015702 +0000
47 +++ ConsoleKit-0.4.1/tools/solaris/ck-system-hibernate 2018-01-16 08:45:40.499810609 +0000
51 -# FIXME: Implement this
54 +if [ -x "/usr/sbin/uadmin" ] ; then
55 + /usr/sbin/uadmin 3 0