GNOME Bugzilla – Bug 685562
suspend using power button doesn't lock the screen
Last modified: 2012-10-24 14:53:18 UTC
Created attachment 225882 [details] [review] add lock_screensaver function to do_config_power_action in plugins/media-keys/gsd-media-keys-manager.c When power button configured as suspend key and use it to suspend the machine, it doesn't lock the screen as screen lid does, the attached patch just simply ported the lock_screensaver() function from plugins/power/gsd-power-manager.c to plugins/media-keys/gsd-media-keys-manager.c to add the lock screen function. May be it's better to move the lock_screensaver() function to common/gsd-power-helper.c?
That is not the right way to fix this, imo. Instead, gnome-shell should take a delay lock itself and lock the screen when it detects a coming suspend. That would also eliminate the guessing games we play about how long the shield animation might take.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 681969 ***
See bug 686482
I can confirm the gnome-settings-daemon-3.7.1 update fixes my problem. Thanks guys.