[Bug 599352] Re: [Maverick] Need to not display hibernation in UI if do not have enough swap space

Martin Pitt martin.pitt at ubuntu.com
Fri Jul 2 14:22:00 UTC 2010


The indicator just asks upower whether it's able to hibernate. Why was
that task added, doesn't it show the error message that upower returns?
I recently tested it in XFCE, and there that works, so upower is sending
an appropriate error.

upower itself already does have logic to check whether we have enough
swap space. Currently it says "yes" if there is at least (active memory)
* 0.8 available swap space. For the corner cases where this isn't
enough, the UI should return an appropriate error message. Also, I
regularly hibernate with less swap than I have memory, just because most
memory is used by caches. This seems to do fine for most cases. Is there
some practical scenario where this fails? We could certainly bump the
0.8 to 1, in which case it should almost always succeed.

-- 
[Maverick] Need to not display hibernation in UI if do not have enough swap space
https://bugs.launchpad.net/bugs/599352
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to Canonical OEM Projects.




More information about the kernel-bugs mailing list