On Fri 01. Sep - 15:46:31, Pat Double wrote:
> If this is not already done, please consider this patch to detect suspend2 at
> the new /sys/power/suspend2 location.
>
> Thanks.
>
> --- ./daemon/pm_interface.cpp.orig 2006-09-01 15:44:20.000000000 -0500
> +++ ./daemon/pm_interface.cpp 2006-09-01 15:45:11.000000000 -0500
> @@ -631,7 +631,8 @@
>
> bool PM_Interface::haveSuspend2()
> {
> - if (access("/proc/suspend2", F_OK) < 0) {
> + if (access("/proc/suspend2", F_OK) < 0
> + && access("/sys/power/suspend2", F_OK) < 0) {
> return false;
> }
>
Wouldn't a logical 'or' be better here? Or have both kernel interfaces to
exist always?
Thanks,
Holger
_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel