Related
Hi there,
is there a way to use the Menu and Back button on the bottom of the phone as a notification LED? Just let it blink if there is a notification in the system?
Greetings
Christian
I have tried several apps (BBS Notifications, ButtonLED) to accomplish this, unfortunately without any success.
The BBS Notification was able to control the button lights, however when the screen is off the lights do not work. Some phones do not allow the lights to go on, when the screen is off and as it seems S4 Mini is one of them. I also hope someone will find a solution for this, preferably one that will not cause too much battery drain.
Another option might be BLN mod. However, I read that the BLN modification in kernel might cause battery drain exactly because of the necessary changes in power management in order to allow the button light to work when the screen is off (the BLN mod for Mini does not exist yet as far as I know).
Sent from my GT-I9195 using Tapatalk 4 Beta
hello
I think the BLN kernel solution is better than any noLED app or other.
So I am very interested in a BLN supporting kernel.
Were can a user as me ask for this or can see the progress in building such a BLN-supporting kernel?
Thanks
Tom
You can try noled it uses your screen led for notification but drains battery
Sent from my GT-I8190 using xda app-developers app
As I wrote I this the BLN is much more better.
If you look at night on your superAMOLED screen while a noLED sign is there, the whole screen is lighter.
As far as I see this app (noLED) is not able to let our wonderful AMOLED screen totaly black but gives a little light on the whole screen.
So: were can a "new" user as me, with 2 years CM experiance at his Galasy S I can ask developers to create a BLN supportet kernel?
I dont want to post it in the wrong place here in XDAdev.
thanks !
Tom
chris42too said:
Hi there,
is there a way to use the Menu and Back button on the bottom of the phone as a notification LED? Just let it blink if there is a notification in the system?
Greetings
Christian
Click to expand...
Click to collapse
if you can wait for cm 10.1 i think you will get bln or cmLights support ... afaik this is needed to get this to work and @arco68 allready included this ... correct me if im wrong
m4kl4 said:
if you can wait for cm 10.1 i think you will get bln or cmLights support ... afaik this is needed to get this to work and @arco68 allready included this ... correct me if im wrong
Click to expand...
Click to collapse
I remembered to see the backlight somewhere on a todo list, but now can't find it. Is this now available in the stable release?
no it isn't. Still on the list.
Anything new yet? My girlfriend uses se S4 mini and is annoyed of the missing LED. NoLED drains too much battery...
For Stock Rom: http://forum.xda-developers.com/showthread.php?t=2545244
For AOSP: http://forum.xda-developers.com/showthread.php?t=2512332
junkyde said:
For Stock Rom: http://forum.xda-developers.com/showthread.php?t=2545244
For AOSP: http://forum.xda-developers.com/showthread.php?t=2512332
Click to expand...
Click to collapse
Thanks! When I scrolled in Dev. section, didn't see that thread
--Rob-- said:
Thanks! When I scrolled in Dev. section, didn't see that thread
Click to expand...
Click to collapse
So what do these links tell me. After reading them I am not sure what to do with it? Can I just add that to my Cyanogen or is it different?
What happens with Cyanogen Updates then?
Screen Dimmer
The minimum screen brightness is too damn bright to use in the dark.
Run the app, click "Load" next to "n5dim", change your brightness to the minimum (and then up a bit and back down) and notice how much dimmer it is.
The brightness at all other levels stay the same.
Source: https://github.com/mzhou/n5dim
Fast Charge
This works by setting the registers on the bq24192 charger chip to allow as much input current (from USB/AC) as possible, as well as allowing as high a charge current as possible (to the battery).
From limited tests I've performed in the past, this actually isn't enough to get faster charging, so further investigation will be needed, though your testing will be much appreciated.
It will take effect on the first time you plug in after clicking "Load". If you're already plugged in, you need to unplug and replug for it to take effect.
Source: https://github.com/mzhou/n5charge
General
To use either of these, you need any kernel which supports modules (CONFIG_MODULES=y).
I've attached (modules_boot.img) a stock kernel with the config changed to support modules.
modules_441_boot.img is for 4.4.1, while modules_boot.img is for 4.4.0.
Does this dim further than setting '1' in /sys/devices/mdp.0/qcom,mdss_fb_primary.160/leds/lcd-backlight?
(Also I noticed your CSE email, a fellow UNSW student?)
Cyb3rGlitch said:
Does this dim further than setting '1' in /sys/devices/mdp.0/qcom,mdss_fb_primary.160/leds/lcd-backlight?
(Also I noticed your CSE email, a fellow UNSW student?)
Click to expand...
Click to collapse
Yes. Dragging the brightness slider to the minimum already sets 1 there.
There's values hard coded in the platform data to internally restrict the value to a minimum of 5 (but that's of little consequence).
The main gain is is from the "full scale current" (you can find an explanation in the datasheet for lm3630) which has been hard coded to 18 in the platform data. Bringing it down to 0 makes a huge difference.
(sup)
Nice work! I wonder why they limited it. Possibly to stop people putting their phone into an unusable state during the day?
Cyb3rGlitch said:
Nice work! I wonder why they limited it. Possibly to stop people putting their phone into an unusable state during the day?
Click to expand...
Click to collapse
I've done it to myself many times when I did this to my old phone.
Also updated the attachment in the OP to be compatible with more kernels.
Tested working on Franco.
Very cool! :good:
AWESOME! Is there maybe a mod like this for the NN7 (new nexus 7 )
Is there any advantage to this method over using an app like lux?
Sent from my Nexus 5 using XDA Premium 4 mobile app
adzjwarner said:
Is there any advantage to this method over using an app like lux?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
No app will be able to get the backlight this dark.
I'm not sure what Lux does, but if it modifies the colours to produce a darkening effect, then the contrast will be very bad.
adzjwarner said:
Is there any advantage to this method over using an app like lux?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hey there, I'm actually the developer of Lux. The main purpose of Lux is to replace your auto brightness system without the need for root access. That being said, there's no reason why this neat kernel module couldn't be added to a root plugin for Lux.
Cyb3rGlitch said:
Hey there, I'm actually the developer of Lux. The main purpose of Lux is to replace your auto brightness system without the need for root access. That being said, there's no reason why this neat kernel module couldn't be added to a root plugin for Lux.
Click to expand...
Click to collapse
Ah cool.
I tried out Lux and I'm not sure if it's a limitation in the free version, but it only sets the backlight brightness (/sys/class/leds/lcd-backlight/brightness) to a minimum of 10 before it starts doing colour adjustment instead.
My module treats the value 1 as special for making the backlight super dark. Dragging Android's built in brightness slider uses the full range of values 1-225 inclusive.
There's no reason it couldn't just map the full 1-255 to a wider range, but I initially wanted to lean towards keeping things as stock as possible.
arararagi said:
Ah cool.
I tried out Lux and I'm not sure if it's a limitation in the free version, but it only sets the backlight brightness (/sys/class/leds/lcd-backlight/brightness) to a minimum of 10 before it starts doing colour adjustment instead.
My module treats the value 1 as special for making the backlight super dark. Dragging Android's built in brightness slider uses the full range of values 1-225 inclusive.
There's no reason it couldn't just map the full 1-255 to a wider range, but I initially wanted to lean towards keeping things as stock as possible.
Click to expand...
Click to collapse
It does that because some devices do silly things near 0 like putting the device to sleep. You can change the minimum brightness in settings to 1 which should fix this (although I suspect it might round 0.01*255 to 2. I'll have to check my codebase).
Cyb3rGlitch said:
It does that because some devices do silly things near 0 like putting the device to sleep. You can change the minimum brightness in settings to 1 which should fix this (although I suspect it might round 0.01*255 to 2. I'll have to check my codebase).
Click to expand...
Click to collapse
Somehow overlooked that when I was skimming the settings. (And it does round to 2 ).
I could make 2 or anything less than 5 special so that Lux users can benefit. Or maybe just make it configurable with a parameter at insmod time...
arararagi said:
Somehow overlooked that when I was skimming the settings. (And it does round to 2 ).
I could make 2 or anything less than 5 special so that Lux users can benefit. Or maybe just make it configurable with a parameter at insmod time...
Click to expand...
Click to collapse
Whatever you feel works best. A parameter sounds like the most flexible solution though.
This is exactly what I was looking for!
Could I get a bit more explanation of how to install this though? Do I flash the kernel in recovery and then run the command from a shell on my phone, or on my computer?
Thanks for making this.
Sent from my Nexus 5 using xda app-developers app
I'll be watching this thread intently. I currently use lux as well.
rockingondrums said:
I'll be watching this thread intently. I currently use lux as well.
Click to expand...
Click to collapse
Ditto!
Sent from my Nexus 5 using XDA Premium 4 mobile app
Nelsocracy said:
This is exactly what I was looking for!
Could I get a bit more explanation of how to install this though? Do I flash the kernel in recovery and then run the command from a shell on my phone, or on my computer?
Thanks for making this.
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Flash the kernel in whatever normal way you choose.
Extract and copy n5din.ko to your phone.
Use root and put it in /data so that apps with SD card access can't mess with it.
Run "insmod /data/n5dim.ko" on your phone. This can be with a terminal emulator or adb or script manager.
I'm probably gonna be making more modules so I might make an app to simplify the process.
Cyb3rGlitch said:
Hey there, I'm actually the developer of Lux. The main purpose of Lux is to replace your auto brightness system without the need for root access. That being said, there's no reason why this neat kernel module couldn't be added to a root plugin for Lux.
Click to expand...
Click to collapse
OhHai! Big fan of the app, it's saved my eyes when internetting in bed for many many months now! (Though I probably should just not internet at night)
I'll leave the plugin stuff to somebody who knows how to do that and rejoice when(if) it happens. :good:
arararagi said:
Flash the kernel in whatever normal way you choose.
Extract and copy n5din.ko to your phone.
Use root and put it in /data so that apps with SD card access can't mess with it.
Run "insmod /data/n5dim.ko" on your phone. This can be with a terminal emulator or adb or script manager.
I'm probably gonna be making more modules so I might make an app to simplify the process.
Click to expand...
Click to collapse
That worked perfectly, thanks.
This is really dim! I'm impressed. If you ever decide to modify it like you mentioned earlier so that the full brightness adjustment was available I'd be interested. It would be useful to have access to all the brightness levels between yours and the ordinary minimum brightness.
Sent from my Nexus 5 using xda app-developers app
xperia z1 compact brightness change itslef even when i have turned off the auto brightness. for example, the brightness becomes dimmer when the overall display colour is dark or black colour and it becomes brighter when the ovrall display colour is white or bright colour. i mean im able to notice there is a slight change in display brightness when im viewing photo, watching videos or surfing inernet. the brightness just change itself even when i turn off the auto brightness. so is there any solution or is there anyone has same curcamstances?
CABL
Sent from the app on my Z1C...
if you're rooted you can disable it by changing the build.prop ro.qualcomm.cabl=1 to ro.qualcomm.cabl=0
Riyal said:
if you're rooted you can disable it by changing the build.prop ro.qualcomm.cabl=1 to ro.qualcomm.cabl=0
Click to expand...
Click to collapse
I tried that, but the effect still appears. Any idea?
I've noticed the same issue, especially when browsing using Dolphin
Two ideas (which both may be totally wrong).
Does the phenomenon occur anywhere or only in certain apps? Some apps just ignore certain system settings and mess with the phone how they want or how is defined within the respective app settings (like switching to auto-brightness even when it is turned off in the android system settings). There seem to be some very basic points missing in the holy whatever-app-coding-styleguide for android: Options shall always be OPTIONAL and, in case of doubt (which is always), don't fcuk with stick to the system defaults ... but I'm running off the track here.
With auto-brightness turned-on, there may be some slight loop-back kind of behaviour in that a brighter screen also creates a brighter environment for the light sensor, thus, making the device turning up brightness even more. Things like that happen in control/measurement systems all the time (well, not really all the time, but they do happen). I've never seen it on my phone, though. So, this is a very very hypothetical hypothesis if I may say so.
Hi
I set ro.qualcomm.cabl to zero, and for me the irritating behavior went away., and unfortunately the irritating behavior is still there.
Thanks for the info!
//Gunnar
GunnarKarlsson said:
Hi
I set ro.qualcom.cabl to zero, and for me the irritating behavior went away.
Thanks for the info!
//Gunnar
Click to expand...
Click to collapse
Just one qustion:
I assume i have to be rooted to set this value, correct?
Thanks in advance
Zweistein82 said:
Just one qustion:
I assume i have to be rooted to set this value, correct?
Thanks in advance
Click to expand...
Click to collapse
Correct!
GunnarKarlsson said:
Hi
I set ro.qualcom.cabl to zero, and for me the irritating behavior went away.
Thanks for the info!
//Gunnar
Click to expand...
Click to collapse
That's strange because it's kernel related so changing the build.prop has no effect as already mentioned, which I can +1 to.
XperienceD said:
That's strange because it's kernel related so changing the build.prop has no effect as already mentioned, which I can +1 to.
Click to expand...
Click to collapse
I'll look again just to make sure, there might have been a placebo effect...
I noticed the behavior in the kindle app. When reading white text on a black background the screen got brighter when there was a white chapter start image.
//Gunnar
XperienceD said:
That's strange because it's kernel related so changing the build.prop has no effect as already mentioned, which I can +1 to.
Click to expand...
Click to collapse
You are right, just placebo on my part, when duplicating the error case I noticed it in, the CABL is still there.
I really really wanted it to work though, that must count for something... :-/
I attach the images I used for comparison...
//Gunnar
GunnarKarlsson said:
I really really wanted it to work though, that must count for something... :-/
Click to expand...
Click to collapse
If only it worked that way lol. It's in the kernel but thus far no dev seems to have looked in to it.
Sent from the app on my Z1C...
XperienceD said:
That's strange because it's kernel related so changing the build.prop has no effect as already mentioned, which I can +1 to.
Click to expand...
Click to collapse
From google I got cabl=content adaptive backlight and it is intended for changing backlight change.. But what is its advantage?? Is it battery saver or battery eater??
Sent from my Xperia Z1 Compact (D5503)
Was searching for a solution to this 'feature', especially on a sunny day it is very annoying. Could it be that is has something to do with the BRAVIA engine? Just a thought..
so?
So this problem is kernel-related issue?
Is there any kernel that have fixed this?
Any soulution? It is super annoying
I have same problem. Any solution?
CM11
Thank you
I know this is for z1c, but I just got my hands on a z1 c6903 and it seems to do this a lot and fade on dark colours. I read that on 4.2.2 there used to be an optimized backlight option and disabling it would stop the screen doing it but it was taken out from kitkat. Does anyone know if any custom kernels would fix it? It's just really annoying.
What about setting:
/sys/devices/mdss_dsi_panel/cabc
to "0"?
Hi,
is there any way to change brightness to lower level? My previous phone, Xperia Mini, could decrease brightness to absolute black (I didn't need it, but still...). But my Xperia M is still pretty shining in dark even in the lowest level. It burns my eyes. All I could find were some stupid filters. Is there any better solution (root or not, I don't care).
Thanks.
dave_lister said:
Hi,
is there any way to change brightness to lower level? My previous phone, Xperia Mini, could decrease brightness to absolute black (I didn't need it, but still...). But my Xperia M is still pretty shining in dark even in the lowest level. It burns my eyes. All I could find were some stupid filters. Is there any better solution (root or not, I don't care).
Thanks.
Click to expand...
Click to collapse
Click
Gravitybox has some brightness abilities to reassign lux-brightness pairs. Don't know if it can go under normal brightness though...
FindYanot: That's exactly what I don't want. I want something on HW level (lower led (or what they use) intensity), not just transparent black layer.
KoenGo: Do you think, it can work? I don't have root yet (I want do it, if I find solution), so I can't try.
Nobody faced this problem? Everyone is happy with light intensity?
Yes it's too much but if you lower that level screen will probably start flickering which is much more annoying than just too bright screen. This is common, hw related issue that can be found on other devices with low quality lcd.
I'm trying but it's kinda hard to tell if there's any difference since you have to reboot after applying new minimum. I would say there isn't much difference. I'll retry in the dark some time.
Doesn't crash or flicker or anything though, so that's the good news
Personally, I would not root just for this and just use the filters. What is your problem with them? That it uses more battery than a hardware method would, or just that it's impractical? In the second case, lux might be worth looking into. I've never tried it myself since it isn't free, I just use the filter u hate
Tried it in the dark and I believe there is a difference, although very small (barely noticeable) and imho definitely not worth rooting and installing framework.
OK. That's bad, but thanks for your time
Well I rooted my phone and I tried gravitybox and I don't think there is a difference. But still thanks.
My setup now is that I can (de)activate the filter app by swiping over the navigationbar. It's still a filter so it doesn't prolong battery life or anything, but it is a convenient way to enable or disable it.
If you would ever come across something better, please let us know
dave_lister said:
is there any way to change brightness to lower level?
Click to expand...
Click to collapse
Yes, but you need root.
Execute in Terminal or run attached file as script via Root Explorer / GScript:
Code:
#!/system/bin/sh
su
echo 5 > /sys/class/leds/wled/brightness
Minimal stock value 27, we change it to 5 or any other you want.
Maximum value: 255
Bug: backlight will be flickering.
Thank you. It really works! (I rewrite it manually without any script or terminal)
Just one thing. The brightness file is used for current state and when I change intensity in options (or select auto), it's rewritten. So, is there any way to change minimum level permanently (minimum on bar or 0 lux = 5 or something instead of stock 27)? Or is it possible to make some shortcut to rewrite the file with one click? Or use some tasker for it?
But it doesn't matter much. Even this way, without any shortcuts, is awesome. I'll test it in night, but even now (during a day), I can see a difference.
dave_lister said:
So, is there any way to change minimum level permanently
Click to expand...
Click to collapse
Yes, but only by editing file in kernel, it requires recompiling.
Then pulled slider to the left will set really minimal value.
Here commit from ElixER kernel for 4.1.2, originally this trick comes from there.
dave_lister said:
Or is it possible to make some shortcut to rewrite the file with one click? Or use some tasker for it?
Click to expand...
Click to collapse
Yes, GScript app, as far I know can create shortcuts.
Or in Tasker create task with only one action "Run shell" (tick Root) and then create shortcut in launcher.
iks8 said:
screen will probably start flickering which is much more annoying than just too bright screen. This is common, hw related issue that can be found on other devices with low quality lcd.
Click to expand...
Click to collapse
Always was interesting what exactly causing this flickering at hardware side. Led's controller?
Please can you provide any information and example devices with same issue?
Bonoboo said:
Always was interesting what exactly causing this flickering at hardware side. Led's controller?
Please can you provide any information and example devices with same issue?
Click to expand...
Click to collapse
For example galaxy tab 2 (I have one), on the lowest brightnes level it flicker a lot (especially annoying when it's displays white surface), my sister's asus memo pad 7 hd has this issue too but less noticible. Yes, it's somehow related to device's power managment, in galaxy tab 2 forum people saies that it's flicers more when wifi signal is low so as I understand: low signal -> device need more power for wifi -> device gives less power for leds -> screen is more flickering but I could be wrong since I'm almost total electroinc noob I will test that later
p.s.
This issue is really common, even s4 has this problem according to this https://www.youtube.com/watch?v=5yZaQRr76f8 So Sony has done good move with setting so high the lowest brightnes level (at least this hides unusable levels). Really my eyes hurt when I'm using my gtab2 at night although xperia does the same thing but in different way xD
Tested your method and at least in my device, the LED flickering was barely noticeable and only appeared when I set very low values (like 1). Setting as 3 and onwards gives zero flickering here (or I'm just blind, not noticing it)...
You're right. Values about 3, 4, 5 are quite ok.
I made the GSscript shortcut and I¨m finally happy.
I think the flickering is caused by pwr regulation with low frequency. But I'm not electrician either.
Hi All,
I was wondering whether anyone know of a way to disable the charging LED, specially the solid Green that comes on when the battery is full?
I am thinking some modification in /sys/class/leds might do it but not sure which is it.
I find that solid green indicator too bright and distracting when kept charging at bedside at night.
Hey, did you ever found a solution for these.. man that led gets bright at night!!!
GravityBox Xposed module
I think the charging LED is dumb, especially when it precludes notifications.
I mean, really, who watches the charging LED?
"Okay, watch this light and when it changes, unplug it!" ???
"Oh, nope, can't unplug the phone yet, the LED says not to!" ???
Rolo42 said:
GravityBox Xposed module
I think the charging LED is dumb, especially when it precludes notifications.
I mean, really, who watches the charging LED?
"Okay, watch this light and when it changes, unplug it!" ???
"Oh, nope, can't unplug the phone yet, the LED says not to!" ???
Click to expand...
Click to collapse
I currently have gravitybox but couldnt find anything to stop that freaking spotlight! I disabled the charging led, it didnt actually turn on when charging but it did once.it was full..
Maybe im missing something
Nuts...you're not. It only disables the orange charging indicator, not the green charged indicator.
If it were red, I'd think Locutus of Borg was looking at me every time I looked at the screen.
A custom ROM might be our only hope...
Rolo42 said:
Nuts...you're not. It only disables the orange charging indicator, not the green charged indicator.
If it were red, I'd think Locutus of Borg was looking at me every time I looked at the screen.
A custom ROM might be our only hope...
Click to expand...
Click to collapse
well... i think ill just keep a piece of plastic on the night stand..
kelbaez said:
well... i think ill just keep a piece of plastic on the night stand..
Click to expand...
Click to collapse
heh...electrical tape over it :laugh:
zerone55 said:
Hi All,
I was wondering whether anyone know of a way to disable the charging LED, specially the solid Green that comes on when the battery is full?
I am thinking some modification in /sys/class/leds might do it but not sure which is it.
I find that solid green indicator too bright and distracting when kept charging at bedside at night.
Click to expand...
Click to collapse
We have that feature in our rom.
j to the 4n said:
We have that feature in our rom.
Click to expand...
Click to collapse
Ive heard tbat Viper is the best rom for htc 10 but i dont want to change roms, is there any way i can force it, editing a file or running a command??
You can change for a kernel that supports it and they usually all do. When I was on nexus 5 that question came alot and the answer was the same always.
Sent from my HTC 10 using XDA-Developers mobile app
kelbaez said:
Hey, did you ever found a solution for these.. man that led gets bright at night!!!
Click to expand...
Click to collapse
I am using Viper10 which has this feature now and ever more cool mods for the notification led. It wasn't available when I created this thread.
If you are using xposed, there is GravityBox and another module call Disable Charging Led which does this.
j to the 4n said:
We have that feature in our rom.
Click to expand...
Click to collapse
Thanks man! I am already on Viper10! When I created this thread back in June, the tweak wasn't available in Viper10.
zerone55 said:
If you are using xposed, there is GravityBox and another module call Disable Charging Led which does this.
Click to expand...
Click to collapse
It doesn't disable the charged LED on this phone, however, like it does on my N5.
zerone55 said:
Thanks man! I am already on Viper10! When I created this thread back in June, the tweak wasn't available in Viper10.
Click to expand...
Click to collapse
Oops, didn't check the 1st post date.
Rolo42 said:
It doesn't disable the charged LED on this phone, however, like it does on my N5.
Click to expand...
Click to collapse
Did you try the "Disable Charging Led" module? Its a standalone module and not part of Gravitybox. If I remember correctly, it had an option for charged led as well. But I haven't used it for a few months so not sure if I remember correctly or if it still works with HTC10.
zerone55 said:
Did you try the "Disable Charging Led" module? Its a standalone module and not part of Gravitybox. If I remember correctly, it had an option for charged led as well. But I haven't used it for a few months so not sure if I remember correctly or if it still works with HTC10.
Click to expand...
Click to collapse
No. It's from 2014 and for the Xperia ZR...untested otherwise.
Rolo42 said:
No. It's from 2014 and for the Xperia ZR...untested otherwise.
Click to expand...
Click to collapse
It worked for me.
Although it isn't disabling the charging LED, you can edit a boolean in /system/customize/ACC/default.xml to allow the green LED notification light to blink while charging.
<item type="boolean" name="NMS_feature_flashlight_during_charging">false</item>
to
<item type="boolean" name="NMS_feature_flashlight_during_charging">true</item>
Rolo42 said:
No. It's from 2014 and for the Xperia ZR...untested otherwise.
Click to expand...
Click to collapse
Found a Xled module, will give it a try now.. who knows maybe thats my solution..
zerone55 said:
It worked for me.
Click to expand...
Click to collapse
...aaaannnnd it works for me too. Fully charged, no searchlight-in-the-face. Thanks!