If we're talking about jailbreaking, you can write a SpringBoard setting that does this (iOS 7 only)
[[objc_getClass("SBBacklightController") sharedInstance] turnOnScreenFullyWithBacklightSource:0]; [[objc_getClass("SBLockScreenManager") sharedInstance] unlockUIFromSource:0 withOptions:nil];
Without a password lock, the code will turn on the screen and unlock the device. With an access code, he will turn on the screen and request an access code.
creker
source share