I need the sleep button on my keyboard (aptly labelled Zzz) to put the laptop to sleep, but pressing it no longer does anything. I'm pretty sure it used to work. Output from xev:
FocusIn event, serial 39, synthetic NO, window 0x4000001,
mode NotifyGrab, detail NotifyPointer
KeymapNotify event, serial 39, synthetic NO, window 0x0,
keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 64 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 39, synthetic NO, window 0x4000001,
mode NotifyUngrab, detail NotifyPointer
I'm not sure what this means and how to go about debugging it. Please help.
Open the terminal and copy and run gconf-editor and go to 'apps -> gnome-power-manager' and check 'can_hibernate' and 'can_suspend'.