[Bug 491940] Re: Patch for LTSP clients to properly reboot/shutdown
Frederick J. Henderson
491940 at bugs.launchpad.net
Thu Jun 21 17:12:51 UTC 2012
I have a LTSP client that functions as a photo frame running
gphotoframe. I have the following in lts.conf for that client
#Laptop ethernet
[00:0*:**:**:**:**]
LIKE=Atoms
# Used to allow auto login of clients
LDM_AUTOLOGIN=false
LDM_LOGIN_TIMEOUT=7
# Needed for LDM_LOGIN_TIMEOUT to work properly
LDM_GUESTLOGIN=true
LDM_USERNAME=media
LDM_PASSWORD=*******
#SOUND=N
#Auto Shut down
SHUTDOWN_TIME=20:00:00
I believe the lines that will solve the problem of the endless loop are:
LDM_AUTOLOGIN=false
LDM_LOGIN_TIMEOUT=7
LDM_GUESTLOGIN=true
The LDM_LOGIN_TIMEOUT parameter makes it wait that many seconds before
automatically login in. Adjust it as you like.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ltsp in Ubuntu.
https://bugs.launchpad.net/bugs/491940
Title:
Patch for LTSP clients to properly reboot/shutdown
Status in “gnome-session” package in Ubuntu:
Confirmed
Status in “ltsp” package in Ubuntu:
Invalid
Bug description:
Binary package hint: gnome-session
Please consider the following 4 lines for inclusion to debian/patch/95_dbus_request_shutdown.patch.
Those lines make LTSP clients properly reboot/shutdown.
gboolean
gsm_manager_request_shutdown (GsmManager *manager,
GError **error)
{
g_debug ("GsmManager: RequestShutdown called");
g_return_val_if_fail (GSM_IS_MANAGER (manager), FALSE);
if (manager->priv->phase != GSM_MANAGER_PHASE_RUNNING) {
g_set_error (error,
GSM_MANAGER_ERROR,
GSM_MANAGER_ERROR_NOT_IN_RUNNING,
"RequestShutdown interface is only available during the Running phase");
return FALSE;
}
+ if (g_getenv ("LTSP_CLIENT"))
+ g_spawn_command_line_async("xprop -root -f LDM_LOGOUT_ACTION 8s -set LDM_LOGOUT_ACTION HALT", error);
request_shutdown (manager);
return TRUE;
}
gboolean
gsm_manager_request_reboot (GsmManager *manager,
GError **error)
{
g_debug ("GsmManager: RequestReboot called");
g_return_val_if_fail (GSM_IS_MANAGER (manager), FALSE);
if (manager->priv->phase != GSM_MANAGER_PHASE_RUNNING) {
g_set_error (error,
GSM_MANAGER_ERROR,
GSM_MANAGER_ERROR_NOT_IN_RUNNING,
"RequestReboot interface is only available during the Running phase");
return FALSE;
}
+ if (g_getenv ("LTSP_CLIENT"))
+ g_spawn_command_line_async("xprop -root -f LDM_LOGOUT_ACTION 8s -set LDM_LOGOUT_ACTION REBOOT", error);
request_reboot (manager);
return TRUE;
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/491940/+subscriptions
More information about the foundations-bugs
mailing list