webOS Nation Forums >  webOS developer forums >  Vertigo Studios > My Flashlight
My Flashlight

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/30/2009, 03:35 AM   #161 (permalink)
Member
 
Join Date: Jun 2009
Posts: 100
Likes Received: 1
Thanks: 10
Thanked 40 Times in 13 Posts
Default

Quote:
Originally Posted by pEEf View Post
Have you rebooted? The Java service isn't registered until a reboot.
From the readme:

Quote:
----------------------
Install/ Update service
-----------------------
- Place the flashlight.tar at the root / dir
- run tar -xvf flashlight.tar (this will extract the files to the needed directory)

-Run the following command while rooted into the Pre

/usr/bin/luna-helper 'luna://com.palm.vm/launch' '{"serviceName":"com.pregame.prelease","className":"com.pregame.Prelease"}'

This will start the Prelease service.
Are you saying that it should instead read as follows?

Quote:
----------------------
Install/ Update service
-----------------------
- Place the flashlight.tar at the root / dir
- run tar -xvf flashlight.tar (this will extract the files to the needed directory)

- REBOOT!

-Run the following command while rooted into the Pre

/usr/bin/luna-helper 'luna://com.palm.vm/launch' '{"serviceName":"com.pregame.prelease","className":"com.pregame.Prelease"}'

This will start the Prelease service.
Keegan99 is offline   Reply With Quote
Old 06/30/2009, 10:31 AM   #162 (permalink)
Member
 
as4life's Avatar
 
Join Date: Feb 2007
Posts: 581
Likes Received: 0
Thanks: 30
Thanked 46 Times in 35 Posts
Default

Quote:
Originally Posted by Eguy View Post
If you don't know about Linux I suggest you stay away from rooting because of the harm it may cause even though the webOS Reset Doctor is available to download. You can always read any book on Linux .
Honestly i had no experience using linux or SSH and i was able to root and mod my pre by following the instructions and getting help from the members on this board. But try at your own risk
as4life is offline   Reply With Quote
Old 06/30/2009, 11:31 AM   #163 (permalink)
Member
 
Join Date: Jun 2009
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 4 Times in 1 Post
Default

Reboot did it for me, thanks.
snakedal337 is offline   Reply With Quote
Old 06/30/2009, 12:51 PM   #164 (permalink)
Member
 
pEEf's Avatar
 
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 100
Likes Received: 1
Thanks: 31
Thanked 79 Times in 17 Posts
Default

Quote:
Originally Posted by Keegan99 View Post
From the readme:
Are you saying that it should instead read as follows?

No, The last step isn't really necessary. It was supposed to save the reboot step, but it cannot work, as the dbus service hasn't been registered yet, which is what the error is saying.

So it's really:

Quote:
----------------------
Install/ Update service
-----------------------
- Place the flashlight.tar at the root / dir
- run tar -xvf flashlight.tar (this will extract the files to the needed directory)

- REBOOT!

- Enjoy!
pEEf is offline   Reply With Quote
Thanked By: Keegan99
Old 06/30/2009, 06:23 PM   #165 (permalink)
Member
 
Join Date: Jun 2009
Posts: 100
Likes Received: 1
Thanks: 10
Thanked 40 Times in 13 Posts
Default

Excellent.

Worked like a charm.

Now that I'm dissecting things and figuring out how it all works, I have a few questions:

* The index.html seems to be ignored. What tells the environment to load the ./app/views/flashlight/flashlight-scene.html? I don't see a reference to this file in the JSON or in any of the code, so I assume it must be derived somehow.

* Why don't CSS changes made to pretty.css propagate to flashlight-scene.html? If I make flashlight.scene.html a proper html document (with html tags, head tags, etc.) the app barfs, so I figure flashlight-scene.html is somehow only used as an snippet, yet the main document's (index.html's) link to pretty.css doesn't seem to apply either.

Apologies if these are basics. Just got my Pre this past weekend so I'm a little behind the curve here.
Keegan99 is offline   Reply With Quote
Old 06/30/2009, 09:54 PM   #166 (permalink)
Member
 
Join Date: Jun 2009
Posts: 100
Likes Received: 1
Thanks: 10
Thanked 40 Times in 13 Posts
Default

If anyone is interested, here's a tweaked version of the icon without the white background and some alpha blending and transparency:



Easy enough to install - just copy over the icon.png folder and reboot. Is there an easy way to force icon reloading by the shell without rebooting?
Keegan99 is offline   Reply With Quote
Old 06/30/2009, 09:58 PM   #167 (permalink)
Member
 
Join Date: Jun 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Firstly I'd like to thank PreGame for his awesome work! I'm still having a huge problem though. I keep getting the error message when I try to untar the file.

-sh: run: not found

I've been trying at this all day and I can't figure it out for the life of me. I've successfully gained root access to my pre, placed the "flashlight.tar" file into the root directory of the pre (H:/) and typed in the command line. I have done this repeatedly, extracted the files manually, and tried everything. Still can't figure it out. Thanks for the help!!
GregAMDG is offline   Reply With Quote
Old 06/30/2009, 10:28 PM   #168 (permalink)
Member
 
Join Date: Dec 2004
Posts: 192
Likes Received: 0
Thanks: 18
Thanked 22 Times in 12 Posts
Default

I have looked and looked, has a non-rooted IPK email link been published yet? If so, please provide it here again or a link to where I can get the email with the link. 'Holding out on 1.0.4 until I can get this great app!

Thank you,

Robert
rmackay is offline   Reply With Quote
Old 06/30/2009, 10:44 PM   #169 (permalink)
Member
 
Join Date: Jun 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by xorg View Post
Didn't work for me either. Check updated instructions on the wiki. There is also now a packaging script by 'quailish' that might make it easier for you. Some are now reporting the app must be installed in /usr/palm and not /var/usr/palm. You also may have to put a lead ./ in the control.tar.gz. See updated wiki.

pre dev wiki: Installing Homebrew Apps on Stock Pre without Rooting
YES! And NO...this installed on my pre, comes up and I can turn the switch on and off...only problem...the led doesn't turn on.
GregAMDG is offline   Reply With Quote
Old 06/30/2009, 10:44 PM   #170 (permalink)
Member
 
JohnLBurger's Avatar
 
Join Date: Jun 2009
Location: Huntsville, AL
Posts: 206
Likes Received: 3
Thanks: 33
Thanked 25 Times in 14 Posts
Default

Quote:
Originally Posted by rmackay View Post
I have looked and looked, has a non-rooted IPK email link been published yet? If so, please provide it here again or a link to where I can get the email with the link. 'Holding out on 1.0.4 until I can get this great app!

Thank you,

Robert
If I'm not mistaken, this app requires using code and services that are currently not directly accessible through the SDK and thereby not compatible with non-rooted Pres. Sorry. I wish it was too!
JohnLBurger is offline   Reply With Quote
Old 06/30/2009, 10:45 PM   #171 (permalink)
Member
 
JohnLBurger's Avatar
 
Join Date: Jun 2009
Location: Huntsville, AL
Posts: 206
Likes Received: 3
Thanks: 33
Thanked 25 Times in 14 Posts
Default

Quote:
Originally Posted by GregAMDG View Post
YES! And NO...this installed on my pre, comes up and I can turn the switch on and off...only problem...the led doesn't turn on.
Sounds to me like that defeats the purpose of having the app! Wish I could help (and have on non-rooted).
JohnLBurger is offline   Reply With Quote
Old 07/01/2009, 10:16 AM   #172 (permalink)
Member
 
Join Date: Jun 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok...I installed the IPK through the SDK. Obviously the icon is going to show up and the program will run but the LED doesn't come on. I attempted to install the .sh files while rooted in the pre:

chmod 744 /usr/palm/applications/com.pregam.app.flashlight/app/scripts/lighton.sh

Again I get this darned error:

No such file or directory

I'd appreciate any help.
GregAMDG is offline   Reply With Quote
Old 07/01/2009, 10:31 AM   #173 (permalink)
Member
 
pEEf's Avatar
 
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 100
Likes Received: 1
Thanks: 31
Thanked 79 Times in 17 Posts
Default

AGAIN: To be Clear; There is NO CURRENT WAY to get this app to work correctly without rooting!

You can install the app itself, but the LED will NOT light up unless you install the DBUS service jar running as root from a command line!

The IPK is therefore useless! Do not even bother with it, as it will do absolutely nothing.

Note: All the "type:" instructions below mean to type everything as seen between the quotes, not including the quotes, then hit enter.

Again; here are the working instructions:
1. ROOT your Pre. http://predev.wikidot.com/rooting
2. Login to your Pre using your favorite terminal.
3. Make sure you are running as root (type: "su -")
4. cd to root (type: "cd /")
5. Make sure the filesystem is RW (type: "rootfs_open -t")
6. Get the flashlight tar. (type: "wget http://lunaware.com/flashlight.tar")
7. Untar it. (type: "tar -xvf flashlight.tar")
8. now reboot and logout. (type: "reboot", then "exit", then "exit")

When your Pre comes back up, the flashlight should work if you have done everything correctly.
pEEf is offline   Reply With Quote
Old 07/01/2009, 11:44 AM   #174 (permalink)
Pre Developer
 
PreGame's Avatar
 
Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
Default

if you installed the IPK through the SDK then it stored the application in /var/usr/palm/.../... and so on. It is not recommended to use the IPK as the IPK posted by another member will not work since the services cannot be installed via IPK.

Please follow pEEf's instructions above for installation.
PreGame is offline   Reply With Quote
Old 07/01/2009, 11:48 AM   #175 (permalink)
Pre Developer
 
PreGame's Avatar
 
Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
Default

The original post has been updated with IPK notes.
PreGame is offline   Reply With Quote
Old 07/01/2009, 12:01 PM   #176 (permalink)
Member
 
Join Date: May 2003
Posts: 8,357
Likes Received: 316
Thanks: 2,130
Thanked 1,765 Times in 1,131 Posts
Default

Quote:
Originally Posted by pEEf View Post
...
3. Make sure you are running as root (type: "su -")
...
Side issue when I try to type the "su -" command, I get the following:

su: must be suid to work properly

I've got very rudimentary Linux skills, and have been just using sudo on all my commands. So far, that's gotten me through things.

What do I need to change?
hparsons is offline   Reply With Quote
Old 07/01/2009, 12:32 PM   #177 (permalink)
Member
 
pEEf's Avatar
 
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 100
Likes Received: 1
Thanks: 31
Thanked 79 Times in 17 Posts
Default

Quote:
Originally Posted by hparsons View Post
Side issue when I try to type the "su -" command, I get the following:

su: must be suid to work properly

I've got very rudimentary Linux skills, and have been just using sudo on all my commands. So far, that's gotten me through things.

What do I need to change?
sudo chmod +s /bin/su
pEEf is offline   Reply With Quote
Thanked by hparsons, i700plus, TIWizard
Old 07/01/2009, 12:42 PM   #178 (permalink)
Member
 
Join Date: May 2003
Posts: 8,357
Likes Received: 316
Thanks: 2,130
Thanked 1,765 Times in 1,131 Posts
Default

Quote:
Originally Posted by pEEf View Post
sudo chmod +s /bin/su
Excellent!! That did it for me.
hparsons is offline   Reply With Quote
Old 07/01/2009, 01:16 PM   #179 (permalink)
Member
 
Join Date: Jun 2009
Posts: 41
Likes Received: 0
Thanks: 6
Thanked 1 Time in 1 Post
Default

This is over my head... I just bought a flashlight and I'm gonna duct tape it to the phone. lol
MRBULLRED is offline   Reply With Quote
Old 07/01/2009, 01:19 PM   #180 (permalink)
Member
 
pEEf's Avatar
 
Join Date: Jul 2005
Location: Berkeley, CA
Posts: 100
Likes Received: 1
Thanks: 31
Thanked 79 Times in 17 Posts
Default

LOL!

And it doesn't even require rooting. In fact, the opposite is true. You need to take the duct tape off to plug the USB cable in so you can root.

Quote:
Originally Posted by MRBULLRED View Post
This is over my head... I just bought a flashlight and I'm gonna duct tape it to the phone. lol
pEEf is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://forums.webosnation.com/vertigo-studios/187407-my-flashlight.html
Posted By For Type Date
Flashlight on the Pre - PPCGeeks This thread Refback 06/21/2009 11:53 AM


 


Content Relevant URLs by vBSEO 3.6.0