FORUMS
Remove All Ads from XDA

[22FEB2012] [FIXED!!!] Custom Auto brightness with flashing LED (Read First Post)

1,987 posts
Thanks Meter: 1,526
 
By ph03n!x, Senior Member on 30th September 2011, 04:19 AM
Post Reply Email Thread
22nd February 2012, 11:50 AM |#111  
milaq's Avatar
Recognized Developer
Thanks Meter: 2,633
 
Donate to Me
More
Arrow liblights with autobrightness, custom b/l levels, blinking notifications
a few days ago, i was writing a lights library for the ideapad a1 and thought i could revisit the leo liblights.
so here it is, for everyone to test

the following stuff should work:
  • autobrightness
  • custom autobrightness values
  • blinking leds (e.g. for notifications) - green and amber
  • static leds (e.g. for charging) - green and amber
  • screen dimming
  • custom screen dim level

instructions:
  1. download the attached file
  2. unpack lights.htcleo.so
  3. delete any prior lights library (i.e. lights.* in /system/lib/hw/)
  4. push lights.htcleo.so to /system/lib/hw/
  5. set the correct permissions (should be the same as on all other libs in that folder)
  6. reboot
  7. test, review, and make sure to report back here

cheers

EDIT: my test setup was:
rom: CM7 nightlies (see sig)
kernel: tytung
Attached Files
File Type: zip liblights_leo_22-02-2012.zip - [Click for QR Code] (2.3 KB, 348 views)
The Following 34 Users Say Thank You to milaq For This Useful Post: [ View ]
 
 
22nd February 2012, 11:56 AM |#112  
Senior Member
Thanks Meter: 21
 
More
Thank you,i will test this immediately.
Edit: Thank you so much Milaq. It works perfect. Custom brightness, notification all work on Dorimanx rom and hopefully all others.
I hope all hd2 chefs and users will show appreciation to your work.

Thanks again

Quote:
Originally Posted by milaq

a few days ago, i was writing a lights library for the ideapad a1 and thought i could revisit the leo liblights.
so here it is, for everyone to test

the following stuff should work:

  • autobrightness
  • custom autobrightness values
  • blinking leds (e.g. for notifications) - green and amber
  • static leds (e.g. for charging) - green and amber
  • screen dimming
  • custom screen dim level

instructions:
  1. download the attached file
  2. unpack lights.htcleo.so
  3. delete any prior lights library (i.e. lights.* in /system/lib/hw/)
  4. push lights.htcleo.so to /system/lib/hw/
  5. set the correct permissions (should be the same as on all other libs in that folder)
  6. test, review, and make sure to report back here

cheers



Sent from my HTC HD2 using XDA App
The Following User Says Thank You to karapialis For This Useful Post: [ View ] Gift karapialis Ad-Free
22nd February 2012, 12:41 PM |#113  
kantjer's Avatar
Recognized Contributor
Thanks Meter: 26,078
 
More
Quote:
Originally Posted by milaq

a few days ago, i was writing a lights library for the ideapad a1 and thought i could revisit the leo liblights.
so here it is, for everyone to test

Thanks!!!!!!!!!!!

I just tried it and almost everything seems to work, the only thing I can see is that I don't have the amber charging light, even if the battery isn't 100% charged the light is green. No big problem though.

Al the rest like notifications and custom screen dim levels are working.
The Following User Says Thank You to kantjer For This Useful Post: [ View ] Gift kantjer Ad-Free
22nd February 2012, 12:58 PM |#114  
wheeliemonster's Avatar
Senior Member
London
Thanks Meter: 57
 
More
Quote:
Originally Posted by kantjer

Thanks!!!!!!!!!!!

I just tried it and almost everything seems to work, the only thing I can see is that I don't have the amber charging light, even if the battery isn't 100% charged the light is green. No big problem though.

Al the rest like notifications and custom screen dim levels are working.

The charging light goes green at 90% or so, I believe.

Thanks to the dev - I will test this now (am actually using ICS, so will test on that!!)

If this is fixed (as it appears to be), then you will forever be a god in my mind!!
22nd February 2012, 01:02 PM |#115  
kantjer's Avatar
Recognized Contributor
Thanks Meter: 26,078
 
More
Quote:
Originally Posted by wheeliemonster

The charging light goes green at 90% or so, I believe.

Thanks to the dev - I will test this now (am actually using ICS, so will test on that!!)

If this is fixed (as it appears to be), then you will forever be a god in my mind!!

You could be right, mine was at 98%. Nothing to worry about, just different from what I was used to see.
Even if it stayed green at all times while charging it is still a huge improvement compared to the old liblights.
22nd February 2012, 01:05 PM |#116  
clyder's Avatar
Senior Member
Flag Indjija
Thanks Meter: 475
 
More
Just tested this on hyperdroid and after few quick tests I havent found anything wrong. LED's work as it should and custom levels appears to be working. Also scren dim works with auto brightness enabled.

great work!
The Following User Says Thank You to clyder For This Useful Post: [ View ] Gift clyder Ad-Free
22nd February 2012, 01:13 PM |#117  
wheeliemonster's Avatar
Senior Member
London
Thanks Meter: 57
 
More
Bingo! You da man/woman.

Tested on ICS - had to use LEDmeKnow to get the LEDs to go but have fully dimmed screen and flashing LEDs.

Whaddayaknow? That man/woman (sorry I don't know!) milaq is a genius!

EDIT: Actually - there could be one issue. When charging, after receiving a notification and clearing it, the charge light does not return to the "on" state.

Anyone else seen the same or is this a ledmeknow/ics issue?
The Following User Says Thank You to wheeliemonster For This Useful Post: [ View ] Gift wheeliemonster Ad-Free
22nd February 2012, 01:24 PM |#118  
milaq's Avatar
Recognized Developer
Thanks Meter: 2,633
 
Donate to Me
More
thanks for testing
always great to get some direct feedback
The Following 4 Users Say Thank You to milaq For This Useful Post: [ View ]
22nd February 2012, 02:29 PM |#119  
Senior Member
Thanks Meter: 21
 
More
Upon charging i had a missed called but the light still stayed amber without blinking in CM7. When i cleared the notification the light still constant amber. Is this correct or not?

haha. It's been so long since fully functional days i don't remember the correct pattern.

I unhooked from charging after a missed call and wow, blinking green light... Hooked it again and constant amber. Clear the notification and still constant amber 88 percent and charging. All this in CM7.
Milaq is da man, genious, wonderman...

Quote:
Originally Posted by wheeliemonster

Bingo! You da man/woman.

Tested on ICS - had to use LEDmeKnow to get the LEDs to go but have fully dimmed screen and flashing LEDs.

Whaddayaknow? That man/woman (sorry I don't know!) milaq is a genius!

EDIT: Actually - there could be one issue. When charging, after receiving a notification and clearing it, the charge light does not return to the "on" state.

Anyone else seen the same or is this a ledmeknow/ics issue?



---------- Post added at 02:29 PM ---------- Previous post was at 01:52 PM ----------

The green light lit on 90 percent, but i am too contempt right now to bitch about it. If Milaq could fix this too, it would be ideal ofcourse.
22nd February 2012, 02:54 PM |#120  
ph03n!x's Avatar
OP Senior Member
Flag Madras
Thanks Meter: 1,526
 
More
Quote:
Originally Posted by milaq

a few days ago, i was writing a lights library for the ideapad a1 and thought i could revisit the leo liblights.
so here it is, for everyone to test

the following stuff should work:

  • autobrightness
  • custom autobrightness values
  • blinking leds (e.g. for notifications) - green and amber
  • static leds (e.g. for charging) - green and amber
  • screen dimming
  • custom screen dim level

instructions:
  1. download the attached file
  2. unpack lights.htcleo.so
  3. delete any prior lights library (i.e. lights.* in /system/lib/hw/)
  4. push lights.htcleo.so to /system/lib/hw/
  5. set the correct permissions (should be the same as on all other libs in that folder)
  6. reboot
  7. test, review, and make sure to report back here

cheers

EDIT: my test setup was:
rom: CM7 nightlies (see sig)
kernel: tytung

This is FANTASTIC!! Thanks a lot Milaq! Looking at the feedback, looks like you have nailed this one! I am testing it rightaway!
22nd February 2012, 03:02 PM |#121  
ph03n!x's Avatar
OP Senior Member
Flag Madras
Thanks Meter: 1,526
 
More
First post updated!!! Anyone did the custom autobrightness level tests??

Quote:
Originally Posted by ph03n!x

We have a fix

The Following User Says Thank You to ph03n!x For This Useful Post: [ View ] Gift ph03n!x Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes