File ppc.dif of Package kdeutils3
--- klaptopdaemon/portable.cpp
+++ klaptopdaemon/portable.cpp 2005/02/04 16:29:45
@@ -866,6 +866,7 @@
//
int laptop_portable::has_suspend()
{
+return(0);
if (::has_acpi())
return ::acpi_sleep_access_ok() && ::has_acpi_sleep(3);
if (::has_pmu())
@@ -901,6 +902,8 @@
//
int laptop_portable::has_hibernation()
{
+ return 1;
+
if (::has_pmu())
return 0;
if (::has_software_suspend(1)) // must be before acpi
@@ -2487,7 +2490,7 @@
{
struct stat s;
- if (stat("/usr/sbin/apm", &s))
+ if (stat("/sbin/snooze", &s))
return(0);
return(1);
}
@@ -2501,7 +2504,7 @@
{
struct stat s;
- if (stat("/usr/sbin/apm", &s))
+ if (stat("/sbin/snooze", &s))
return(0);
return(1);
}
@@ -2583,8 +2586,8 @@
void laptop_portable::invoke_standby()
{
KProcess proc;
- proc << "/usr/sbin/apm";
- proc << "-S";
+ proc << "/sbin/snooze";
+// proc << "-S";
proc.start(KProcess::Block); // helper runs fast and we want to see the result
}
@@ -2596,8 +2599,8 @@
void laptop_portable::invoke_suspend()
{
KProcess proc;
- proc << "/usr/sbin/apm";
- proc << "-z";
+ proc << "/sbin/snooze";
+// proc << "-z";
proc.start(KProcess::Block); // helper runs fast and we want to see the result
}