webOS Nation Forums >  webOS Developer Forums >  Canuck Coding > LED Torch v0.2.7 - Flashlight App
LED Torch v0.2.7 - Flashlight App
  Reply
Like Tree2Likes

 
Thread Tools Display Modes
Old 10/11/2011, 01:32 PM   #301 (permalink)
mpx
Member
 
Posts: 12
Quote:
Originally Posted by Jason Robitaille View Post
Sweet, works. I noticed I had to "echo 2 > flash_enable" to enable torch mode.
yes, sorry. I didn't remember correctly when i wrote the post.
Updated
mpx is offline   Reply With Quote
Old 10/11/2011, 01:55 PM   #302 (permalink)
mpx
Member
 
Posts: 12
Just some more details:

led current in flash and torch are checked against an intensity table to validate them:
static struct brightness_entry flash_brightness_map[] = {
{0x0, 38},
{0x1, 75},
{0x2, 113},
{0x3, 150},
{0x4, 188},
{0x5, 225},
{0x6, 263},
{0x7, 300},
{0x8, 338},
{0x9, 375},
{0xA, 413},
{0xB, 450},
{0xC, 488},
{0xD, 525},
{0xE, 563},
{0xF, 600}
};

static struct brightness_entry torch_brightness_map[] = {
{0x0, 18},
{0x1, 37},
{0x2, 56},
{0x3, 75},
{0x4, 93},
{0x5, 112},
{0x6, 131},
{0x7, 150},
};

where the second number is intensity. So it should not be the risk to damage led (at least in torch mode). Duration is max 1024 (milliseconds?) for flash mode.
mpx is offline   Reply With Quote
Thanked by HaPe, Jason Robitaille
Old 10/11/2011, 03:41 PM   #303 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,855
I've just submitted an update to LED Torch.

v0.2.7 - October 12, 2011
- Re-added SysToolsMgr package dependency flag (forgot to include it in 0.2.6)

v0.2.6 - October 11, 2011
- Special compatibility improvements for Pre3's led flash brightness scale, thanks to mpx

Supports the brightness range from 18mA to 150mA

Won't be on the feed for a few hours until the feed gets refreshed and notices the updated app. So in the meantime, feel free to install the .ipk manually from http://dl.dropbox.com/u/2774158/ca.c..._0.2.7_all.ipk


Make sure you have the new just-released v1.0.5 SysToolsMgr is you're using it on a Pre3.
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook

Last edited by Jason Robitaille; 10/12/2011 at 04:51 PM.
Jason Robitaille is offline   Reply With Quote
Liked by negradio likes this.
Old 10/11/2011, 05:14 PM   #304 (permalink)
Member
 
Posts: 220
Huge thanks. I just donated a very small token of appreciation. Much more is owed to you and the rest of the Homebrew/Internaz folks.

Torch, Torch, Hurray!
circadia is offline   Reply With Quote
Thanked By: Jason Robitaille
Old 10/11/2011, 06:26 PM   #305 (permalink)
Member
 
Posts: 4
Just to confirm - works like charm - both application as well as alternative methods to turn it on (I use one of the system menu mods).
jakubd is offline   Reply With Quote
Old 10/11/2011, 06:46 PM   #306 (permalink)
Member
 
johnsonx42's Avatar
 
Posts: 854
thanks for the new version Jason, it was the biggest thing I was missing on my Pre3.

a little bug though with the app: it won't respect the brightness setting if I set it with the led off - I have to turn it on then set the brightness. this is on an AT&T Pre3 w/2.2.3 if that makes any difference.

also the first time I tried it I couldn't get it to turn off without closing the app then re-opening it, but that hasn't recurred since so it was probably a one-time glitch.
johnsonx42 is offline   Reply With Quote
Old 10/11/2011, 07:02 PM   #307 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,855
Quote:
Originally Posted by johnsonx42 View Post
thanks for the new version Jason, it was the biggest thing I was missing on my Pre3.

a little bug though with the app: it won't respect the brightness setting if I set it with the led off - I have to turn it on then set the brightness. this is on an AT&T Pre3 w/2.2.3 if that makes any difference.

also the first time I tried it I couldn't get it to turn off without closing the app then re-opening it, but that hasn't recurred since so it was probably a one-time glitch.
oddly, I'm not able to reproduce the bugs you mention. Can you confirm you are on v0.2.6 of LED Torch and v1.0.5 of SysToolsMgr?
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 10/11/2011, 07:17 PM   #308 (permalink)
mpx
Member
 
Posts: 12
I confirm the bug.

But it's not a bug, it's a feature. :-P I think it is caused by the fact that the kernel ignore all settings made until the led is turned on.
You can see the reject on /var/log/messages

2011-10-11T23:12:31.852783Z [30912] webos-device kern.err kernel: [161984.486755] Flash must be enabled before use
mpx is offline   Reply With Quote
Old 10/11/2011, 07:26 PM   #309 (permalink)
Member
 
johnsonx42's Avatar
 
Posts: 854
Quote:
Originally Posted by Jason Robitaille View Post
oddly, I'm not able to reproduce the bugs you mention. Can you confirm you are on v0.2.6 of LED Torch and v1.0.5 of SysToolsMgr?
definitely on v0.2.6 & v1.0.5. didn't have either package installed before, as I knew they didn't work.

perhaps after you make the call to turn on the LED, you could set the brightness again?
johnsonx42 is offline   Reply With Quote
Old 10/12/2011, 09:28 AM   #310 (permalink)
Member
 
Posts: 29
Hello,
Thanks for this app. I have installed in Pre- and now i installed in pre3.
Thanks Jason.
You are great!!!
Lluisinho
Para todos, todo!!!
lluisinho is offline   Reply With Quote
Old 10/13/2011, 07:33 AM   #311 (permalink)
Member
 
Posts: 43
fantastic
chaseincats is offline   Reply With Quote
Old 10/27/2011, 01:36 PM   #312 (permalink)
Member
 
Posts: 1
Any chance to work in the Pixi Plus?
LittleNibble is offline   Reply With Quote
Old 11/11/2011, 12:17 PM   #313 (permalink)
Member
 
Posts: 48
Please can someone tell about it's compatibility with pixi.
nattysinister is offline   Reply With Quote
Old 11/11/2011, 12:31 PM   #314 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,855
Quote:
Originally Posted by nattysinister View Post
Please can someone tell about it's compatibility with pixi.
as has been noted many time on previous pages, and other forum threads, the pixi uses an unknown proprietary LED flash controller format and thus doesn't work in LED Torch or any other flashlight apps currently
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 11/11/2011, 12:41 PM   #315 (permalink)
Member
 
UncleVanya's Avatar
 
Posts: 1,501
Quote:
Originally Posted by Jason Robitaille View Post
as has been noted many time on previous pages, and other forum threads, the pixi uses an unknown proprietary LED flash controller format and thus doesn't work in LED Torch or any other flashlight apps currently
Jason - do you know if anyone has ever asked HP to release the info on this controller?
UncleVanya is offline   Reply With Quote
Old 11/11/2011, 12:44 PM   #316 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,855
Quote:
Originally Posted by Unclevanya View Post
Jason - do you know if anyone has ever asked HP to release the info on this controller?
Not sure. I know the most that's been offered up so far was the camera c headers.
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 01/01/2013, 09:28 PM   #317 (permalink)
Member
 
TJs11thPre's Avatar
 
Posts: 940
just wanted to mention while trying to install this flashlight app, it was giving me issues with doing it DIRECTLY through the WOSQI; as in downloading within it.

i was able to successfully put each service on and then the flashlight by downloading each to my computer first, and then installing via the Add File function in WOSQI.

this is on a FrankenPre2 running 2.2.4. Not sure if was an issue stemming from my phone, or something you may be able to resolve.

thanks for your contributions to webOS and Happy New Year.
TJs11thPre is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0