Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering, besides locking screen by pressing Nexus S right side power hardware button, is there any way to lock screen, using software button press instead of hardware?

share|improve this question
Such as a widget on the home screen? – Matthew Read May 29 '11 at 4:56
why? – Lie Ryan May 29 '11 at 11:26
@Lie: I guess that can be useful... Maybe in case the button is broken. – phunehehe May 29 '11 at 13:22
up vote 2 down vote accepted

There are many widgets available on the Android Market that provide this functionality.

If you are running a custom ROM on your Nexus S (e.g. CyanogenMod) you might already have this feature within the Notification power widget. Go to Menu -> Settings -> CyanogenMod Settings -> Interface -> Notification power widget -> Widget buttons and enable the Go to sleep button (also enable the widget itself in the previous screen.) Now when you pull down the notification bar you can tap the "zzZ" button to lock the phone.

share|improve this answer
I don't have custom ROM yet. Out of curiosity, how do you unlock the phone after you press "zzZ" button? – Cheok Yan Cheng May 31 '11 at 2:11
You can unlock it normally, with the Power button. CyanogenMod ROM also has a feature that allows you to unlock with other hardware buttons as well, such as the trackball on Nexus One, or Volume keys on Nexus S. – Chahk May 31 '11 at 11:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.