hibernate and suspend are not disabled on gutsy liveCD

Bug #144790 reported by Oliver Grawert
14
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
High
Colin Watson
Gutsy
Fix Released
High
Colin Watson

Bug Description

Binary package hint: casper

the location of teh gconf-keys for gnome-power-manager changed with teh 2.20 release, paths need to be adjusted like in the patch below:

ogra@laptop:~/packages/casper-1.105$ diff -ruN scripts/casper-bottom/32disable_hibernation.orig scripts/casper-bottom/32disable_hibernation
--- scripts/casper-bottom/32disable_hibernation.orig 2007-09-25 16:22:47.000000000 +0200
+++ scripts/casper-bottom/32disable_hibernation 2007-09-25 16:23:18.000000000 +0200
@@ -24,8 +24,8 @@
 gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-power-manager 2>/dev/null) || panel_version=""
 if [ -n "$gpm_version" ]; then
 # casper-reconfigure /root gnome-power-manager
- chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gnome-power-manager/can_hibernate false
- chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gnome-power-manager/can_suspend false
+ chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gnome-power-manager/general/can_hibernate false
+ chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gnome-power-manager/general/can_suspend false
 fi

 if [ -d /root/usr/share/kubuntu-default-settings/kde-profile/default/share/config ]; then

Related branches

Revision history for this message
Brian Murray (brian-murray) wrote :

I think that only hibernate should be disabled, having suspend in the Live CD environment is useful for testing.

Changed in casper:
importance: Undecided → High
status: New → Confirmed
Colin Watson (cjwatson)
Changed in casper:
assignee: nobody → kamion
status: Confirmed → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

casper (1.107) gutsy; urgency=low

  * Fix gconf keys for suspend and hibernate (thanks, Oliver Grawert;
    LP: #144790).
  * Enable suspend again since as far as I can see we no longer need to
    probe DMI while figuring out whether to enable it (see #61535).
  * Add a 'textonly' boot option to disable X (LP: #65818).
  * Write the please-remove-CD message to /dev/console so that it works even
    if usplash isn't running, and make sure to set /dev/console into a sane
    state so that pressing Enter doesn't just result in ^M being displayed.

 -- Colin Watson <email address hidden> Tue, 02 Oct 2007 15:12:57 +0100

Changed in casper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.