powerd-cli help could do with some cleaning up and fixing

Bug #1231455 reported by Colin Ian King on 2013-09-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powerd (Ubuntu)
Undecided
Unassigned

Bug Description

The help from powerd-cli could do with some attention, see my notes below (prefixed by ^^)

active - request the active state, prevent the system from
 suspending. This does not modify the screen state.
active-nc - same as active, but relies on powerd to cleanup
 the request. This is only for testing and will immediatelyexit, causing the request to be dropped.

^^ newline required between "immediately" and "exit"

clear-sys <cookie> - clear a System state request given a cookie

^^ full stop required at end of line.. same for some of the lines below too to be consistent.

clear-disp <cookie> - clear a Display state request given a cookie
client-test - test powerd registration / ack API
display <on|dc> [bright] [proximity] [disableab]
 Make a display state request with the input parameters.
 The first argument represents the state of the display:
 On, Off, or Don't Care (dc).

^^ "on" and "dc" are OK, but "Off" does not make sense, it does not exist
as an option from what I can gather.

 The final optional arguments respectively:
  * make the screen bright [bright]
  * enable the proximity sensor [proximity]
  * disable autobrightness [disableab]
help - display this usage information
list - list outstanding requests
listen - listen for signals from powerd. This runs a
 gmainloop and must be manually killed.
stats - print request statistics
test - runs tests

^^ formatting is a bit ugly on the "-" - how about lining these up?

Changed in powerd:
status: New → In Progress
assignee: nobody → Colin King (colin-king)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerd - 0.13+14.04.20140327-0ubuntu1

---------------
powerd (0.13+14.04.20140327-0ubuntu1) trusty; urgency=low

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Ricardo Salveti de Araujo ]
  * Aborting in case it can't find the android input compat stack
  * Requesting default display and system state when running in the
    emulator.

  [ Colin King ]
  * Minor tidy up and corrections to powerd cli help (LP: #1231455) (LP:
    #1231455)

  [ Y.C cheng ]
  * Allow non-root to talk to powerd. (LP: #1287599)
 -- Ubuntu daily release <email address hidden> Thu, 27 Mar 2014 21:01:04 +0000

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

Other bug subscribers