Screen unlock broken on image #265 through test automation

Bug #1298869 reported by Didier Roche
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powerd (Ubuntu)
Didier Roche (didrocks)
Changed in powerd (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Oliver Grawert (ogra) wrote :

running the unlock screen command from the testsuite (lp:ubuntu-test-cases/touch) causes the error below:

ogra@anubis:~/Devel/branches/touch-testing$ adb shell 'sudo -i -u phablet bash -ic "/usr/bin/python /sbin/"'
INFO:root:Taking screen lock (
Traceback (most recent call last):
  File "/sbin/", line 52, in <module>
  File "/sbin/", line 14, in unlock_screen
  File "/sbin/", line 20, in _restart_with_testability
    powerd_cookie = _take_powerd_screen_lock(powerd)
  File "/sbin/", line 33, in _take_powerd_screen_lock
    "autopilot-lock", 1, dbus_interface='com.canonical.powerd'
  File "/usr/lib/python2.7/dist-packages/dbus/", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/", line 145, in __call__
  File "/usr/lib/python2.7/dist-packages/dbus/", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.44" (uid=32011 pid=2508 comm="/usr/bin/python /sbin/ ") interface="com.canonical.powerd" member="requestSysState" error name="(unset)" requested_reply="0" destination=":1.2" (uid=0 pid=967 comm="/usr/bin/powerd ")

Revision history for this message
Oliver Grawert (ogra) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

seems the "at_console" policy was accidentially dropped, the above patch fixes it.

Revision history for this message
Oliver Grawert (ogra) wrote :

we also need to add the above to the default lists of tests to run on powerd landing.

bzr branch lp:ubuntu-test-cases/touch
adb push utils/target/ /sbin/
adb shell 'sudo -i -u phablet bash -ic "/usr/bin/python /sbin/"'

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerd -

powerd ( trusty; urgency=medium

  * Revert to previous powerd as screen unlocking doesn't work in
    automation (LP: #1298869)
 -- Didier Roche <email address hidden> Fri, 28 Mar 2014 10:13:51 +0100

Changed in powerd (Ubuntu):
status: New → Fix Released
Changed in powerd:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers