[Q] How to keep the capacitive button lights on? - HTC One S

the lights always stay off even in complete darkness whether on auto brightness or not
any way i can fix this without using an app?
i tried changing some values in framework-res but it didnt work

With your settings?
No.sorry
Sent from my HTC One S using TrickDroid 4.0.0

kevin0905 said:
any way i can fix this without using an app?
Click to expand...
Click to collapse
You can control those leds through
/sys/class/leds/button-backlight/max_brightness
/sys/class/leds/button-backlight/brightness
/sys/class/leds/button-backlight/currents
You could make an init.d script to set some values you like and then make them read-only.
There are probably nicer ways, but I don't know.
-Jobo

Related

[Q] Auto brightness too dim

What files do i need to adjust to make my phone brighter when using auto brightness my phone is way too dim.
It seems like the max level of auto brightness is whatever the slider was set at before choosing "auto".
Try turning off auto, running the slide to where you want it and then turning auto brightness back on.
Well just tried that and still no luck ....Guess Im gonna have to change ROMs
david032766 said:
Well just tried that and still no luck ....Guess Im gonna have to change ROMs
Click to expand...
Click to collapse
As far as I know, brightness levels are controlled by kernel, not ROM. So if u like the ROM, try changing the kernel.
diablo009 said:
As far as I know, brightness levels are controlled by kernel, not ROM. So if u like the ROM, try changing the kernel.
Click to expand...
Click to collapse
Hmmmm well coredroid is too dark with mdj kernel or any other i have tried and mdj vivo is just right with the same mdj kernel ..... So i dunno might just give up on coredroid
Sent from my Desire HD using XDA Premium App
david032766 said:
Hmmmm well coredroid is too dark with mdj kernel or any other i have tried and mdj vivo is just right with the same mdj kernel ..... So i dunno might just give up on coredroid
Sent from my Desire HD using XDA Premium App
Click to expand...
Click to collapse
Try gingerbeast 2.1.1 or Android Revolution 5.1.6. I used both, and both are good.
OP, if you're going to be trying out different ROMs be sure to check out CyanogenMod. It has a ton of tweakable auto brightness settings that simply don't exist in most ROMs. Among the many settings, you can dial in the exact screen brightness you want for a given ambient light level. Once you get the settings to your liking, there will be very few (if any) situations where you'll need to manually adjust the brightness; it will be done automatically the way you want instead of the way the ROM developer likes it.
henrybravo said:
OP, if you're going to be trying out different ROMs be sure to check out CyanogenMod. It has a ton of tweakable auto brightness settings that simply don't exist in most ROMs. Among the many settings, you can dial in the exact screen brightness you want for a given ambient light level. Once you get the settings to your liking, there will be very few (if any) situations where you'll need to manually adjust the brightness; it will be done automatically the way you want instead of the way the ROM developer likes it.
Click to expand...
Click to collapse
CM7 was the first rom i used after root ..... If it wasnt for giving up full screen MMS messages i'd still be using it.
david032766 said:
CM7 was the first rom i used after root ..... If it wasnt for giving up full screen MMS messages i'd still be using it.
Click to expand...
Click to collapse
That issue appears to be fixed...I can open mms pictures full screen in the stock messaging app as well as chompSMS. Running 7.0.3 stable that came out a few weeks ago.
cool ill check iy out again ....thanks

Anyway to disable the capacitive button lights?

I read that CM7 will supposedly let you turn off the button lights (back, menu, search, and home), but is there a way to turn them off without it? Thanks.
Are you using a custom kernel with backlight notifications? Or do you just want the lights off all the time? If you are using a custom kernel with BLN you can use BLN Control from the market to disable backlight notifications.
I'm using it stock and want the 4 cap. button lights to turn off after a few seconds so I can watch videos in the dark (or have an app that I start that turns off the lights before I watch a movie).
Does BLN also disable capacitivte button lights (not just backlight notifications)? Are there other non custom rom solutions?
Backlight dimmer (BLD), one of Ezekeel's mods does this. It disables the capacitive buttons after x amount of time (variable you can set freely). But you need a custom kernel for this to work, not a custom rom. Check the developer section, most new kernel versions support BLD. Then, you can download NSTools from the market to set and configure the functionality.
BLN is only for notifications and blinking normally so it's not what you're looking for.
Greetz
edit: Check this: http://forum.xda-developers.com/showthread.php?t=1141233
frutelaken said:
Backlight dimmer (BLD), one of Ezekeel's mods does this. It disables the capacitive buttons after x amount of time (variable you can set freely). But you need a custom kernel for this to work, not a custom rom. Check the developer section, most new kernel versions support BLD. Then, you can download NSTools from the market to set and configure the functionality.
BLN is only for notifications and blinking normally so it's not what you're looking for.
Greetz
edit: Check this: http://forum.xda-developers.com/showthread.php?t=1141233
Click to expand...
Click to collapse
Awesome, that's actually even better. One question though, once the buttons/lights are disabled how are they re-enabled? Simply touching the screen? Thanks.
nope they'll stay off if you touch the screen. you have to touch the buttons themselves to get them to relight
v3rk said:
nope they'll stay off if you touch the screen. you have to touch the buttons themselves to get them to relight
Click to expand...
Click to collapse
Oh ok, perfect. thanks
Can someone point me to the correct file to download here for installing BLD:
https://github.com/Ezekeel/GLaDOS-nexus-s
Thanks
edit: the newest CM7 has the feature built in!! Thanks everyone
i've been looking for a way to disable the lights too! thanks!
drleospaceman said:
edit: the newest CM7 has the feature built in!! Thanks everyone
Click to expand...
Click to collapse
As a clarification, the feature is not available on 7.1.0.1 but only in the nightly later nightly builds. However, if you're running the stable mod, a workaround is to use Spark Mod Manager.

Touch key brightness

Hey all, I'm trying to figure out how to get some brightness settings for the touch key brightness to stick. I've used LG 2x Notifications and O2x Touch Key Brightness, and they both work up until the point where i put the phone to sleep by tapping the power button. As soon as I wake it up, the brightness goes straight to zero unless i head back to the app and raise it up again. And if i uninstall the apps, the brightness on my keys stay off until i re-flash or reinstall the app again. Help!
My issue is a little different but similar. It worked fine for me on every basic gingerbread rom, but when I switched to a cm7 based rom the lights change with the brightness of the screen. I turned off all the light notifications but it did not help.
If anyone has any ideas, I'd love to hear them.
What rom?
Sent from my LG-P999 using XDA
redmonke255 said:
What rom?
Sent from my LG-P999 using XDA
Click to expand...
Click to collapse
On SinghUI but it doesn't have built-in LED notifications, if that's what you're getting at.
If the setting from one of those apps doesn't stick, then it's most likely being set by your ROM or Kernel. Have you tried checking if you get the same issue with other ROMs?
@jcbofkc That's a built-in setting that can't really be changed unless you get a custom ROM or Kernel cooked up to remove the link between the brightnesses.
xBIGREDDx said:
If the setting from one of those apps doesn't stick, then it's most likely being set by your ROM or Kernel. Have you tried checking if you get the same issue with other ROMs?
@jcbofkc That's a built-in setting that can't really be changed unless you get a custom ROM or Kernel cooked up to remove the link between the brightnesses.
Click to expand...
Click to collapse
90% sure the ROM doesn't have built in notifications. I'm noticing now that very rarely the settings do stick. Perhaps there is a way to force the app to stay in memory?
rrroach said:
90% sure the ROM doesn't have built in notifications. I'm noticing now that very rarely the settings do stick. Perhaps there is a way to force the app to stay in memory?
Click to expand...
Click to collapse
That wouldn't work. All that those apps do is write a number from 0-20 to the text file:
/sys/devices/platform/star_touch_led/wled
in your root file system.
When you read the file, it shows you the current output to the LEDs (from 0uA to 2000uA).
When you write to the file, it interacts with the Kernel and sets the brightness.
The Touch Key Lights type apps, all they do is when you move the slider they write a value to that file, and that's it. The only reason it wouldn't stick is if your ROM or Kernel is changing the value in the background. For example it will set it to 0 when you turn the screen off, and then it should set it back to wherever it was before when you turn the screen on again.
The closest you could get is to take the source for LG Touch LED Notifications and modify it to set the brightness every few seconds or something, but that probably wouldn't be too good for your battery life.
Based on your symptoms it appears that either your ROM or your phone doesn't really handle the modifying of the brightness very well. It looks like SinghUI does use a kernel from CM7, so I don't think your kernel is the problem. I'd suggest flashing the most recent CM7.2 RC, and seeing if you have the same problem there. CyanogenMod will change your LED brightness based on your screen brightness though.
EDIT: Ignore all that for a moment, try this first. It is a post from January 21st in the SinghUI thread, so it might not work now, but go ahead and try it: http://forum.xda-developers.com/showpost.php?p=21652744&postcount=293
Also I'd suggest posting in the SinghUI thread as everyone there is using your ROM, so they might be able to help better.
xBIGREDDx said:
That wouldn't work. All that those apps do is write a number from 0-20 to the text file:
/sys/devices/platform/star_touch_led/wled
in your root file system.
When you read the file, it shows you the current output to the LEDs (from 0uA to 2000uA).
When you write to the file, it interacts with the Kernel and sets the brightness.
The Touch Key Lights type apps, all they do is when you move the slider they write a value to that file, and that's it. The only reason it wouldn't stick is if your ROM or Kernel is changing the value in the background. For example it will set it to 0 when you turn the screen off, and then it should set it back to wherever it was before when you turn the screen on again.
The closest you could get is to take the source for LG Touch LED Notifications and modify it to set the brightness every few seconds or something, but that probably wouldn't be too good for your battery life.
Based on your symptoms it appears that either your ROM or your phone doesn't really handle the modifying of the brightness very well. It looks like SinghUI does use a kernel from CM7, so I don't think your kernel is the problem. I'd suggest flashing the most recent CM7.2 RC, and seeing if you have the same problem there. CyanogenMod will change your LED brightness based on your screen brightness though.
EDIT: Ignore all that for a moment, try this first. It is a post from January 21st in the SinghUI thread, so it might not work now, but go ahead and try it: http://forum.xda-developers.com/showpost.php?p=21652744&postcount=293
Also I'd suggest posting in the SinghUI thread as everyone there is using your ROM, so they might be able to help better.
Click to expand...
Click to collapse
Thanks for the link. It turns out that the ROM does have led notifications. However, disabling them didn't help the problem. :/ the g2x has just been an awful experience for me! :/

Soft key Leds Notifications v0.3 (Root)

This is an application I made for my phone to keep the button leds on when we receive a phonecall or SMS only.
Needs root access.
May harm your phone, I do not take any responsibility. Use it at your own risk.
i don t know what may happen if the leds are on for days. May harm them
my phone is i9105p.
official rom
root
android 4.2.2
I9105PXXUBMI1
KERNEL 3.0.31-1743918
BUILD NUMBER I9105PXXUBMI3
The Activate button enables the service.
The Deactivate button disables it.
the java code (3 classes)
Make sure task manager dont kill it. In Settings you can enable notification (prevent android task manager to kill it).
V.0.1
now works even if the event find the screen on
notification - prevent auto close. (no option to turn notification off yet, but i tried to keep it unoticable)
The only way to close is by android task manager which calls ondestroy command. (exit button to add)
V0.2
Settings:
- Screen timeout adjustable - propably help with other devices (set how much time takes the phone to close the screen when the event wakes the screen.)
- path to brightness editable
- notification to prevent android task manager on / off
V0.3
two mini bug fixed
1. (maybe) app does not respond on message receive when service is off.
2. now it does not lock led brightness (may caused issues with other apps)
How it works:
Activate / DeActivate Service from app.
It only works if
echo 1 > /sys/class/leds/button-backlight/brightness;
(or any path for your device's brightness works)
Hi!
Thanks for your help in the other thread! Unfortunately my led brightness path is different so your app is not working on my device.
Would you mind if I use your code in order to develop an app suitable for my specific device?
GustavYgman said:
Hi!
Thanks for your help in the other thread! Unfortunately my led brightness path is different so your app is not working on my device.
Would you mind if I use your code in order to develop an app suitable for my specific device?
Click to expand...
Click to collapse
not at all.later I will give options for each user's path for brightness, screen timeout when the event wakes the screen (not all devices are ten seconds., etc
hi ..thanx i will try this i was searching for this .. but i found it works when the screen is on .. but it stop working when is off .. i hope it will work ..
and plz help the guys in the CM10.2 i think you know java so you can help them .. they have some problem with ril .. and big problem with vibration ... we need team to make cm works .. thanx again ...... peace
http://forum.xda-developers.com/showthread.php?p=47912182#post47912182
nanoteam said:
hi ..thanx i will try this i was searching for this .. but i found it works when the screen is on .. but it stop working when is off .. i hope it will work ..
Click to expand...
Click to collapse
try in terminal emulator
su
echo 1 > /sys/class/leds/button-backlight/brightness
(or any path for your device's brightness)
it should light the leds.
and then turn off the screen without pressing back or menu, (they light the leds)
if the leds keep lighted while the screen is off, then propably it will work. if not then the kernel restrictions apply to your rom.
beastaki23 said:
try in terminal emulator
su
echo 1 > /sys/class/leds/button-backlight/brightness
(or any path for your device's brightness)
it should light the leds.
and then turn off the screen without pressing back or menu, (they light the leds)
if the leds keep lighted while the screen is off, then propably it will work. if not then the kernel restrictions apply to your rom.
Click to expand...
Click to collapse
They keep on, but they don't get on, if the device is already locked.
Sent from my GT-I9105P using XDA Premium 4 mobile app
CoolDevelopment said:
They keep on, but they don't get on, if the device is already locked.
Sent from my GT-I9105P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is why I keep the screen on for 11 seconds. this way when the event comes:
1. android lights the screen and the lights for 10 seconds (by default of android)
2. android ask them both to turn off (after 10 seconds) -
But the screen is still on as I asked. :good:
So a second later (11 seconds) I turn on the lights and release the screen. (turns off unless you unlocked it)
try not to interact with your phone if you want to test it since you receive the sms or the missed call, cause then the lights wont start. (since you already saw the event)
it worked for me but .. 1st the led they are not bright ... you can't see them clearly .... and they just stay tuned ..if you can make them blink good luck ....
I think you should check https://play.google.com/store/apps/details?id=neldar.bln.control.free&hl=de.
The soft key driver in our kernel sources is drivers/input/touchscreen/coreriver_touchkey/
The app is incompatibel with our device, but maybe something similar would be possible
BLN control this application needs feature enabled in the kernel ... you need to path the corect driver to support it i tried it ... ... this project it is better it uses libs ... i think there is app it uses lib like this ... but it work just when the screen is on .. it kills when is off .. but this app it work ... the problem it is not bright .. and it needs blink ..
nanoteam said:
BLN control this application needs feature enabled in the kernel ... you need to path the corect driver to support it i tried it ... ... this project it is better it uses libs ... i think there is app it uses lib like this ... but it work just when the screen is on .. it kills when is off .. but this app it work ... the problem it is not bright .. and it needs blink ..
Click to expand...
Click to collapse
here is an example, how the support for the app is added, but our device uses a complete different touchkey diver
https://github.com/dmore70/kernel-GB-I9000/commit/d69303cae38bf1f6efe36aceab492d9bb8bc0ac3
BTW I found a way to increase the brightness of the keys, while the device is locked and blinking leds would kill our battery
I will try add a handler to execute
echo 255 > /sys/class/leds/button backlight/max_brightness
after the screen is off. probably since the brightness is 1,
it will allow me to play with brightness level. and simulate blinks. I will try if it works later.
As always feel free to edit the code yourself!
beastaki23 said:
I will try add a handler to execute
echo 255 > /sys/class/leds/button backlight/max_brightness
after the screen is off. probably since the brightness is 1,
it will allow me to play with brightness level. and simulate blinks. I will try if it works later.
As always feel free to edit the code yourself!
Click to expand...
Click to collapse
I found the brightness values in kernel, the thing you want to do won't change anything i guess
Sent from my GT-I9105P using XDA Premium 4 mobile app
they wont kill battery if make them blink every 7 or 8 sec ... blink for have second .. stay off for 8 sec .. and blink ..
you meant you must change them in the kernel .. may be you can override setting
nanoteam said:
they wont kill battery if make them blink every 7 or 8 sec ... blink for have second .. stay off for 8 sec .. and blink ..
you meant you must change them in the kernel .. may be you can override setting
Click to expand...
Click to collapse
I maybe found a way to support bnl control
Sent from my GT-I9105P using XDA Premium 4 mobile app
if it works tell me ......good luck
CoolDevelopment said:
I found the brightness values in kernel, the thing you want to do won't change anything i guess
Sent from my GT-I9105P using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yep. tried it but it wont allow changes. not even with screen on.
So now I could succesfully build kernel, now I'm hanging with modding our lights.goldfish https://github.com/CyanogenMod/android_device_generic_goldfish/blob/cm-10.2/lights/lights_qemu.c like https://github.com/neldar/liblights_gt-i8190/blob/master/lights.c . Maybe anyone of you can help me ?
CoolDevelopment said:
So now I could succesfully build kernel, now I'm hanging with modding our lights.goldfish https://github.com/CyanogenMod/android_device_generic_goldfish/blob/cm-10.2/lights/lights_qemu.c like https://github.com/neldar/liblights_gt-i8190/blob/master/lights.c . Maybe anyone of you can help me ?
Click to expand...
Click to collapse
Where can we find our official's kernel light file? Can you upload it? propably it has different inputs than those.

[Q] Control touch key backlight effectively?

Hi all It might not sound wise but I just got myself an second hand Infuse 4G for a nice price, and like every device I've owned, got CM running on it in hours. However, there's something that bugs me for a bit, and that is the touch key backlight.
On other devices I have, CM's Settings-Buttons part controls touch key backlight well, leaving it on for whatever duration or turning it off. But on all ROMs I've tried till now (CM10, CM10.2, CM11), either this option is absent (CM10's Infuse Settings is incomplete), or the option doesn't work properly:
1) When I set the keys to light up, they don't light up automatically when I wake the phone up from sleep, I'll have to press the keys to activate them.
2) When I turn the light off, the light indeed goes off immediately, but when I press any of the keys, they come back to life again and simply stay on, ignoring the settings.
I remembered that on many HTC phones there was a way to manually control button backlight behavior by altering values of a certain file in /sys/class/..., so after some work, I found the file: /sys/devices/virtual/misc/melfas_touchkey/brightness, and indeed, setting it to 0 will make the light go off. The thing that doesn't work out is that it won't persist - pressing any of the keys still make the light come back. I've set the permission to 0444 and even made a init.d script for that, and I can guarantee that the script itself is working properly, but still it can't keep the light under control... And now I'm stuck.
1) Is there a way to make the option in Infuse Settings or Settings-Buttons work as they should?
2) Any separate app that could also do this?
3) Why won't my manual adjustment persist?
Answering any of these questions would be of help, thank you in advance!
AndyYan said:
Hi all It might not sound wise but I just got myself an second hand Infuse 4G for a nice price, and like every device I've owned, got CM running on it in hours. However, there's something that bugs me for a bit, and that is the touch key backlight.
On other devices I have, CM's Settings-Buttons part controls touch key backlight well, leaving it on for whatever duration or turning it off. But on all ROMs I've tried till now (CM10, CM10.2, CM11), either this option is absent (CM10's Infuse Settings is incomplete), or the option doesn't work properly:
1) When I set the keys to light up, they don't light up automatically when I wake the phone up from sleep, I'll have to press the keys to activate them.
2) When I turn the light off, the light indeed goes off immediately, but when I press any of the keys, they come back to life again and simply stay on, ignoring the settings.
I remembered that on many HTC phones there was a way to manually control button backlight behavior by altering values of a certain file in /sys/class/..., so after some work, I found the file: /sys/devices/virtual/misc/melfas_touchkey/brightness, and indeed, setting it to 0 will make the light go off. The thing that doesn't work out is that it won't persist - pressing any of the keys still make the light come back. I've set the permission to 0444 and even made a init.d script for that, and I can guarantee that the script itself is working properly, but still it can't keep the light under control... And now I'm stuck.
1) Is there a way to make the option in Infuse Settings or Settings-Buttons work as they should?
2) Any separate app that could also do this?
3) Why won't my manual adjustment persist?
Answering any of these questions would be of help, thank you in advance!
Click to expand...
Click to collapse
As far as I know, the Infuse hasn't had effective backlight control since Gingerbread. If you wanna go back to that, it should work fine. Otherwise, all of the newer ROMs are using an outdated kernel that doesn't support backlight control. I highly doubt we will see it working again since very few people are still using the Infuse.
niral7 said:
As far as I know, the Infuse hasn't had effective backlight control since Gingerbread. If you wanna go back to that, it should work fine. Otherwise, all of the newer ROMs are using an outdated kernel that doesn't support backlight control. I highly doubt we will see it working again since very few people are still using the Infuse.
Click to expand...
Click to collapse
I can bear returning to GB and I did, but I've tried both stock UCLB3 and CM7, and neither contains any settings about button backlight...
Sent from Google Nexus 4 @ CM11
[WARNING: XDA Premium 4.0.13 lacks Signature function - do not update]
AndyYan said:
I can bear returning to GB and I did, but I've tried both stock UCLB3 and CM7, and neither contains any settings about button backlight...
Sent from Google Nexus 4 @ CM11
[WARNING: XDA Premium 4.0.13 lacks Signature function - do not update]
Click to expand...
Click to collapse
The Infuse supports backlight control in gingerbread. In order to use it, you'll have to download a third party app in the play store. I don't think CM7 will support it either.
niral7 said:
The Infuse supports backlight control in gingerbread. In order to use it, you'll have to download a third party app in the play store. I don't think CM7 will support it either.
Click to expand...
Click to collapse
Not even CM7? No dice then, I guess... Thanks for the tip anyway.
Sent from Google Nexus 4 @ CM11
[WARNING: XDA Premium 4.0.13 lacks Signature function - do not update]

Categories

Resources