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
|
Quote:
Quote:
Quote:
|
|||
06/30/2009, 10:31 AM
|
#162 (permalink) |
|
Member
![]() Join Date: Feb 2007
Posts: 581
Likes Received: 0
Thanks: 30
Thanked 46 Times in 35 Posts
|
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
|
06/30/2009, 12:51 PM
|
#164 (permalink) | ||
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 100
Likes Received: 1
Thanks: 31
Thanked 79 Times in 17 Posts
|
Quote:
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:
|
||
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
|
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. |
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
|
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? |
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
|
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!! |
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
|
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 |
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
|
Quote:
|
|
06/30/2009, 10:44 PM
|
#170 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Huntsville, AL
Posts: 206
Likes Received: 3
Thanks: 33
Thanked 25 Times in 14 Posts
|
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!
|
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
|
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. |
07/01/2009, 10:31 AM
|
#173 (permalink) |
|
Member
![]() ![]() Join Date: Jul 2005
Location: Berkeley, CA
Posts: 100
Likes Received: 1
Thanks: 31
Thanked 79 Times in 17 Posts
|
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. |
07/01/2009, 11:44 AM
|
#174 (permalink) |
|
Pre Developer
![]() ![]() Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
|
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. |
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
|
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? |
![]() |
|
| 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 | |



