Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <techmik> i want to watch a video on my phone in the dark, andnot have the led softkeys turn off... if the screen is lit, they are, period
- <techmik> oh, i think i see the question now
- <maniac103> then this is the completely wrong approach :)
- <techmik> that is what i was looking to you for
- <techmik> =)
- <maniac103> the right approach would make your liblights provide a keypad / button backlight light object
- <techmik> i know you know the leds inside out
- <maniac103> then everything just works(TM)
- <Kaik541> yay maniac103 agrees with what I said... hijacking the notification method was not a good idea xD
- <techmik> yes, but you didnt know the alternative =)P
- <Kaik541> I just told you it wasn't good and you should ask someone else
- <Kaik541> I was right :P
- <maniac103> techmik: something like that: https://github.com/CyanogenMod/android_device_motorola_jordan/blob/gingerbread/liblights/lights.c#L280
- <techmik> i wanted to figure it out =P
- <techmik> awesome
- <maniac103> then you can tweak the light levels in Settings -> CyanogenMod -> Display -> Automatic Brightness -> Edit levels and adjust the button brightness there (you probably want >0 for all levels)
- <Kaik541> yeah, ours are only on/off, no levels
- <maniac103> techmik: if you want the keypad light to also show notifications, you need to handle that case in liblights as well (see how my linked jordan liblights shares the LED between battery and notifications)
- <techmik> k
- <Kaik541> I think they already do
- <Kaik541> https://github.com/CyanogenMod/android_device_samsung_aries-common/blob/gingerbread/liblight/lights.c#L119
- <maniac103> Kaik541: there's only the backlight, not a keypad light
- <Kaik541> maniac103: yeah, I'm saying we'd have to add it there, but we already have the notification stuff in place
Advertisement
Add Comment
Please, Sign In to add comment