Comment 2 for bug 1435364

Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

This is how the SDK unlocks the phone:

    powerd = subprocess.Popen(["powerd-cli", "display", "on"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
    sessionBus = dbus.SessionBus()
    unityGreeter = sessionBus.get_object('com.canonical.UnityGreeter','/')
    unityGreeterIFace = dbus.Interface(unityGreeter,dbus_interface='com.canonical.UnityGreeter')
    unityGreeterIFace.HideGreeter()
    # run app and wait until its closed
   powerd.terminate()