[Q] Xperia S led bar policy with Opensemc-U RC2 - Sony Xperia S, Acro S, Ion

Hi,
I just installed the ROM OpenSEMC-U CM 10.1 RC2 on my Sony Xperia S and it seems to be working just fine except for one little thing :
The led bar for the buttons lights up every time I touch the screen whereas it only lit up when hitting the buttons on the offical ROMs.
I already searched the forum and some advised to look for an xposed module that would do this.
I didn't find any.
Do you have a solution ?
I you only have a few information on how it's handled in the system, I could try to build the xposed module myself but I don't know where to find the part of the system handling this functionnality.
I would have posted this in the right development forum but I don't have the rights because I juste created my accout...
Thanks.
Regards.

Up !
Does anyone have an idea ?
Thanks.

I've come across some posts about the sys files controlling the leds :
I've seen you can change the lightning behaviour by changing values affected to the virtual files /sys/class/leds/button-backlight/ ...
The problem is that there are several values I can change and I couldn't find any documentation. For example, I wonder if the file trigger cannot be set to a value for which it only lights up when the buttons are touched and not every time the screen is touched.
Regards.

nrdev said:
I've come across some posts about the sys files controlling the leds :
I've seen you can change the lightning behaviour by changing values affected to the .
The problem is that there are several values I can change and I couldn't find any documentation. For example, I wonder if the file trigger cannot be set to a value for which it only lights up when the buttons are touched and not every time the screen is touched.
Regards.
Click to expand...
Click to collapse
i have been facing a problem,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help
and how to get over these
virtual files /sys/class/leds/button-backlight/ ..
any app use to explore or in cmd prompt

deepanshunamdeo said:
i have been facing a problem,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help
and how to get over these
virtual files /sys/class/leds/button-backlight/ ..
any app use to explore or in cmd prompt
Click to expand...
Click to collapse
If we can figure out which parameter to change, we can then write into thoses virtual files in the hw-config script file, which sets the parameters right on startup.

Related

Illumination bar

How to increase the bar brightness level?
I am using kernel based on stick ROMs so when I switch on my xps the illumination bar lights up with full and high level of brightness which looks very nice.
But when phone has started the brightness level is very low as compared to level when xps was starting up.
I have used illumination bar apk to increase the intensity but didn't manage to attain that level.
Please help..or suggest.
Sent from my Xperia S using xda premium
munmun said:
How to increase the bar brightness level?
I am using kernel based on stick ROMs so when I switch on my xps the illumination bar lights up with full and high level of brightness which looks very nice.
But when phone has started the brightness level is very low as compared to level when xps was starting up.
I have used illumination bar apk to increase the intensity but didn't manage to attain that level.
Please help..or suggest.
Sent from my Xperia S using xda premium
Click to expand...
Click to collapse
use search next time. there's already a thread about this..
so: your xs need to be rooted, then via root explorer (or other apps) head to /system/etc then find hw_config.sh open it via text editor then find "echo 2000 > $dev/button-backlight/max_current" change it to 20000 to get max brightness for illumination bar.
i have been facing a problem like this,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light will also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help

LED Notification brightness !

Hi all
I'd be interested to know if anyone else finds the led notification light on our ZL is just not bright enough, I really struggle to see it flashing when out in direct daylight especially on a sunny day. I use my ZL as a business phone and rely quite heavily on the notification led for emails and sms notifications when quickly glancing at the phone in meetings and out on site visits, on numerous occasions now I have not responded to emails and sms as quick as I would have liked due to not noticing the led flashing when out in sunlight.. I've done a bit of digging about on forums and Google but cant find any suggestions on a way to adjust the XZL led brightness, there is a mod for Xperia 2011 devices which I've tried but unfortunately this doesn't work on Sony's latest devices,I've searched the system files and build.prop but cant find any reference to the led brightness.
So with this said I would be grateful to find out if anybody knows where the led control files in the system files are located or better still a mod that can adjust the brightness.
I'm using Illumination Bar Notification from playstore. You can adjust colours and brightness, but I don't think you can make the light brighter with this app.
sturmtruppler said:
I'm using Illumination Bar Notification from playstore. You can adjust colours and brightness, but I don't think you can make the light brighter with this app.
Click to expand...
Click to collapse
Hi yes Im also using Illumination Bar Notification and yes your correct in saying there's no option to adjust the led brightness.

[Q] Z1compact: getting minimum brightness LOWER

Hello Everyone,
I have a problem with my amami and I doubt I am the only one but for some reason people do hardly complain: the brightness even at lowest possible setting is still too bright.
I had this back when I had original FW and I am having the same issue with CM11 (latest nightlies). Using manual control or auto-brightness doesn't make much difference, i.e. in a totally dark room the ambient light sensor reports 0Lux and the screen is still too bright.
I found a workaround already (the ScreenFilter app that people recommend all over the internet) but it sucks because it heavily reduces the picture quality, i.e. visibly reduces contrast and especially the gray color resolution. And it also doesn't reduce power consumption like real brightness value change would do.
I looked around for possible solutions and there is a trick with writting a new value of current limit to Linux settings (some mA value between 0 and 20 to some max_current file in procfs). And this really helps but also impacts the maximum brightness, the screen is hardly ready in sun light with reduced current.
Is there a silver bullet? I am thinking about writing an app for that but it would require SU permissions and is kinda dirty to implement. Can anyone recommend a better solution?
have you tried the xposed Modul "minimum brightness" ?
Install Lux Brightness. from play store.
You can overboost it or make the screen so dark that you can't even see it.
Another great screen mod is Twilight which basically dims the screen red based on clock so it helps fall sleep faster when using phone before bed.
New Folder said:
Install Lux Brightness. from play store.
Click to expand...
Click to collapse
Yes, another vote for Lux. It lets you set brightness to negative levels, mine is usually around -50%. https://play.google.com/store/apps/details?id=com.vito.lux&hl=en
Vote for Lux here too.
Nothing comes close
camaro322hp said:
Yes, another vote for Lux. It lets you set brightness to negative levels, mine is usually around -50%. https://play.google.com/store/apps/details?id=com.vito.lux&hl=en
Click to expand...
Click to collapse
Thanks for the hint. I tried the Lite version and AFAICS it simply uses the same trick as ScreenFilter and other "sub-zero" regulators, putting an alpha overlay on top of the image stack.
You can identify this kludge easily by looking at the button areas, they don't get darker anymore. And you can see the black level not getting real black, i.e. the power consumption is not reduced.
However, Lux seems to be one of the better toys because of the plugin interface. Unfortunately there is no HW plugin for Sony devices but judging by the quick look at the Nexus-4 plugin (it's open source!!) it should be possible to adopt this method to Z1 as well. So, maybe when someone could eventually implement that.
xposed Modul "minimum brightness" works, i tested it for you. you can make the screen dim to complete black with your normal display brightness slider without grey or black overlay. it just sets down the minimum brightness level to 1 or 0 (default is 10 or 20), so it should also work with enabled auto brightness
chertVdetali said:
I looked around for possible solutions and there is a trick with writting a new value of current limit to Linux settings (some mA value between 0 and 20 to some max_current file in procfs). And this really helps but also impacts the maximum brightness, the screen is hardly ready in sun light with reduced current.
Click to expand...
Click to collapse
As far as i remember, /proc is only used to call upon information, not to set specific values. What you are looking for is placed within /sys.
To be precise in /sys/devices/leds-qpnp-ee125e00/leds/wled:backlight/. There you will find a file called max_current with which you can easily control the brightness and set it to a very low level. Note that this actually dims the screen and not just applies a filter like most apps do...
One drawback is that the value will change again after you restarted the device. I set up a little flow with Automate β that takes care of this for me. I find this solution a lot better than all the screen filter apps.
This is true for CyanogenMod 11 and GreatDevs Kernel. It might be different on Stock. I know that the path for my Nexus 7 is sys/class/leds/lcd-backlight.
I hope this helps you a little bit.
rob rich said:
xposed Modul "minimum brightness" works, i tested it for you. you can make the screen dim to complete black with your normal display brightness slider without grey or black overlay. it just sets down the minimum brightness level to 1 or 0 (default is 10 or 20), so it should also work with enabled auto brightness
Click to expand...
Click to collapse
I am wondering how you can claim that the result is complete black. Calling this black is like saying "TN monitors have good black values" (I know such people, they change their mind quickly when they see my Eizo with a VA panel at night).
No, seriously, the default was already 10 (see config.xml in cm11 repo) and the difference between 1 and 10 is hardly visible. It's still way too bright for work without eye strain in the darkness.
@Wooaarr: thanks, this is apparently the way to go, I just need to find time to configure it. And yes, of course, the file is in sysfs and not procfs (automated typing, when I grew up with Linux there was no sysfs out there ).
chertVdetali said:
I am wondering how you can claim that the result is complete black. Calling this black is like saying "TN monitors have good black values" (I know such people, they change their mind quickly when they see my Eizo with a VA panel at night).
No, seriously, the default was already 10 (see config.xml in cm11 repo) and the difference between 1 and 10 is hardly visible. It's still way too bright for work without eye strain in the darkness.
@Wooaarr: thanks, this is apparently the way to go, I just need to find time to configure it. And yes, of course, the file is in sysfs and not procfs (automated typing, when I grew up with Linux there was no sysfs out there ).
Click to expand...
Click to collapse
when i disable autobrightness and push the slider to the left my screen goes completely off, so you wanna say that screen off isnt black? funny
chertVdetali said:
Thanks for the hint. I tried the Lite version and AFAICS it simply uses the same trick as ScreenFilter and other "sub-zero" regulators, putting an alpha overlay on top of the image stack.
You can identify this kludge easily by looking at the button areas, they don't get darker anymore. And you can see the black level not getting real black, i.e. the power consumption is not reduced.
However, Lux seems to be one of the better toys because of the plugin interface. Unfortunately there is no HW plugin for Sony devices but judging by the quick look at the Nexus-4 plugin (it's open source!!) it should be possible to adopt this method to Z1 as well. So, maybe when someone could eventually implement that.
Click to expand...
Click to collapse
Interesting information, I did not know that. You are correct, the navigation buttons are brighter than the rest of the screen at negative values. I had noticed that before but didn't know why. Works well enough for me though.
rob rich said:
when i disable autobrightness and push the slider to the left my screen goes completely off, so you wanna say that screen off isnt black? funny
Click to expand...
Click to collapse
Well, you claim that it works for me because you tested it on your device. So... yeah, why not, I could say what you mentioned above just following the same logics. :silly:

Brightness: no change from 0 - 12%

Note 8.0 N5110 (WiFi), CyanogenMod 13. I've never used the stock firmware.
There is no gradual change of the screen brightnees on my device from 0 - 12%, the brightness remains the same when i move the slider until 12%.
Then after moving the slider to about 13% the brightness "jumps" to that value at once.
This is the same when using the system brightness slider (that does not show the percentage) and the apps: Display Brightness & ScreenDim (both with a percentage slider).
Does anybody else have a similar issue under CM13 (or CM12/11, or the stock firmware)?
How could i solve this?
nicky-xda said:
Note 8.0 WiFi, CyanogenMod 13. I've never used the stock firmware. There is no gradual change of the screen brightnees on my device from 0 - 12%, the brightness remains the same when i move the slider until 12%. Then after moving the slider to about 13% the brightness "jumps" to that value at once. This is the same when using the system brightness slider (that does not show the percentage) and the apps: Display Brightness & ScreenDim (both with a percentage slider). Does anybody else have a similar issue under CM13 (or CM12/11, or the stock fiemware)? How could i solve this?
Click to expand...
Click to collapse
when you say "note 8.0 wifi" do you mean n5110? It's probably not something that can be fixed by a user.
Yes, N5110.
Sure, i can imagine that it'd be not easy to fix by a user. But i'm still very much interested to at least know...
- if it's a hardware "feature" of my device/display only, independant of the installed ROM or
- a generall bug of CM13 on the note 8 or a bug of CM13 on my device only or
- a quite different thing that could cause that?
That's why my question again: does anybody of you guys here experience a similar issue under any ROM having no change of the display brightness when moving the slider between 0 - 12%?
nicky-xda said:
Yes, N5110.
Sure, i can imagine that it'd be not easy to fix by a user. But i'm still very much interested to at least know...
- if it's a hardware "feature" of my device/display only, independant of the installed ROM or
- a generall bug of CM13 on the note 8 or a bug of CM13 on my device only or
- a quite different thing that could cause that?
That's why my question again: does anybody of you guys here experience a similar issue under any ROM having no change of the display brightness when moving the slider between 0 - 12%?
Click to expand...
Click to collapse
Using latest RR 5.7.4 my n5110 acts as yours, nothing happens until around 12%. I don't really think it's a problem, just the zero value on the slider is incorrectly set.
I made a build of RR tonight with a tentative change to hopefully fix this, but it made no change.
This change from S4 gives a clue that it's panel doesn't go below a certain value http://review.cyanogenmod.org/#/c/158859/ so I tried adding this.
I've always found the brightness slider to be weird on note 8 (compared to my S4)., but my problem was more the non-linearity of the slider. I only have experience of stock (4.2/4.4) and CM13 myself, so would be interested in how LL based roms sliders function.
Thanks a lot, i'm "glad" to know this is not only my device with this weird acting
...just the zero value on the slider is incorrectly set...
Click to expand...
Click to collapse
Sure, probably something of that kind.
But what's strange is the following: the above mentioned (btw: excellent) App "Display Brightness 5.1" is able to "dim" the brightness below the value of "0" setting a color layer over the screen.
This app begins to put its "below-0-layer" exactly at the value of 0 on its percentage slider and not at 12%. So it seems that this app actually takes the system-brightness of 0% as the "real" 0 and not the value of 12%. And the app is not able to change the brightness between 0 - 12% either.

Capacitive button brightness?

Is there a way to customize the capacitive button’s brightness?(maybe by editing XML or all file?) I found an app in play store that can set brightness to maximum but there's still some minor bug. Plus I'd prefer to modify the system file on my own than having an app running background the whole time.
Any help would be appreciated.
BrianKuo1853 said:
Is there a way to customize the capacitive button’s brightness?(maybe by editing XML or all file?) I found an app in play store that can set brightness to maximum but there's still some minor bug. Plus I'd prefer to modify the system file on my own than having an app running background the whole time.
Any help would be appreciated.
Click to expand...
Click to collapse
the brightness is controlled by the light sensor..the darker it is the lower the brighter the higher the brightness of the capactive buttonbrightness.
back on the m7 there was a seperate array in framework-res.apk that you could easily configure.
Now it's working a bit different. only way to modify is add some custom code in AutomaticBrightnessController (services.jar).
..or flash our rom, we have it configurable:
j to the 4n said:
the brightness is controlled by the light sensor..the darker it is the lower the brighter the higher the brightness of the capactive buttonbrightness.
back on the m7 there was a seperate array in framework-res.apk that you could easily configure.
Now it's working a bit different. only way to modify is add some custom code in AutomaticBrightnessController (services.jar).
..or flash our rom, we have it configurable:
Click to expand...
Click to collapse
ayyy
I worked around a little bit, found the file at /sys/class/led/button-backlight
Hope this helps anyway.
BrianKuo1853 said:
ayyy
I worked around a little bit, found the file at /sys/class/led/button-backlight
Hope this helps anyway.
Click to expand...
Click to collapse
Could have tell you that...but as said once the lightsensor value changes the file will change.
you could change it to your desired value..then chmod it to read only...but I doubt you will find a satisfying value that fits in the dark and bright

Categories

Resources