Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shell Commands
#1
Question 
What are all the shell commands for LeapPad Manager to send to LeapPad?
Reply
#2
That's a really good question, I thought I'd scour the leappad forums here and compose a list.

(01-02-2014, 03:59 PM)Deak Phreak Wrote: Are there any special tools for testing and debugging?

[hide]This method has only been tested on the LeapPad 2, but the Ultra uses the same test tools, so it should work on that as well.

First you will need shell access, then you can use the following commands:

touch /flags/no8sec
echo "/LF/Base/MfgTest/LaunchMfgTest.sh" > /flags/main_app

Restart the system and it should boot into the test menu. To boot normally again, choose the disable option in the test tools menu or simply run these commands via shell

rm /flags/no8secs
rm /flags/main_app

This will spit out a list of apps you have installed

cd LF/Bulk/ProgramFiles
grep "Name=" */meta.inf
Disabling the startup delay, copying an app to Main_App and listing files.

(01-31-2015, 11:11 PM)roboknight Wrote: Since I suffer from CRS (Can't Remember Stuff) here are some things to do at the console:

1) Developer mode - On/Off
touch /flags/developer
rm /flags/developer

2) Keep AppManager from booting - On/Off
touch /flags/main_app
rm /flags/main_app

Number 2, as it turns out, will boot whatever you choose to put in the file "main_app".
The nice feature about #2 is, it stops the darn thing from continually shutting off as
it is prone to do when you want to fool with it. It basically just shows the splash screen.

(10-30-2015, 06:33 PM)Joshtech Wrote: Some more special commands

Command:
fbctrl <device> <get|set> <command> [args]

Description:
Controls framebuffers

Use example:
fbctrl /dev/fb0 set blank 0 -Shows framebuffer 0

Command:
display_screen <image path>

Description:
Displays the image provided

Use example:
display_screen test.png -would display an image test.png from root

Command:
fbtest

Description:
Framebuffer test

Use example:
fbtest

Command:
press-power

Description:
Powers down device

Use example:
fbtest

Command:
drawtext-fb <device> <file> <text> [<row> [<col> [<mode>]]]

Description:
Draws text on screen

Use example:
drawtext-fb /dev/fb1 /var/fonts/monotext8x16.rgb "This is a test" 0 0 0

Command:
evtest <device>

Description:
Event test

Use example:
evtest /dev/input/eventX

event0 - PowerButton
event1 - KeyPresses
event2 - TouchScreen
event3 - TouchScreen Raw?
event4 - USB

Command: -Not on LeapPad2 ???
gpio-control

Description:
GPIO Control return

Use example:
gpio-control /dev/gpio invalue 2 <value>

Values:
Left Shoulder = 13
Right Shoulder = 6
A = 3
B = 11
D-Right = 1
D-Left = 8
D-Up = 9
D-Down = 0
Home = 12
Hint = 5

Might I also suggest just running MfgTest directly with
./LF/Base/MfgTest/LaunchMfgTest.sh
or
./LF/Base/EmeraldMfgTest/LaunchMfgTest.sh
That way you don't have to worry about rm the flags XD

You can also load swf files directly with the following command (Works with Explorer, GS, Ultra)
./LF/Base/Flash/bin/saplayer <flash file>


If I've missed any feel free to add/quote them below!
Reply


Forum Jump: