Shell Commands/PowManTool

From MorphOS Library

Revision as of 18:40, 8 January 2016 by JPV (talk | contribs) (Created page with "'''PowManTool''' - Very simple shell tool to control GemBird SIS-PM Silvershield PowerManager sockets/outlets. SOCKET=OUTLET/N, ON/S, OFF/S, TOGGLE/S, STATUS/S, UNIT/N/K <no...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

PowManTool - Very simple shell tool to control GemBird SIS-PM Silvershield PowerManager sockets/outlets.

SOCKET=OUTLET/N, ON/S, OFF/S, TOGGLE/S, STATUS/S, UNIT/N/K

SOCKET=OUTLET/N - number of the socket to change. If not  given,  command
                  applies to all four sockets.

ON/S            - enable power on the given socket(s), or when used  with
                  STATUS/S,  return  OK  when  socket  is  powered,  WARN
                  otherwise.

OFF/S           - disable power on the given socket(s), or when used with
                  STATUS/S,  return  WARN  when  socket  is  powered,  OK
                  otherwise.

TOGGLE/S        - switches power off, if it was powered before, or on, if
                  it  wasn't.  When  used  with  STATUS/S,  it will first
                  toggle the socket(s), and then check, if it or they are
                  now on (see ON/S).

STATUS/S        - checks the status of  one  or  more  sockets.  Normally
                  returns  WARN,  if  one or more sockets are turned off.
                  OFF/S inverts this check.

UNIT/N/K        - if multiple  power  managers  are  connected,  you  can
                  choose  the  right unit with this argument. Defaults to
                  unit 0 of course.

Only devices with Vendor ID = 0x04b4 and Product ID = 0xfd11 are supported.