powerd

Revision 10 as of 2013-07-10 18:06:13

Clear message

powerd

powerd is a system daemon that helps manage power states on the phone by providing a DBUS API (to be documented). This API is used by system services, not apps, to change the state of the system power and display. powerd also manages some things internally, like the activity timeout, although that code will be moving to Unity.

Bugs

Please report any bugs you find with powerd. If you have issues, you need to enable debug messages, which as of July 11 are disabled by default. In order to do that you need to edit /etc/init/powerd.conf and remove the comment (the # character) on the line that says "env POWERD_DEBUG=1". After doing that you can reboot the phone and reproduce your issue. Once the issue comes back, please attach the contents of /var/log/syslog to the bug. If you want you can filter that log to only have powerd entries using grep.

The current powerd bug list can be found Here.

Testing

PowerD Test Plan

Test Description

Command

Pass/Fail

Test Display On, Brightness Dim

powerd-cli display on dim

Test Display On, Brightness Bright

powerd-cli display on bright

Test Display On, Brightness Dim, Proximity On

powerd-cli display on dim proximity

Test Display On, Brightness Bright, Proximity On

powerd-cli display on bright proximity

Test Display On upon receiving a phone call

powerd-cli listen

Test Display On upon receiving a SMS text

powerd-cli listen

Test Display On upon receiving a MMS text

powerd-cli listen

Test Feature powerd-cli

powerd-cli test

Test that power button overrides any requested screen state via powerd

Disable screen via power button , followed by powerd-cli display on bright

spanning rows

spanning 2 columns

cell2

cell 3


The following table displays the tested devices, percentage of pass/fail test case ratio.

Tested Devices

Nexus4

Nexus7

<Notes>