Pointui » Home 2 Applets Showcase

[applet][QVGA/VGA]Luminosity - automatic screen brightness changer -updated 5/16

(34 posts)
  • Started 10 months ago by Warder
  • Latest reply from shumilica
  1. Luminosity

    Luminosity is an applet that will adjust your screen brightness automatically depending on the time of day. It is at the lowest brightness settings from 12 am to 6 am, and then it builds up to almost full brightness at 11am. After 6pm it starts to dim again. You can also manually change the brightness, but on the next hour the applet will change the brightness to whatever it thinks it should be, unless you turn it off.

    Changelog
    5/17/09 v0.4 - Fixed on/off button. Updated the brightness changing process to use PowerEvents so it will only update when you turn the applet on/off or the phone is powered on/off. So there's no timer continuously running and it won't change in the middle of you doing something. Also added current brightness level to the top line so you can where you're at. Still using registry method to change brightness levels.

    5/16/09 v0.3 - Changed the brightness up/down buttons to use the registry method and changed the timer method so it should update more reliably

    5/14/09 v0.2 - Fixed some bugs and switched to Registry method to change brightness

    5/13/09 v0.1 - initial release

    To do

    • make changing the times and brightness levels user friendly
    • Make it purty

    Attachments

    1. LuminosityV.0.4.zip (1.5 KB, 639 downloads) 10 months old
    2. LuminosityV.0.3.zip (1.6 KB, 63 downloads) 10 months old
    3. LuminosityV.0.2.zip (1.6 KB, 75 downloads) 10 months old
    4. Luminosity.jpg (47.8 KB, 32 downloads) 10 months old
    5. LuminosityV0.1.zip (1.5 KB, 61 downloads) 10 months old
    Posted 10 months ago #
  2. biohazardousguy
    Member

    Thank you, I am waiting for a long time for something like this

    Posted 10 months ago #
  3. Great idea if yr phone doesn't already support this function.

    Excellent!

    :P

    Posted 10 months ago #
  4. jojojojojojo
    Member

    Hi Warder,
    was waiting for this as well, great! But it does not yet work on my VGA-device. Buttons are a bit smaller than on your screenshot. But there is no action when I press them..
    Regards,
    Johannes

    Posted 10 months ago #
  5. dancer69
    Member

    Same result here. Qvga device.

    Posted 10 months ago #
  6. biohazardousguy
    Member

    Also here the buttons are not working properly, and are outside of my qvga screen. But still, a great ideea.

    Posted 10 months ago #
  7. I'm using a Device.SetBacklightBrightness(val, valAC); from this thread: http://community.pointui.com/topic/request to change the brightness. I thought it had been added to the Free version (.30). It works for me on the Pro version (.32). I'll update it tonight to use the registry edit way which should work in Free and Pro. (and start testing both)

    If your screen is qvga, it should fit unless you're looking at it in landscape. It will be rather small on vga though. I still gotta make it look pretty :)

    Posted 10 months ago #
  8. nopick
    Member

    The zip file only contains a .cs. Should there be some images in there?

    Posted 10 months ago #
  9. nopick
    Member

    I restarted home2 and everything is working now. Awesome. I needed this.

    Posted 10 months ago #
  10. Doesn't work any button in QVGA (htc touch Elf), even with the Pro version.. And after restarting Home 2 neither...

    Posted 10 months ago #
  11. Hi, Warder.
    Tanks for your job, bat on my device qvga (htc cruise) don't work.

    I like the idea of your applet and I want mod it for my customized used.

    I'have a question for everyone.
    I find a function that get the Brightness value and insert it into variable.

    Like as
    Device.GetBacklightBrightness(val);

    Tanks

    Posted 10 months ago #
  12. Sorry everyone... I'm not sure why I thought it was working when I upload this but it had some major issues. v.0.2 should be much better for everyone. Fixed some bugs and changed to the registry method for changing the brightness.

    Posted 10 months ago #
  13. calator40
    Member

    Hi everyone..
    I installed version 0.2 on my htc cruise and don't work. Only function ON/OFF work. But I don't see any difference between ON and OFF. :(
    btw.. after I install this applet the clock on today screen frozen..

    Posted 10 months ago #
  14. Hi Warder,

    I've not tested it yet but I will do it soon.
    Thanks for your work!

    >>> Added in the Applets Store

    Posted 10 months ago #
  15. mspock
    Member

    Same thing as Calator40 :(

    Posted 10 months ago #
  16. WildSioux
    Member

    Great job on this applet Warder! I have installed v 0.2 on my mogul. And I am like the others who have the problem with the On/Off being the only function that works. However, that does allow your auto brightness to work when I turn it from on/off/on throughout the day. And it actually does go brighter as time goes on and then dims as it gets later in the evening. Amazing...

    Now, if you could just find out how to make it work without having to hit the on/off button. Also, I would like to be able to turn the auto feature off and be able to manually control the brightness. I am sure that is what you have intended for it to do but just need to figure out the code (each phone may be different). One other request, if possible...could you make an option in the menu to change the settings of how bright or how dim it goes and to change the times that this happens??

    An example...
    "Auto Settings"
    7am = +2 in brightness
    9am = +5 in brightness
    12am = +9 in brightness
    ... = ...
    5pm = -5 in brightness
    8pm = -3 in brightness
    10pm = 0

    Something like that for each hour of the day with the option to set the brightness/dimness for each hour.

    As for now I am sure you are trying to figure out how to make the auto setting work properly. Those could come later if possible. And as for this applet, it is an amazing feature for those of us who have phones that don't have the light sensor to do this automatically. Brilliant!

    Posted 10 months ago #
  17. This is the problem.
    I have highlighted this, with (registry method):

    acbKey.Open("HKCU\\ControlPanel\\BackLight");
    bKey.Open("HKCU\\ControlPanel\\BackLight");
    acbKey.SetValue("ACBrightNess", brightness);
    bKey.SetValue("BrightNess", brightness);

    The value registry ACBrightNess and BrightNess are update with the value of brightness (see the registry HKCU\\ControlPanel\\BackLight), but the display don't update with new values insert by SetValue.

    After the update if you restart the registry (restart device) the new values of registry as correctly read.

    Therefore the problem is the function SetValue("ACBrightNess", brightness); that need of restart of the registry (i tink tath the same problem is with the funcition Device.SetBacklightBrightness(brightness, brightness).

    Someone, know how to solve this problem???

    Posted 10 months ago #
  18. Updated
    5/16/09 v0.3 - Changed the brightness up/down buttons to use the registry method and changed the timer method so it should update more reliably

    Posted 10 months ago #
  19. dancer69
    Member

    It doesn't work again on touch cruise lolite.
    The registy values updated when pushing the up/down buttons but not the brightness on screen(this happens and the previous version). The turn on/off button stop function on 0.3 version.

    Posted 10 months ago #
  20. WildSioux
    Member

    Installed v0.3, the auto seems to work better now however I am unable to turn the "auto" on/off. Also, the brghtness up/down buttons work. This is on my Mogul.

    Good improvement over the last one. Thanks

    EDIT: I have taken the "brightnessUp" and "brightnessDown" lines in the code for v0.3 and pasted them in v0.2. The auto function works in v0.2 including the on/off feature. But the up/down buttons didn't. So now with the code for the up/down from v0.3 pasted in to v0.2, the buttons now work. I found that it was missing the registry settings.

    Hope that helps even if it sounds confusing.

    Posted 10 months ago #
  21. calator40
    Member

    Hi...
    WildSioux , can you post your work please... I try to make what you did , bun not work ... :((

    Posted 10 months ago #
  22. UPDATED

    5/17/09 v0.4 - Fixed on/off button. Updated the brightness changing process to use PowerEvents so it will only update when you turn the applet on/off or the phone is powered on/off. So there's no timer continuously running and it won't change in the middle of you doing something. Also added current brightness level to the top line so you can where you're at. Still using registry method to change brightness levels.

    Posted 10 months ago #
  23. Wow, thankyou Warder - will try it out :P

    Posted 10 months ago #
  24. calator40
    Member

    I installed version 0,4 on my HTC Cruise. It's a big improvement but I see a strange think. When I try to set manual luminosity up or down the only think who is modified is brightness for external power.

    After 5 hours of test on automatic mod I can see that that the only think who is modified is brightness for external power. :(

    Posted 10 months ago #
  25. pirlouwi
    Member

    I don't see any modification of the brightness level...
    My phone is an htc touch cruise p3650 and I tested v0.4 on Home2 v2.30b

    Posted 9 months ago #
  26. Hmm, do either of you have a registry editing program? If so could you search for 'brightness' and see maybe the path is different? (PHM RegEdit has a search function)

    Also what version of Windows Mobile are you running? (5, 6 or 6.1..or..?)

    Posted 9 months ago #
  27. I Repeat....
    the problem is registry of HTC Cruise that is correctly update, bat don't notification brightness are reported while you done a restart.
    I don't n know why the htc have this problem.

    Posted 9 months ago #
  28. calator40
    Member

    Hi ...

    In this situation I thing I can't use this wonderful applet .... :((

    Posted 9 months ago #
  29. mspock
    Member

    Hi Warder : I've searched a bit for "brightness" in my registry , in an hp ipaq hx2750 wm6.1 .
    I've found some refs to a brightness transform class . There are quite a lot , I can't be sure what could be the interesting one

    Posted 9 months ago #
  30. heimaheimaheima
    Member

    Thank!!!!!!!!!

    Posted 9 months ago #

RSS feed for this topic

Reply »

You must log in to post.