Since we run ldm and not gdm in LTSP and gnome session gets the info
about logout and reboot from gdm directly, LTSP has no problems with
these two functions. For gnome power manager a two line patch was added
to prevent the options for suspend/hibernate to be shown:
diff -Nur gnome-power-manager-2.16.0/src/gpm-hal.c
gnome-power-manager-2.16.0.new/src/gpm-hal.c
--- gnome-power-manager-2.16.0/src/gpm-hal.c 2006-09-07 10:28:14.000000000
+0200
+++ gnome-power-manager-2.16.0.new/src/gpm-hal.c 2006-09-07
10:30:25.000000000 +0200
@@ -207,7 +207,7 @@
exists = gpm_hal_device_get_bool (hal, HAL_ROOT_COMPUTER,
"power_management.can_suspend_to_ram",
&can_suspend);
- if (exists == FALSE) {
+ if (exists == FALSE || g_getenv("LTSP_CLIENT")) {
gpm_warning ("gpm_hal_can_suspend: Key can_suspend_to_ram
missing");
return FALSE;
}
@@ -268,7 +268,7 @@
exists = gpm_hal_device_get_bool (hal, HAL_ROOT_COMPUTER,
"power_management.can_suspend_to_disk",
&can_hibernate);
- if (exists == FALSE) {
+ if (exists == FALSE || g_getenv("LTSP_CLIENT")) {
gpm_warning ("gpm_hal_can_hibernate: Key can_suspend_to_disk
missing");
return FALSE;
}
--
Only allow a smaller selection of users to perform privileged
shutdown/suspend/hibernate
https://launchpad.net/bugs/81700
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs