--- kdeutils-3.5.5/klaptopdaemon/acpi_helper.cpp.pmsuspend 2006-01-19 11:49:17.000000000 -0500 +++ kdeutils-3.5.5/klaptopdaemon/acpi_helper.cpp 2006-12-11 12:28:30.000000000 -0500 @@ -100,7 +100,7 @@ Returns only if the program does not exist; if the program exists and is unsafe, exit; if the program exists and is safe, run it and never return. */ -void run_program(const char *path) +void run_program(const char *path, const char *arg1) { struct stat sb; int err; @@ -118,7 +118,7 @@ exit(1); } ::setuid(::geteuid()); // otherwise bash will throw it away - ::execl(path, NULL); // this is not KDE environment code + ::execl(path, arg1, NULL); // this is not KDE environment code exit(0); } @@ -139,7 +139,7 @@ for (i = 1; i < argc; i++) if (strcmp(argv[i], "--suspend") == 0 || strcmp(argv[i], "-suspend") == 0) { /* Returns only if suspend does not exist. */ - run_program("/usr/sbin/suspend"); + run_program("/usr/sbin/pmsuspend", "suspend"); if (useSysPower) write_to_power("mem"); else @@ -158,7 +158,7 @@ exit(0); } else if (strcmp(argv[i], "--hibernate") == 0 || strcmp(argv[i], "-hibernate") == 0) { - run_program("/usr/sbin/hibernate"); + run_program("/usr/sbin/pmsuspend", "hibernate"); if (useSysPower) write_to_power("disk"); else @@ -166,7 +166,7 @@ exit(0); } else if (strcmp(argv[i], "--software-suspend") == 0 || strcmp(argv[i], "-software-suspend") == 0) { - run_program("/usr/sbin/hibernate"); + run_program("/usr/sbin/hibernate", NULL); exit(0); } else if (strcmp(argv[i], "--throttling") == 0 || strcmp(argv[i], "-throttling") == 0) {