webOS Nation Forums >  Homebrew >  webOS Homebrew Apps > Brightness Unlinked
Brightness Unlinked
  Reply
 
Thread Tools Display Modes
Old 08/02/2009, 07:01 PM   #1 (permalink)
Member
 
Posts: 444
March 23rd Update (0.3.3): Re-enables dashboard, as WebOS 1.4 broke background processing. If you use the patch that runs Brightness Unlinked on boot, and it works running in the background for you because of that patch, you may not want to bother updating. I'm not sure how the dashboard will interfere with that.


Desciption: This lets you adjust the sliders for brightness of keyboard and display separately. It also allows you to turn off the screen while the phone is on the touchstone. Look through the paragraphs below for more info on what was added/changed in each version, and what is/isn't possible in this version and future versions of this app.

Licensing: App is free (although donations would be appreciated- I know a number of people mentioned donating at some point).

Todos:
Key combo trigger - to toggle bright / dark.
Add text boxes to input values in addition to sliders.
Add scheduling to change brightness by time.
Add "shortcut" buttons to quickly change back to a designated setting.


January 18th Update (0.3.2): All features now working without bugs! Touchstone option restored, with center led bug fixed! Lots of exclamation points! Basically, the app now does what its supposed to, correctly and without any weird bugs. I will now be working on adding in more features that have been requested.

December 31st Update (0.2.9): Updated for WebOS 1.3.5. Now runs completely in the background! Just open, adjust your sliders, and swipe the card away. If you tap the "continue running..." banner, the app will continue running until you open the card again. All touchstone functions have been removed until the next update. Please do not update yet if you use the touchstone toggle.

December 6th Update (0.2.7): Updated for WebOS 1.3.1. Now runs completely in the background! Just open, adjust your sliders, and swipe the card away. The app will continue running until you restart your Pre. All touchstone functions have been removed until the next update. Please do not update yet if you use the touchstone toggle.

September 20th Update (0.2.1): Touchstone toggle is partially working again. It will when turned on, it will let your phone go to sleep on the touchstone, or let you turn off the screen with the power button while its on the touchstone. The center button still lights up sometimes though, and I still can't figure out why, but I'm working on it. The best way to turn the phone back on after it sleeps/turns off on the touchstone is by sliding the keyboard. If you hit the power button, sometimes the phone acts funky for a minute. Still working on it though. There are also a few code updates that may help if anyone was having battery issues with the app running in the background/dashboard. The dashboard icon sizing is also fixed, and the header is slightly nicer.

September 8th Update (0.2.0): Adds the ability to run the app in the dashboard (background). The touchstone toggle to allow sleep is not fixed yet. I'm getting a touchstone this weekend and should be able to fix it soon. I also fixed the app menu, which I had broken accidentally.

September 4th Update (0.1.3): Adds monitoring for display sleep, dim, and power button. As long as the app is open, it should work perfectly. You should no longer need to fiddle with the sliders to bring the settings back. I also updated the touchstone button code. It should now recognize that it is on the touchstone if you open the program after it is already charging. It should also correctly let the screen sleep when it is charging on the touchstone. However, I don't have a touchstone, so let me know.

Next update (once I finish it) will let the app run in the dashboard, so you don't have to keep the card open all the time.


Info about touchstone button and future updates question:
http://forums.precentral.net/showthr...=1#post1822254

New Update (Version 0.1.2, Aug 8): Adds a button to turn off the screen when your Pre is on the touchstone. I need someone to confirm (in the forum thread) that the touchstone button works (make sure you have version 0.1.2). Just pull it off the touchstone to turn the screen back on. Also fixes some small bugs, code restructured, and some handling added to save battery power by turning off the keyboard backlight when the keyboard is closed.

You have to download the update from the new app catalog (http://www.precentral.net/homebrew-a...tness-unlinked). This thread will continue to be used for changelog info and support, but the actual program file is in the new catalog.


New Update (Version 0.1.1, Aug 6): Keyboard setting now persists through opening/closing keyboard (ONLY WHEN THE APP IS STILL OPEN). Keyboard setting still does not persist when: hitting the power button, letting the phone sleep/dim, anytime the app is closed.

Done! Next Update: Opening and closing the keyboard while the app is still running in the foreground should not reset the keyboard brightness settings. I realize this is a big deal, and a lot of people use this specifically so they can keep the keyboard brightness up. I didn't even notice this was a problem, because I test the app with it plugged in, and my case doesn't let me open and close the keyboard with the usb cable plugged in. I'll release this in the next few days hopefully. I think I've found a way to monitor when the keyboard is opened and closed.

Major Update (Version 0.1.0): Display brightness settings now act like stock brightness slider! (Keyboard brightness settings are still the same as before). I need other people to try it and make sure, but the display setting should now obey the ambient light sensor, and persist through physically sliding the keyboard and turning the screen on and off.

After looking through some of the code in the device info app, it looks like I can poll the physical keyboard slider for changes. Next version (hopefully in the next day or 2) will keep your settings when closing/opening the keyboard as long as the app is still open. On the same note though, it looks like there is no way to read the light sensor from an app, so that will have to wait. Put using the light sensor in the same category as keeping the settings after the app is closed: Unless I find a new/better way to change the settings (I'm going to try and start looking through all the possible options tomorrow) than the way I'm doing it now, these things (light sensor and keeping settings when app is closed) are not possible without requiring shell access (formerly rooting). I'm not going to change the app to require that; instead I'm going to 1. Try to find a better way than I have now, and 2. Work on adding other features (like fixing the slider problem and making the app keep your settings active while it is open) that can still be useful.

Update: I'm looking in to what I can do to make it react better to light sensor and power events, but so far there isn't a way I can see to do it without shell access (the artist formerly known as rooting). I'm looking for other options though. I'll also look into seeing if its possible for a mojo app to detect the slider opening and closing. If it can, then I can fix the problem where the light stays out when you close/open the slider and the app is still open. If I can't find a better way to access the brightness settings, I'm going to look into possibly adding a notification bar icon and have the app try and monitor power events while it is open. If I can do that, at least you can leave the app open in the background/notification bar and it would keep your settings through events while it was open. Just FYI, it will be slow to get these updates done, as this is the first app I've written, and I'm learning how to do things as I go along.


Update: Version 0.0.3 adds cookies (but no milk). Brightness Unlinked will now remember your settings when you open the app and restore them. So if you set the keyboard brightness to 100, close the app, and turn off the screen, if goes back to whatever your normal brightness it. When you open the app again, it will remember the "100" setting for the keyboard and restore it. You can set your preferred settings, and just open the app whenever you want to restore them. This version also displays your current setting (from 0 to 100) next to the "Brightness" label.

Update: Version 0.0.2 just adds an "About" and "Donate" button in the menu. I just learned menus so I added it in for the future. Learning cookies now to get it to go back to your previous settings when it re-opens.

Got it! Version 0.0.1 ready as an ipkg. Try this out and see if it works for you guys. I'm using the com.palm name to get access to system mojo services. This should let you separately adjust keyboard and screen brightness. Right now, it doesn't save past any power events. Next version will at least go back to your previous settings when you re-open the app. So if you change it to display all the way down and keyboard up, it will go back to that as soon as you open the app (in the next version). Saving past power events is gonna take a lot more work.

Make sure this works for people besides me, and tell me what you think.

Thanks.



Last edited by zinge; 03/23/2010 at 09:33 AM. Reason: new version
zinge is offline   Reply With Quote
Old 08/02/2009, 07:04 PM   #2 (permalink)
Member
 
Posts: 29
Great I'm gonna check it out
kmfast is offline   Reply With Quote
Old 08/02/2009, 07:15 PM   #3 (permalink)
Member
 
Webby_s's Avatar
 
Posts: 279
Works awesome! Thanks!! I know a lot of people were asking for it, so there should be many thanks!
__________________
Still happily rooting my launch 6/6/09 Pre!
(and my wife's)
Webby_s is offline   Reply With Quote
Old 08/02/2009, 07:18 PM   #4 (permalink)
Member
 
Posts: 401
Great work!
rogerkang is offline   Reply With Quote
Old 08/02/2009, 07:19 PM   #5 (permalink)
Member
 
link375's Avatar
 
Posts: 109
This is what I needed! Hopefully an updated version will make it so it doesn't reset
link375 is offline   Reply With Quote
Old 08/02/2009, 07:36 PM   #6 (permalink)
Member
 
turb0rexx's Avatar
 
Posts: 93
Thanks, downloading right now.
turb0rexx is offline   Reply With Quote
Old 08/02/2009, 07:44 PM   #7 (permalink)
Member
 
Se7enth's Avatar
 
Posts: 999
Awesome!
One suggestion: Can you also add a text entry box for the value? The slider seems to jump a few digits when I land on the value I want. With the text box, I can just enter "75", press enter & have the slider move to that number.

Still a great app! =D
__________________
Follow Me On

Se7enth is offline   Reply With Quote
Old 08/02/2009, 09:08 PM   #8 (permalink)
Member
 
Colonel Kernel's Avatar
 
Posts: 775
Hopefully, this'll allow me to keep my keyboard light on after the battery dips below 20 percent. After that 20 percent marker my Pre is much less usefull, as it's normally the end of the day and I'm winding down for bed in a darkened room. The battery will drain quicker, but I'm totally cool with that.
Colonel Kernel is offline   Reply With Quote
Old 08/02/2009, 09:29 PM   #9 (permalink)
Member
 
TechFirstAid's Avatar
 
Posts: 433
Settings don't keep after I close the app regardless if keyboard of opened or closed when I make the adjustments.
TechFirstAid is offline   Reply With Quote
Old 08/02/2009, 09:32 PM   #10 (permalink)
Member
 
erasef301's Avatar
 
Posts: 249
Awesome awesome awesome!!! Love it!
erasef301 is offline   Reply With Quote
Old 08/02/2009, 09:36 PM   #11 (permalink)
Member
 
Posts: 444
Quote:
Originally Posted by TechFirstAid View Post
Settings don't keep after I close the app regardless if keyboard of opened or closed when I make the adjustments.
Try the newest version and tell me if this still happens (0.1.0). You may have downloaded 0.0.1 by accident. The listing of the ipkgs is somewhat confusing at the moment since my first version was 0.0.1 and the newest version is 0.1.0. The display setting should stick once the app is closed. The keyboard setting doesn't yet.
zinge is offline   Reply With Quote
Thanked By: hnharrison24
Old 08/02/2009, 09:42 PM   #12 (permalink)
Member
 
erasef301's Avatar
 
Posts: 249
I downloaded the latest version. I noticed that after a few minutes the keyboard brightness goes to OFF. I want my keyboard on FULL brightness and screen on LOWEST brightness. This is how I had it going with your app, but after a few minutes the keyboard brightness goes to OFF....
erasef301 is offline   Reply With Quote
Old 08/02/2009, 09:59 PM   #13 (permalink)
Member
 
TechFirstAid's Avatar
 
Posts: 433
Quote:
Originally Posted by zinge View Post
Try the newest version and tell me if this still happens (0.1.0). You may have downloaded 0.0.1 by accident. The listing of the ipkgs is somewhat confusing at the moment since my first version was 0.0.1 and the newest version is 0.1.0. The display setting should stick once the app is closed. The keyboard setting doesn't yet.
Nope, same problem (I did grab .0.3.0 by mistake but 0.1.0 has the same problem)
TechFirstAid is offline   Reply With Quote
Old 08/02/2009, 10:08 PM   #14 (permalink)
Member
 
Posts: 634
Very nice, will give feedback once I start using it. Thanks and will be donating
imex99 is offline   Reply With Quote
Old 08/02/2009, 10:09 PM   #15 (permalink)
Member
 
link375's Avatar
 
Posts: 109
The screen setting stays but once you slide the keyboard out the kyaboard backlights die until you open up the app again
link375 is offline   Reply With Quote
Old 08/02/2009, 10:11 PM   #16 (permalink)
tuz
Member
 
Posts: 145
What a brilliant app! Thanks!!!
tuz is offline   Reply With Quote
Old 08/02/2009, 10:12 PM   #17 (permalink)
Member
 
fueslein's Avatar
 
Posts: 26
Awesome!!
fueslein is offline   Reply With Quote
Old 08/02/2009, 10:17 PM   #18 (permalink)
Member
 
Paladin's Avatar
 
Posts: 610
Just discovered this, nice. One problem though, when I close my keyboard and re-open it, the extra brightness goes away. I played with the different settings and noticed that it keeps both settings if they are both maxed.
__________________
Systems Analyst by trade, Drummer by desire and Music Lover by birth. A self proclaimed Geek and gadget nut. ii

Did you know: The Pittsburgh Steelers have more championships than 21 other NFL teams combined!
Pittsburgh Steelers-6 Time Super Bowl Champions!

Pittsburgh Penguins-3 Time Stanley Cup Champions!
Paladin is offline   Reply With Quote
Old 08/02/2009, 10:17 PM   #19 (permalink)
Member
 
TechFirstAid's Avatar
 
Posts: 433
Quote:
Originally Posted by link375 View Post
The screen setting stays but once you slide the keyboard out the keyboard backlights die until you open up the app again
Right, that is what is happening for me as well, sorry.
TechFirstAid is offline   Reply With Quote
Old 08/02/2009, 10:18 PM   #20 (permalink)
Member
 
Posts: 634
Quote:
Originally Posted by TechFirstAid View Post
Nope, same problem (I did grab .0.3.0 by mistake but 0.1.0 has the same problem)
Yep, same problem and read your update post...Can't wait for update to keep low screen brightness and bright keyboard. Will be updating when this can happen. Great app though keep up the good work!!
imex99 is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0