yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Mobile 6.5 Themes and Apps] frmariam:
i900 registry

I have a small request regarding the Samsung i900 registry...

Seems like the name/value the phone consistently uses to signal the state of the camera led is HKLM\System\State\MITsMan\MITs_Lantern_Status (dword: 0->off; 1->on). The current value that is changed is HKLM\Drivers\BuiltIn\Camera\Status but this doesn't always reflect the hw state (the led may be toggled using a built phone function and the reg remains the same).

This small change would allow me an accurate way to monitor the hw state in my Today (icon changes according to reg... just a minor annoyance).
[HD2 Windows Mobile 6.5 Themes and Apps] bobzero:
Has anyone actually damaged their LEDs from leaving it on too long?

I accidentally left my LED on bright for 10 minutes and it works fine. Where did this idea that they will burn out come from? What is the longest anyone has left their bright LED on?

EDit:

Found a coulpe example of people burning out their LEDs, but these are both with much older hardware than the Fuze or LEO.

http://xdaforums.com/showthread.php?p=906145#post906145

http://xdaforums.com/showthread.php?t=283587
[HD2 Windows Mobile 6.5 Themes and Apps] cygee26:
huhuhuhuhuhu my HD2 LED BURNOUT

i was using my hd2 led to light up my friend fixing a car at night....

now it wont light up nor flash.....

how can i replace it?
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
You're the first one to report the led burned out. Did you use bright mode extensively?

In either case, you can probably send it in for factory warrenty. HTC even has its own application that makes it just as bright, although that app was delivered with the US versions of the device which may have been better heatsinked.

Also, try flashing another ROM or hard-resetting before sending it in. Just to exclude it's not some other problem.
[HD2 Windows Mobile 6.5 Themes and Apps] BSVNL:
can someone make a fix that it will work on my TouchPro 2?
[HD2 Windows Mobile 6.5 Themes and Apps] azlan96:
Whats the diff between this and the HTC FlashLight here?

http://xdaforums.com/showthread.php?t=643001
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
Too bored to find out yourself?

Install both. It takes a bit more than it took me to type this.
[HD2 Windows Mobile 6.5 Themes and Apps] roticanai:
i just need this. thanks for developing this.
[HD2 Windows Mobile 6.5 Themes and Apps] L22EEW:
I needed this app the other night, as I was looking for something in my garage in the dark. But had to use the LED light, but via the camera mode.

VERY HANDY app to have!
[HD2 Windows Mobile 6.5 Themes and Apps] mordon2008:
wonderfull :D
[HD2 Windows Mobile 6.5 Themes and Apps] tripletschiee:
Perfect! THANKS!!!
[HD2 Windows Mobile 6.5 Themes and Apps] Grey Area:
Super App...love the SOS mode (mostly because it's faster than the SOS on my fiancees android phone...I swear you could drown before anyone decode the message

Android S......................O......................S

WinMo S O S

:-)
[HD2 Windows Mobile 6.5 Themes and Apps] brita:
tnx :) great app
[HD2 Windows Mobile 6.5 Themes and Apps] TrubbleMaker:
TorchButton v2.3, using camera LED as flashlight

Is there a step-by-step guide on installing this app for noobs?

I've downloaded the app to my PC, but I have absolutely no idea where to go from here... :confused:
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Place the .cab file on your windows mobile device, start the 'explorer' or whatever to view files on the device and tap/double tap the .cab file. Installation will start. The cab files are like the setup.exe files for windows.
[HD2 Windows Mobile 6.5 Themes and Apps] TrubbleMaker:
TorchButton v2.3, using camera LED as flashlight

Hi NetRipper

Thank you for the info.

I installed it on my Samsung Omnia Icon and I can see the 5 icons. When I press on any of the these, I get the following error message, "Couldn't detect a supported device, exiting..."

Did I do something wrong or is this device not supported?

I just updated this phone from Windows Mobile 6.1 to 6.5

Thank you for your help.
[HD2 Windows Mobile 6.5 Themes and Apps] igor5477:
NetRipper Very thanks! (+)
[HD2 Windows Mobile 6.5 Themes and Apps] bbsnick:
Great app , working nice on HTC HD2 !!
[HD2 Windows Mobile 6.5 Themes and Apps] remadico:
thx i expect to improve flash camera
[HD2 Windows Mobile 6.5 Themes and Apps] so 77:
lock great ! thanks
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
what are you talking about
[HD2 Windows Mobile 6.5 Themes and Apps] ap.ragno:
Thanks

Great work, thanks for sharing.
[HD2 Windows Mobile 6.5 Themes and Apps] hulkman:
any chance to have this as a dll for use in third party apps? I'm trying to include a torch in a gps geocaching app, and this would be awesome to include...

thanks!
[HD2 Windows Mobile 6.5 Themes and Apps] hulkman:
anyone ???
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Source code is here: https://github.com/netripper/TorchButton

It's in C++ but if you're familiar with marshalling in C# you should be able to make a .net version.
[HD2 Windows Mobile 6.5 Themes and Apps] hulkman:
thanks! using the source I was able to do what I wanted!
[HD2 Windows Mobile 6.5 Themes and Apps] the0ne:
nice work buddy
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
I checked what you said. Under 50% I can still use the camera and its flashlight. When I was at 20% however, I noticed the "flash" icon in the camera application is disabled. So probably from 25-20% downwards the flashlight cannot be used in the camera application.

HOWEVER :D This limit does not apply to TorchButton. You can use TorchButton all the way till your battery is dead*! Have fun!

* This does not come with warrenty, and actually ill-advised! :D
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Just an update...

Took a closer look at the assembly code and found the bright mode. However, it works the same as on the Raphael device. You enable "bright" and about 750ms later it automatically turns it off again. You then need to turn the light off and put bright on again. This means there's the occasional "blinking" every 500-750ms when the light is turned off for a millisecond.

In PMICFlashLED_SetCurrent(x), when you set 'x' to a value higher than 30, it internally starts a thread for bright mode and approx 750ms later it turns it off again.

I've also looked up the "SetMode(x)" function, but it does _nothing_. It only sets the return value to 1 (succes) and returns.

I'm going to look into this a bit further. May find a way around the API.
[HD2 Windows Mobile 6.5 Themes and Apps] l3v5y:
Haha... Brilliant HTC! So SetCurrent(30) is the "flash" part, with it normally being illumination. Makes sense not to keep it on too long given how some hardware can be *cough*X1*cough*.
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Actually, it was "higher than 30". ;) So SetCurrent(0) is off/reset, SetCurrent(1-30) is preview flash (that's how they call it internally), SetCurrent(31-whatever) is bright.

Anyway, found the DeviceIoControl stuff in the asm and was able to control the led via IO. No more custom thread they started in their API, and best of all, no more flickering in bright mode. It still works with the bright/reset principle but it goes fast enough to not have a visible flickering.

I was just updating TorchButton and adding a one-time warning for bright mode, but I screwed up my device while testing it and it'll need a hard reset in the morning (or whenever I wake up ;)). Expect a release tomorrow after I tested it...
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Posted version 2.1. Adds support for bright mode on Leo and has a one-time warning message for bright mode.
[HD2 Windows Mobile 6.5 Themes and Apps] s161008:
Thanks man, Ive been looking for this ~!
[HD2 Windows Mobile 6.5 Themes and Apps] dusanko:
Hi guys,

this is a very useful app for our Leo. Just one suggestion: it would be nice to have an "economic" setting, when only one led would be active. Do you think this is possible?

Thank you again NetRipper!
[HD2 Windows Mobile 6.5 Themes and Apps] Dextrosan:
Perfect, I was hoping someone would make this! Thank you.
[HD2 Windows Mobile 6.5 Themes and Apps] ashe:
just a warning that the LED do get very hot on bright mode for HD2 lol. burny my finger on it last night after having it on for about 30 seconds while looking for a friends key in a club
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Lol thanks for the warning! I haven't dared turning bright mode on for longer than 5 seconds yet :D
[HD2 Windows Mobile 6.5 Themes and Apps] Boni2k:
You were right, nevermind. Sorry :P
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
No, this application won't support the Motorola Droid.

Are you kidding? It's not only a _totally_ different phone, it's also Android instead of Windows Mobile.
[HD2 Windows Mobile 6.5 Themes and Apps] 12aon:
I did a little test with the bright mode, the led got to hot to leave your finger on it within 10-15 secs. I imagine it can take some heat but it might be a good Idea to put a time limit on the bright led because I'm pretty sure with this heat increase something will get permanently damaged after 1 to 2 mins. It would be a bummer if got turned on in your pocket or by a nosy friend destoying the device. Perhaps you disagree,

12
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Good idea. Will make a seperate timeout for bright mode. And the daredevils can change the timeout in the registry then.

Think I'll post a new version tomorrow then.
[HD2 Windows Mobile 6.5 Themes and Apps] tnyynt:
Here's one icon I threw together for your app. Use it if you like it, discard if you don't.
[HD2 Windows Mobile 6.5 Themes and Apps] 12aon:
Nice work the both of you :D
[HD2 Windows Mobile 6.5 Themes and Apps] Nighthawk:
I like this icon, very nice.
[HD2 Windows Mobile 6.5 Themes and Apps] AgentBignose:
Very nice Work!
[HD2 Windows Mobile 6.5 Themes and Apps] Jim328:
Very handy thanks! The bright mode is great, although 15 seconds is enough for me.

Is there any way to get the blink mode to use the bright mode? :eek: It won't get too hot because of the duty cycle. ;)
[HD2 Windows Mobile 6.5 Themes and Apps] hthms:
Dear NetRipper, are you going to extend support for the Omnia Pro (B7610)?
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
If you could send the appropriate dll's related to the camera application in PM, I could take a look. Even better would be a link to an OmniaPRO kitchen for rom cooking. But my quick googling showed it's not available (yet?). I don't know much about the device. :)
[HD2 Windows Mobile 6.5 Themes and Apps] lucid:
How about morse ?

Is there any code available (sourceforge I will check) that we can merge into

Torchbutton so it would send more morse than just S.O.S. ?

I'd like to have the option to input text, and have the device flash it in MorseCode.

Always asking for more :)
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
This is already possible (without the input box). You can change the appropriate registry setting (see readme attached to first post) and change the text that it should send in morse. By default it's set to the string "sos" but you can change it to whatever you want.

Is this good enough for you? Keep in mind that the whole idea is to not have a user interface pop up each time you start one of the Torch apps. Maybe I'll make a seperate app to configure those registry settings. :)
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
What! You don't like my icons!? ;) Just kidding. This looks quite a bit better. However I'd feel like replacing all icons then. So I'd need three more: bright (maybe quite a bit more flare?), blink, sos. You fancy making those too? Else I might abuse your icon and try and make those myself. :D

Oh, oh, and one for the configuration app, when it comes! ;)

Sorry for the late response.
[HD2 Windows Mobile 6.5 Themes and Apps] Jim328:
Cool, good news! :)

What did you thing about a high brightness blink mode? :eek: :D
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
I'm not sure about that. The bright mode works in a special way, so making it blink on the correct intervals won't be perfect. I'll implement something for this for next release. Then you can see if it fits your needs. I'll add a registry setting like UseBrightModeForBlinking which you can set to 1 for this.
[HD2 Windows Mobile 6.5 Themes and Apps] tnyynt:
Here you go! Bring on the critics! :D

EDIT: Added a Folder icon too!
[HD2 Windows Mobile 6.5 Themes and Apps] tnyynt:
And it looks something like this:
[HD2 Windows Mobile 6.5 Themes and Apps] 12aon:
Fully awesome :D
[HD2 Windows Mobile 6.5 Themes and Apps] frmariam:
This is a really cool app! Very useful to add a flashlight button to my HS++ skin.

It would be pretty cool if you could add native support for the Samsung phones flash led (even though wtih the HTCCamera1.dll it works in Samsung phones). I don't know what dll do Samsung phones like my Omnia use (Samsung actually provides APIs but I'm not a coder so...). Is there a unified/universal flash led API you could use (like the one that was developed for the G-Sensor)?.

Anyway I'd like to ask if you could add command line support (so we could create shortcuts with commands... like VJCandela). We could have -toggle, -on (and maybe define for how long it is on), -off, -blink (maybe we could also define the interval or pattern), -morse (we could define the test). I reccon that with this implemented it would be more flexible than it is relying on reg keys and we would only need a single exe.

Thank you for this great app :)
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Looking good! Thanks!

I can add native support for the Omnia. At least, the one found here. I'm not sure if it'd work for other samsung phones as well.

To my knowledge there is no generic LED API or library.

And regarding the parameter switches. This is actually already supported. The TorchButton.exe has all the functionality. The TorchButtonBright.exe just calls TorchButton.exe with the /bright switch. Currently only /bright /sos /ptt /blink are supported. No parameters = normal mode. Starting TorchButton a second time (while LED is still on), disables it. I made it to have multiple .exe's so that it'd be more compatible with launcher applications that don't show the correct icon with .lnk files (they show the icon of the exe linked to).
[HD2 Windows Mobile 6.5 Themes and Apps] Jackuuuuu:
Thanks! I missed the flash light since Atom days lol
[HD2 Windows Mobile 6.5 Themes and Apps] namor:
Ihe Icons look great

But how to change them?
[HD2 Windows Mobile 6.5 Themes and Apps] Freeman81:
Yes, how can I change the Buttons ? :confused:
[HD2 Windows Mobile 6.5 Themes and Apps] Audio Oblivion:
quick question guys... what is PTT mode?

It doesnt seem to do anything for me.

and thanks to the dev!
[HD2 Windows Mobile 6.5 Themes and Apps] Jim328:
Yeah, I noticed that with a quick double tap on bright mode, it gets "stuck" on for half a second or so unlike normal mode. I set my blink mode to 15ms on 85ms off, it makes a pretty good strobe light, just wish it was full power. :D

Are these 2x 3w leds in our hd2's? When I use my bright mode, the usual response is "****!" lol.

Good luck, maybe you can override the bright mode after its been triggered? I wish I could code.. :o
[HD2 Windows Mobile 6.5 Themes and Apps] Jim328:
Oops repost :(
[HD2 Windows Mobile 6.5 Themes and Apps] namor:
OK..

I found a solution to add the new icons

1) I used the site http://www.convertico.com to convert from .png to .ico

2) Then I used reshacker http://angusj.com/resourcehacker to modify the .exe files
[HD2 Windows Mobile 6.5 Themes and Apps] tnyynt:
http://pocketnow.com/tweaks-hacks/tutorial-get-nice-and-sharp-icons-on-sense-quick-links-in-wm65
[HD2 Windows Mobile 6.5 Themes and Apps] chimpsinties:
Cool program dude,

What's the TourchButton PTT one for? If I click it it just doesn't do anything? :confused:
[HD2 Windows Mobile 6.5 Themes and Apps] Rod65:
Just look into the readme file in first post:

PTT: The Push-To-Talk/Torch mode. When your device has a key you can map to 'hold', you can use this feature to keep the light on as long as the key is pressed.

The AT&T Fuze is one of those devices with a PTT button.;)
[HD2 Windows Mobile 6.5 Themes and Apps] chuarkov:
thanks man... I was searching for it.
[HD2 Windows Mobile 6.5 Themes and Apps] dusanko:
Any luck with this?
[HD2 Windows Mobile 6.5 Themes and Apps] the_real_fosgate:
Hello Tnyynt,

can you tell me, when you update your app, is it comming

with the new awesome icons?

Thnx

Robert
[HD2 Windows Mobile 6.5 Themes and Apps] lucid:
@NetRipper : Thanks a bunch. Works as advertised. Great to have an 8K limit instead of

something like 255 chars :) Great to have this.

Now, we need a camera app that decodes morse and translates to text. This way it should be possible to transfer text/data in the dark via lightsignals.

Why, well because we can. And looking at the world, a kid knowing morse will soon have the advantage ;)
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Updated first post with a todo list. There was just too much to remember ;)

Haven't had time to check this out yet. It goes hand-in-hand with my efforts on getting Linux to run on the Leo. It'll take some time...

See Wishful thinking in first post :D I probably won't ever have time for it ;)

Sorry for speaking in turn, but I don't think Tnyynt is going to release his own version. Or did I miss anything? :)

Anyway: as soon as possible. I had hoped yesterday, but didn't have any time to work on it. So now I'm hoping I can get some todo's done this weekend.
[HD2 Windows Mobile 6.5 Themes and Apps] the_real_fosgate:
Hey Netripper :D

Shame on me !!! :(

Sorry for that.

Thanks for answer, i am looking forward to the new version!

Bye

Robert
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Sorry. It's not possible. I checked it out on a very low-level (GPIOs), but it's not possible to control the LED individually.

Maybe if you go digging in your device with solder....... ;)
[HD2 Windows Mobile 6.5 Themes and Apps] dusanko:
Thanks for your effort anyway, love the app!

Will think about the solder ;)
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Still working on next version..

Blink with bright led will work in next version, even at 15ms/85ms intervals. Just implemented that.

Also got all the icons working already. Only the PTT icon was missing, so I made one myself. If anyone (or tnyynt in particular) can come up with a better image, be my guest. Graphics isn't my 'thing'. :)

Still need to remove hackish code and add omnia (1) support.

Not sure why it converted to .jpg on upload instead of png.
[HD2 Windows Mobile 6.5 Themes and Apps] tnyynt:
zip it ;)

Else it looks good!
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Posted new version. See first post for changes. :)
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
Great thanks.

The new blink with bright mode is nice. I use 950/50, maybe you should have it as default as it much "nicer" for a default ;) (hear me - I was right about SOS timings remember :D)...

I didn't understand why you changed shortcut names.

Bug: The new icons didn't show up. Yes I have HD2.
[HD2 Windows Mobile 6.5 Themes and Apps] 12aon:
You do have to restart and you can't rename the shortcuts,

12
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
I didn't rename them - I just noticed the name change.

I did the reset - no change. I DID move the folder in a subfolder though.
[HD2 Windows Mobile 6.5 Themes and Apps] 12aon:
Then that's why it's unskinned, WM6.5 uses 90x90 png icon "skins" that are set via the registry. Should you move them back to the original place again and soft reset they become skinned again. If you want them to be skinned where you have placed them now you must adjust the reg settings accordingly,

12
[HD2 Windows Mobile 6.5 Themes and Apps] chimpsinties:
I removed the v2 of your app then installed v2.2 to get the new functionality and new icons. But all I get is all the old icons and the main folder icon has just turned into a folder instead of the picture of the camera flash like in your first post :(
[HD2 Windows Mobile 6.5 Themes and Apps] Rod65:
I have just installed your new version 2.2 on my HD2 after uninstalling 2.1, but there are no new icons in my start menu, only the old ones from 2.1.

Do I have to do something to make them appear, please ?
[HD2 Windows Mobile 6.5 Themes and Apps] 12aon:
Please tell me that you both tried a soft reset, didn't move the folders and read my above post... If any of these things fix your problem you'll have to bang your head against the wall for two full minutes.... :eek:
[HD2 Windows Mobile 6.5 Themes and Apps] chimpsinties:
All I did was go to settings and remove the old program. Then install the new cab, then soft reset. Was that wrong? :eek:
[HD2 Windows Mobile 6.5 Themes and Apps] kruelant:
You need to clear icon cache to get rid of old icons

delete *.bmg file and be happy:

\Application Data\HTC\ProgLauncher\
[HD2 Windows Mobile 6.5 Themes and Apps] chimpsinties:
There isn't one in that folder that relates to the touch light program. What will deleting all of them actually do?
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
Updated first post with some history stuff I forgot... think I was already sleeping last night :)

You need to soft-reset your phone for the new icons to show up. And I found the new shortcut names to be nicer, as they were cut off if you added for example "TorchButton Bright" to home screen, you'd only see TorchButton...

You forgot to soft-reset your phone. Turn it off and on again.

Soft-reset should be sufficient (in all of my tests anyway). I thought of adding a custom action to the .cab file to remove all *.bmg files automatically, but if it's just a soft-reset away, I save myself the trouble. :)
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
there must be some issue anyway since I installed torchbutton on a FRESH HD2 1.48 (and didn't move or anything), and three icons showed up new and two old :D
[HD2 Windows Mobile 6.5 Themes and Apps] Rod65:
Now I realised that I have banged my head 2 minutes for only a headache and still no success in getting the new icons:(
[HD2 Windows Mobile 6.5 Themes and Apps] rovex:
There is definitely an icon issue i also installed 2.2 directly (2.1 was never installed) on a fresh 1.48 ROM and got the old icons.. Strangely on my old ROM i did install 2.1 and upgraded to 2.2 and got the new ones!
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
after reset I got the new ones

the thing is that I want to move the folder and icons - can we have the graphics in the program folder? (so that reStart can replace them in the icon?)
[HD2 Windows Mobile 6.5 Themes and Apps] NetRipper:
You sure you did a soft-reset? Maybe soft-reset is needed for new installations as well. I thought it'd only be neccesary for updates.

The icons are in the program folder. The problem is how the WM6.5 start menu works. In there you specify the location of the shortcuts to skin.

If you look in the registry you will find:

HKLM\Security\Shell\StartInfo\Start\TorchButton\Torch.lnk

HKLM\Security\Shell\StartInfo\Start\TorchButton\TorchBright.lnk

etc... They all have the 'Icon' value with a path to the .png image. If you move the links to, i.e. Apps folder, you have to update the registry. Maybe I'll update the .exe files with the new icons, but quality-wise they'll be a lot worse.
[HD2 Windows Mobile 6.5 Themes and Apps] NLS:
yes I know these things

well for some reason even after I moved the folder, I still have the new icons

maybe because first I "used" them once and THEN I moved the folder

(and yes they work after reset too)
[HD2 Windows Mobile 6.5 Themes and Apps] chimpsinties:
No I didn't forget to reset it :rolleyes:, as I said in the post. I uninstalled the old one, installed the new one then soft reset it.

Just for good measure, I also uninstalled, reset, then installed the new one and reset AGAIN and it was still showing the old icons with just a folder in the main start menu. :eek: