Difference between revisions of "LS2 Debug Commands"

From WebOS-Ports
Jump to navigation Jump to search
(Created page with "Since we have no settings apps at the moment, we need to use luna-send -n 1 -f luna://something/orOther '{"foo": "bar"}' in order to access preferences, exhibition mode and the l...")
 
Line 2: Line 2:
  
 
==Commands==
 
==Commands==
Take Screenshot
+
Screenshot
 
  luna-send -n 1 -f luna://com.palm.systemmanager/takeScreenShot '{"file":"screenshot.png"}'
 
  luna-send -n 1 -f luna://com.palm.systemmanager/takeScreenShot '{"file":"screenshot.png"}'
 +
 +
Get Lock Mode
 +
luna-send -f -n 1 palm://com.palm.systemmanager/getDeviceLockMode {}
 +
 +
Set PIN
 +
luna-send -n 1 -f luna://com.palm.systemmanager/setDevicePasscode '{ "lockMode": "pin", "passCode": "1111" }'
 +
 +
Set Password
 +
luna-send -n 1 -f luna://com.palm.systemmanager/setDevicePasscode '{ "lockMode": "password", "passCode": "hoobadah" }'
 +
 +
Enter/Exit Exhibition Mode
 +
luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'dock'}"
 +
luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'undock'}"

Revision as of 21:10, 16 November 2012

Since we have no settings apps at the moment, we need to use luna-send -n 1 -f luna://something/orOther '{"foo": "bar"}' in order to access preferences, exhibition mode and the like. This page will list various commands that may be of use when debugging luna-sysmgr and friends.

Commands

Screenshot

luna-send -n 1 -f luna://com.palm.systemmanager/takeScreenShot '{"file":"screenshot.png"}'

Get Lock Mode

luna-send -f -n 1 palm://com.palm.systemmanager/getDeviceLockMode {}

Set PIN

luna-send -n 1 -f luna://com.palm.systemmanager/setDevicePasscode '{ "lockMode": "pin", "passCode": "1111" }'

Set Password

luna-send -n 1 -f luna://com.palm.systemmanager/setDevicePasscode '{ "lockMode": "password", "passCode": "hoobadah" }'

Enter/Exit Exhibition Mode

luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'dock'}"
luna-send -n 1 palm://com.palm.display/control/setState "{'state': 'undock'}"