|
|
10/11/2011, 12:55 PM
|
#302 (permalink) |
|
Member
![]() Join Date: Sep 2011
Location: Italy
Posts: 10
Likes Received: 0
Thanks: 2
Thanked 6 Times in 2 Posts
|
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. |
10/11/2011, 02:41 PM
|
#303 (permalink) |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,954 Times in 1,495 Posts
|
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 03:51 PM. |
10/11/2011, 04:14 PM
|
#304 (permalink) |
|
Member
![]() Join Date: Apr 2010
Location: Westchester, NY
Posts: 214
Likes Received: 13
Thanks: 62
Thanked 26 Times in 20 Posts
|
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! |
10/11/2011, 05:46 PM
|
#306 (permalink) |
|
Member
![]() Join Date: Apr 2010
Location: California
Posts: 698
Likes Received: 112
Thanks: 30
Thanked 87 Times in 60 Posts
|
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. |
10/11/2011, 06:02 PM
|
#307 (permalink) | |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,954 Times in 1,495 Posts
|
Quote:
__________________
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 |
|
10/11/2011, 06:17 PM
|
#308 (permalink) |
|
Member
![]() Join Date: Sep 2011
Location: Italy
Posts: 10
Likes Received: 0
Thanks: 2
Thanked 6 Times in 2 Posts
|
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 |
10/11/2011, 06:26 PM
|
#309 (permalink) | |
|
Member
![]() Join Date: Apr 2010
Location: California
Posts: 698
Likes Received: 112
Thanks: 30
Thanked 87 Times in 60 Posts
|
Quote:
perhaps after you make the call to turn on the LED, you could set the brightness again? |
|
11/11/2011, 11:31 AM
|
#314 (permalink) |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,954 Times in 1,495 Posts
|
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 |
11/11/2011, 11:44 AM
|
#316 (permalink) |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,954 Times in 1,495 Posts
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



