On Mon, 2009-04-27 at 10:06 +0000, Alan Jenkins wrote:
> Public bug reported:
> 
> Environment: Kubuntu 9.04 Live CD
> Package version: pm-utils-1.2.2.4-0ubuntu4
> 
> Summary: pm-utils should refuse to hibernate if "resume=X" is not
> present on the kernel command line.
> 
> This applies to the  default kernel suspend method, i.e. when using
> "echo disk > /sys/power/state".  Other techniques may need different
> tests, e.g. when using uswsusp we need to test /etc/uswsusp.conf.
> 
> ---
> 
> The Kubuntu 9.04 Live CD presents "Hibernation" as an option on the
> "Leave" submenu of Kickoff,
> 
> This is an incredibly bad idea, even if it worked.  Anyway, it doesn't
> work properly, so it shouldn't be presented as an option.  It succeeds
> in the sense of hibernating, but it is not able to resume successfully.
> 
> And here's why I think it happens:
> 
> $ pm-is-supported --hibernate; echo $?
> 0
> 
> Now, pm-is-supported must be noting that the Live CD has picked up the
> swap partition from my hard drive.
> 
> [Rant: Personally I think this is a mistake on the part of the Live CD
> environment.  Live CD's can be sluggish enough already. There's no need
> to try and cater to a minority who are running them on a system which
> already has Linux installed, and is starved of physical memory]
> 
> $ cat /proc/swaps
> Filename                                Type            Size    Used    
> Priority
> /dev/sda7                               partition       1494004 0       -1
> 
> 
> However, the reason hibernation fails is that the kernel is not booted with a 
> "resume=" option.  (This would be different for uswsusp, but uswsusp is not 
> officially supported or present on the live CD, and pm-utils is quite capable 
> of distinguishing them in any case).
> 
> $ cat /proc/cmdline
> BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/kubuntu.seed boot=casper 
> initrd=/casper/initrd.gz quiet splash -- console-setup/layoutcode=gb
> 
> 
> As a side effect, this is also likely to prevent hibernation when booted in 
> "rescue mode".  I think that's a neutral effect.  It's potentially annoying.  
> Hibernating from "rescue mode" _would_ usually work, because rescue mode is 
> never the default boot option, it would resume correctly using the default 
> boot option).  But on the other hand, we don't really want to encourage such 
> usage.
> 
> ** Affects: pm-utils (Ubuntu)
>      Importance: Undecided
>          Status: New
> 
It's important to note that a resume=XX parameter in the kernel
commandline is not required in order for the kernel to resume. In fact,
by default, the swap is specified in /etc/initramfs-tools/conf.d/resume,
and there is no resume= parameter in /boot/grub/menu.lst.
-- 
Regards,
Chow Loong Jin

-- 
Kubuntu 9.04 live CD allows hibernation - obviouslly it doesn't work though
https://bugs.launchpad.net/bugs/367848
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to