Continuing my quest of using the LED as flashlight for my new HD2, I updated TorchButton to support the HD2 as well.
Dropped your keys? Finding something behind the bench? Performing surgery on a computer and need to find that jumper on the mainboard?
This is a simple application built for some HTC devices that have a hardware LED, normally used to take pictures in the dark. However I found the LED to be perfect to be used as a handy pocket flashlight.
Usage
There is no GUI for this application. Just start TorchButton to enable the LED on the back of your device. Start TorchButton again to turn it off.
Check out the readme if you're an advanced user and wish to change some registry settings, i.e. to allow a longer maximum time the LED is enabled.
Known issues
- [Fixed] New icons are not working when TorchButton is installed to Storage Card
Todo
- Create an app to configure the registry settings
- See if support for Omnia Pro (B7610) is feasible (someone should send me the related dlls...)
- [Done] Add a seperate timeout for bright mode
- [Done] Add blink mode with bright led
- [Done] Use new icons provided by tnyynt
- [Done] Add support for Omnia (the one found here)
- [Impossible] See if it's possible to control leds seperately ('economic mode') Sorry, this is not possible. (Tech-talk: setting a single GPIO enables both LEDs. There doesn't seem to be a GPIO for each LED seperately.)
Wishful thinking
- Camera app to interpret the morse
History
Version 2.3
- Fix icons not showing in HTC Sense or WM 6.5 start menu when installed to Storage Card.
Version 2.2
- New icons for all TorchButton apps (thanks tnyynt!). These only work in WM6.5 and up. Older OS's will still see the old icons.
- Added registry setting to use bright setting in blink mode (see BlinkUsesBrightMode).
- Bright mode now has a seperate timeout, configurable in registry (see BrightModeTimeout).
- Added support for Samsung Omnia i9x0 devices (hopefully they all work). Thanks to raph/zemrwhite2/PaSSoA. Thanks to Chainfire for testing on his Omnia i900L.
- [edit] Shortcut names have changed. I found them nicer this way, no two-line icons. And the text is now also not cut-off when added as shortcut in the home screen.
- [edit] Improved handling of bright mode. It should stop immediately now when pressed again, instead of waiting for a 500ms interval. This makes BlinkUsesBrightMode possible combined with low intervals for blink mode.
- [edit] Soft-reset your phone after upgrading from an older version! Else the new icons will not show.
Version 2.1
- Bright mode is now support on the HTC HD2 (Leo).
- Added a one-time warning message when bright mode is used for the first time.
Version 2.0
- Initial version with support for the HTC HD2 (Leo) (bright mode is not supported on the Leo)
Version 1.x
- Support for the Touch Pro
Dont think about something. Untill i read your post. This could be handy sometimes. Thnx
Awesome man I was just thinking how I missed that
Btw what's missing for bright mode to work? If I'm not mistaken there is a brighter mode just before taking a pic.
Thanks! I was dissapointed that hTorch didn't work on the HD2 now I got this. Wonderful!
Great ! thanks
Have it on my Omnia and was hoping to have it for my future HD2 !
You're all welcome! Glad to hear you like it.
12aon said:
Awesome man I was just thinking how I missed that
Btw what's missing for bright mode to work? If I'm not mistaken there is a brighter mode just before taking a pic.
Click to expand...
Click to collapse
The mode is there, but it's not as easily called as it was on the Touch Pro. In fact I haven't found the API call at all yet. May need some hacking around the API to get that to work. The normal mode produces _quite_ the amount of light though, it's even more light than the bright mode of the Touch Pro thanks to the dual led.
Zero Masamune said:
Thanks! I was dissapointed that hTorch didn't work on the HD2 now I got this. Wonderful!
Click to expand...
Click to collapse
hTorch will work again once I update the C# wrapper to support the Leo, as hTorch makes use of my C# library. I'll do that somewhere in the upcoming week.
Great, works perfect ! Txs
Can anyone confirm this don't burn anything out? On the X1 the light modules weren't heatsinked properly and caused vibrator motor to screw up after 15secs use as a torch.
Thanks!
kinnyfaifai said:
Can anyone confirm this don't burn anything out? On the X1 the light modules weren't heatsinked properly and caused vibrator motor to screw up after 15secs use as a torch.
Thanks!
Click to expand...
Click to collapse
I can't confirm it won't ever burn out. However, realise that enabling the LED is actually the same as using your camera with the lights on in the dark. This _shoud_ be possible for prolonged times as well.
Were you using the 'bright' setting on the X1? (If that's possible there.) That might explain it better... otherwise you could just send in the device for repair, as it's normal use of the device. Especially if it's after only 15 seconds.
NetRipper said:
I can't confirm it won't ever burn out. However, realise that enabling the LED is actually the same as using your camera with the lights on in the dark. This _shoud_ be possible for prolonged times as well.
Were you using the 'bright' setting on the X1? (If that's possible there.) That might explain it better... otherwise you could just send in the device for repair, as it's normal use of the device. Especially if it's after only 15 seconds.
Click to expand...
Click to collapse
It was a known problem that the LEDs weren't heatsinked properly on the X1 and there was a huge warning on using hTorch. I've not installed hTorch and never used the LEDs on my X1 as a torch cos of this oversight by the manufacturer. I do miss being able to use the LEDs as a torch though, it's very handy.
Heej nice, i come from oud-Beijerland
nice app, but bright mode doesn`t work for me..
NetRipper said:
Continuing my quest of using the LED as flashlight for my new HD2, I updated TorchButton to support the HD2 as well.
Dropped your keys? Finding something behind the bench? Performing surgery on a computer and need to find that jumper on the mainboard?
This is a simple application built for some HTC devices that have a hardware LED, normally used to take pictures in the dark. However I found the LED to be perfect to be used as a handy pocket flashlight.
Usage
There is no GUI for this application. Just start TorchButton to enable the LED on the back of your device. Start TorchButton again to turn it off.
Check out the readme if you're an advanced user and wish to change some registry settings, i.e. to allow a longer maximum time the LED is enabled.
History
Version 2.0
- Initial version with support for the HTC HD2 (Leo) (bright mode is not supported on the Leo)
Version 1.x
- Support for the Touch Pro
Click to expand...
Click to collapse
20mihalko said:
nice app, but bright mode doesn`t work for me..
Click to expand...
Click to collapse
Isn't it clearly stated that brightmode doesn't work.......jeez....dude...read
ET said:
Isn't it clearly stated that brightmode doesn't work.......jeez....dude...read
Click to expand...
Click to collapse
sorry, my mistake
kinnyfaifai said:
It was a known problem that the LEDs weren't heatsinked properly on the X1 and there was a huge warning on using hTorch. I've not installed hTorch and never used the LEDs on my X1 as a torch cos of this oversight by the manufacturer. I do miss being able to use the LEDs as a torch though, it's very handy.
Click to expand...
Click to collapse
The vibrate function does not work at all on my X1 after installing and using hTorch. User beware..!
This is my next phone when O2 decide to put it on their shelves, and hopefully its built better than the X1.
Any chance of some source code?
I've been looking through the HD2 camera drivers, and have found a few things that should be the LED (can't test it as I have no device), but am wondering if it's the same method as yours!
l3v5y said:
Any chance of some source code?
I've been looking through the HD2 camera drivers, and have found a few things that should be the LED (can't test it as I have no device), but am wondering if it's the same method as yours!
Click to expand...
Click to collapse
Here are the important code snippets of the API that I'm using. The methods were pretty obvious (luckily).
typedef int (__stdcall *LEO_INIT)();
typedef int (__stdcall *LEO_SETCURRENT)(DWORD dw1);
...
LEO_INIT InitFlashLight;
LEO_SETCURRENT PMICFlashLED_SetCurrent;
...
hCamera=LoadLibrary(L"CameraPlatform.dll");
...
InitFlashLight = (LEO_INIT) GetProcAddress(hCamera, L"InitFlashLight");
PMICFlashLED_SetCurrent = (LEO_SETCURRENT) GetProcAddress(hCamera, L"PMICFlashLED_SetCurrent");
...
InitFlashLight(); // must be called before SetCurrent has any effect
...
PMICFlashLED_SetCurrent(0); // turns it off
PMICFlashLED_SetCurrent(1); // turns it on
There's also a PMICFlashLED_SetMode(x); but I haven't been able to figure out what it does. As far as I could see when disassembling it wants one parameter.
If you have any ideas on the bright mode, they'd be more than welcome. If you want the full source to make some modifications or to toy with it, let me know.
NetRipper said:
Here are the important code snippets of the API that I'm using. The methods were pretty obvious (luckily).
typedef int (__stdcall *LEO_INIT)();
typedef int (__stdcall *LEO_SETCURRENT)(DWORD dw1);
...
LEO_INIT InitFlashLight;
LEO_SETCURRENT PMICFlashLED_SetCurrent;
...
hCamera=LoadLibrary(L"CameraPlatform.dll");
...
InitFlashLight = (LEO_INIT) GetProcAddress(hCamera, L"InitFlashLight");
PMICFlashLED_SetCurrent = (LEO_SETCURRENT) GetProcAddress(hCamera, L"PMICFlashLED_SetCurrent");
...
InitFlashLight(); // must be called before SetCurrent has any effect
...
PMICFlashLED_SetCurrent(0); // turns it off
PMICFlashLED_SetCurrent(1); // turns it on
There's also a PMICFlashLED_SetMode(x); but I haven't been able to figure out what it does. As far as I could see when disassembling it wants one parameter.
If you have any ideas on the bright mode, they'd be more than welcome. If you want the full source to make some modifications or to toy with it, let me know.
Click to expand...
Click to collapse
That's what I'd come to as a conclusion, so glad that works!
Is there any need to un-init the flash light?
PMICFlashLED_SetMode will probably need some playing around, though might enable your "bright" mode. Will have a play with that when I get an HD2!
l3v5y said:
That's what I'd come to as a conclusion, so glad that works!
Is there any need to un-init the flash light?
PMICFlashLED_SetMode will probably need some playing around, though might enable your "bright" mode. Will have a play with that when I get an HD2!
Click to expand...
Click to collapse
There doesn't seem to be an un-init function. However, the debug console shows that it detects when the DLL is being attached to or detached from, so there's probably some cleanup code there.
I also haven't found any side-effects yet. TorchButton works fine even when the camera app is running. They don't interfere with eachother (other than toggling the LED to their own behalf). On the Touch Pro it wasn't possible to run TorchButton and the camera app at the same time. Not that I ever wanted to, but still.
In regard to that mode function. It must be for something. I tried using it in various ways already but it didn't matter. Maybe you'll have more luck
might be confused right now, but seems that when in camera mode, and battery is below 50% you cant use the flash - anybody know if this will affect the app?
haven't got my hd2 yet so cant help you out, but there's a thread under the Leo -- > Leo sub-forum
cheerios!
Has anyone tried using a sleep tracker watch before?
From what I can tell when I sampled one, it works by sensing movement with its accelerometer. It's supposed to help you wake up feeling more refreshed by waking you when you move and make the accelerometer react. This makes sense because when you are moving, you are in a lighter stage of sleep (vs when you are in deep sleep, your body would be more still).
Since some of our phones have an accelerometer, I had an idea for a sleeptracker program on our phones. By keeping the phone close to your body, it could sort of be like a watch and react to one's body movements.
Does anyone know how to create such a program? Or know if such a program exists? I've heard that there's a program for the iphone from a friend. Is there a wm version?
I've made it work using g-alarm and Don't Touch Me. But it's not the best set up, although it works. I'm wondering if there are more seamless programs out there.
I posted on ppcgeeks on how to sleeptracker with g-alarm and dtm.exe:
forum.ppcgeeks.com/showthread.php?t=72138
Thanks
Look here
madkai said:
Look here
Click to expand...
Click to collapse
THANKS.
Moved as not software release.
Hey guys,
so in the last couple of weeks my HTC Touch Pro has finally had its first real problem. It appears that it misreads the hardware keyboard open/close sensor. It basically flips back and forth constantly thinking the keyboard is open/closed. If I leave the keyboard open it stabilizes and is usable, but that is the only way. It is killing battery life and makes the thing a pain to use. The problem shows up in the Android OS I'm running as well as in the WinMo. so it's definitely a hardware issue (And I did a full hard reset and wipe etc as well).
Anybody aware of where the registry entry for the driver for that sensor is so I can kill the sensor? I did a registry search on a few keywords and didn't find anything obvious. If anyone can help that'd be great!
Thanks,
Steve
It's not the keyboard sensor but the gyro that is broken!
I'm not a pro at this, but there might be a way to disable the gyro driver...
it's not the g-sensor. i have ruled it out umerous ways as well as disabled it. it is without question an issue with the keyboard hardware/sensor.
I am looking for an option to disable the sensor all the time I own TP,without success. The sensor is readed by the slideout keyboard driver and I know only one man,who could help with this,but he luckily ignores my request. It is a programmer of Keyboard Config utility nicknamed Tarkim. Try to ask him and if you will have a solution,please let me know. Simply I hate the autorotation and I want to disable it.
Hi!
I really miss some kind of notifciation led on my lumia 710, so is it possible to create some modifications on the lumia to turn on the light of the buttons when there are unread msgs/ missed calls ?
Thank you for your help
Very cool idea for a hack, but the simple version is that while it's probably possible, it won't be easy. There's an API or controlling the notification light in CE, but WP7 already uses that on devices which have one (like my HD7). I suspect the button backlights are driver-specific things, and therefore probably require finding the correct driver to access, and the right IOCTL to send to it.
This is the most annoying POS program I have ever seen , whether I have a stock rom or custom rom this annoying program pops up whenever it wants usually while Im doing something , but it also just starts for no reason while sitting on a table ! Yes I turned it off in setting , that doesnt turn it off , that doesnt do sh1t , I mean at least have an on off button for this annoyance , anyone know of a place in the registry to cut this off (gooddaytodie, heathcliff,Jax ???)!!
It's easy enough to remove it from a custom ROM, but if you're getting the app triggering randomly like that, it's probably not a software problem. That sounds like a hardware issue, with either the capacitive buttons being too sensitive (a problem some phones will exhibit, especially while plugged into a charger and then laid on their backs) or with something in the case being messed up. I've had TellMe trigger a few times when I was gripping the phone really hard playing Z0mb1es, but not since then and never while just lying there.
I was hoping Id get your attention and yes I figured it was a hardware issue with the capacitive buttons , but is there any way to disable tell me and yet retain the actions of the capacitive buttons? its really annoying , it may be a hardware issue however after researching this its quite prevalent on the new nokia phones as well I am using a samsung 1st gen focus and I do have a custom rom , if you can point to the right location in the registry to remove this pest I would be appreciative , I will report back to you to let you know how it works out?
Thanks again GDTD , always pleasure hearing from you!
I know of no way to just "disable" it, though that's probably just because I haven't looked. It's part of WebSearch.exe, which if removed or renamed would prevent TellMe from launching (it would also break the other functions of that app, though, such as the barcode scanner and Bing Music).
The Focus is indeed the device I've most commonly heard complaints of having over-sensitive buttons / touchscreen that occasionally push* themselves. I've never tried, but I've heard there's a tool - in the Diagnostics app, I think - that lets you adjust the buttons. Maybe that would help?
* I was going to say "touch", but that... didn't look right.
Thats exactly what I was thinking that there might be some controls in diagnosis that adjust the sensitivity , but, alas I dont know what they would be , if you have the time could you look for me?
I don't have any Samsung phone, and the Diagnostics app is completely different between OEMs. You're better off just doing some searches of the forums, especially the Focus sub-forum.
yep I have been, I used to know all the good codes , but I guess I will have to start searching again, thanks anyway! I think I might be heading back to Android ,after this fone has run its course , just so much you can do with the platform ,unlike windows and crapple ! I am really ticked off how Microsoft keeps sabotaging itself , win 8 phone kills win 7 phone as win 7 phone killed mobile , every two years ,ya have to start all over again ,you will never catch apple and wont even catch a dream of android!