Comment 3 for bug 320208

Revision history for this message
Michael Terry (mterry) wrote :

This only handles the GDM greeter. As I mention in the upstream bug (which is now closed, since that hibernate menu is Ubuntu-specific apparently -- I didn't realize), there are better ways of handling it (via hal like you mention):

"(B) It would be nicer to use HAL to ask the system if it can hibernate. We
could check power_management.can_hibernate which tells us if hibernation
support is even compiled into the kernel. And we could iterate over the
volumes, checking the fstype of each for "swap" -- a cleaner way to check for
swaps."

Which should be done in both GDM, gnome-session, and FUSA.

This patch just does it for GDM, and in the 'easy' way.