diff options
Diffstat (limited to 'src/smartauthmon.cpp')
-rw-r--r-- | src/smartauthmon.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/smartauthmon.cpp b/src/smartauthmon.cpp index 88bccee..f2b93df 100644 --- a/src/smartauthmon.cpp +++ b/src/smartauthmon.cpp @@ -674,7 +674,7 @@ int main (int argc, char *argv[]) if (newdisplayint == (MAXIMUM_VTS+1)) { writeerror = true; systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve"); - usleep(1000000); + usleep(3000000); } if (writeerror) have_valid_display = false; @@ -685,6 +685,7 @@ int main (int argc, char *argv[]) { // Could not find any existing kdm sessions; start a new one systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve"); + usleep(3000000); } } @@ -698,6 +699,7 @@ int main (int argc, char *argv[]) printf("Unable to write to KDM control socket %s\n\r", (TQString(KDM_CONTROL_FIFO_FILE).tqarg(newdisplayint)).ascii()); fflush(stdout); } + systemexec((TQString(TRINITY_BIN_PREFIX "kdmctl -g activate %1").tqarg(newdisplay)).ascii()); udisplay=newdisplay; } |