[Q]Changing Brightness of Notification LED while H/W button pressed!!! - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Hi,
Xperia Ray(ST18i) user might noticed the Notification LED turns on( in white color) everytime whenever a H/W button is used(even the touch menu/back). I wonder someone could lower its brightness. I did some tweaks:
>> I put /etc/init.d/01BrightLedtweak.sh
i noticed the values are for green,red,blue
#!/system/bin/sh
#
# Increase LED brightness
echo 20000 > /sys/class/leds/green/max_current
echo 20000 > /sys/class/leds/red/max_current
echo 20000 > /sys/class/leds/blue/max_current
Click to expand...
Click to collapse
>> My pre_hw_config.sh on /system/etc is:
# LMU AS3676 Configuration before chargemon
dev=/sys/devices/i2c-0/0-0040/leds/
echo 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 20000 > $dev/lcd-backlight/max_current
echo 2400 > $dev/red/max_current
echo 4200 > $dev/green/max_current
echo 3000 > $dev/blue/max_current
Click to expand...
Click to collapse
Device: Xperia Ray (ST18i)
Rom: ICED BEAN 3.0
Kernel: xKernel 9.587-C
(Rooted and BL Unlocked)
SO HOW TO LOWER THE BRIGHTNESS OF THE SPECIFIC WHITE COLOR? ( more like pinkish white )

IronBlossom said:
Hi,
Xperia Ray(ST18i) user might noticed the Notification LED turns on( in white color) everytime whenever a H/W button is used(even the touch menu/back). I wonder someone could lower its brightness. I did some tweaks:
>> I put /etc/init.d/01BrightLedtweak.sh
i noticed the values are for green,red,blue
>> My pre_hw_config.sh on /system/etc is:
Device: Xperia Ray (ST18i)
Rom: ICED BEAN 3.0
Kernel: xKernel 9.587-C
(Rooted and BL Unlocked)
SO HOW TO LOWER THE BRIGHTNESS OF THE SPECIFIC WHITE COLOR? ( more like pinkish white )
Click to expand...
Click to collapse
Have you tried to change those values? Have you tried putting values for some other color like yellow, cyan, purple etc?

Related

RAMDISK.TAR a few issue's to resolve.

I have noticed that developers here like to shove VM and Cpu setting into the init.delta.sh file.
The problem with this is compatibility.. for example using the smart ass govender with these settings...
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 614400 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
Click to expand...
Click to collapse
Will most definitely cause issue's where the frequency will get stuck.
Why not make it possible to rather edit these value's externally.
as these can also be called from hw_config.sh there by causing less problems when users try to make 3'rd party changes.

[Q] Backlight settings for CM7

Has anyone played with the backlight settings for the Atrix on CM7 pre4 yet? I'm looking to set the brightness down some as it seems too bright to me, but I'm looking for a starting point if someone has one.
Thanks.
i personally use auto brightness, it works great for me... BUT, you might be interested in this thread here, since it allows you to modify the brightness beyond factory settings (maybe even beyond CM7 settings!)
http://forum.xda-developers.com/showthread.php?t=1245332
Alcapone263 said:
i personally use auto brightness, it works great for me... BUT, you might be interested in this thread here, since it allows you to modify the brightness beyond factory settings (maybe even beyond CM7 settings!)
http://forum.xda-developers.com/showthread.php?t=1245332
Click to expand...
Click to collapse
Yea I'm using the auto brightness as well but you can set the levels for the auto brightness to be custom. I'm finding the auto brightness to be too bright in most cases so I want to turn it down.
Alcapone263 said:
i personally use auto brightness, it works great for me... BUT, you might be interested in this thread here, since it allows you to modify the brightness beyond factory settings (maybe even beyond CM7 settings!)
http://forum.xda-developers.com/showthread.php?t=1245332
Click to expand...
Click to collapse
Keying off the link above, I wrote this "noob" script to toggle LCD backlight level from my home screen with a Script Manager widget. It's basically one touch to toggle and another to exit.
#!/bin/sh
# Toggle LCD backlight setting
cd /sys/bus/i2c/drivers/lm3532/0-0038/leds/lcd-backlight
#First show brightness level
echo Brightness= `more brightness 2>&1`
if [ -f /usr/local/sbin/lowlight.txt ]
then
LEVEL=`cat /usr/local/sbin/lowlight.txt`
else
echo 17 1F > /usr/local/sbin/lowlight.txt
fi
if [ "$LEVEL" = "17 00" ]
then
echo "Setting backlight high..."
echo 17 1F > registers
grep CTRL_A_FS_CURR_REG registers 2>&1
echo 17 1F > /usr/local/sbin/lowlight.txt
elif [ "$LEVEL" = "17 1F" ]
then
echo "Setting backlight low..."
echo 17 00 > registers
grep CTRL_A_FS_CURR_REG registers 2>&1
echo 17 00 > /usr/local/sbin/lowlight.txt
fi

(Need Root)Enable Automatic Light Sensor on Xperia Ray

I've found the way to enable ALS on Ray:
Using root explorer Change this value in hw_config.sh(inside system/etc):
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds/
echo 0,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 12900 > $dev/torch/max_current
To
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds/
echo 3,2,2,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 12900 > $dev/torch/max_current​
Optional:replace als_curve.ini with the one i provide(is from arc):for me is better.
UPDATE:I've deleted the "als_curve.inf" from phone and changed
echo 3,2,2,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
to
echo 1,1,1,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
now backlight seem more"wide range".
UPDATE: New CWM version added(InstallazioneALS_Xperia_Ray.zip):flash via recovery.
UPDATE:In official ics 4.0.4 i found the best way is to delete als_curve.inf (after change echo 1,1,1,0 )
UPDATE 08/November: for a fast response (istantaneous dim change) flash (Fast Response)InstallazioneALS_Xperia_Ray.zip
If you like my work make a donation(51% will be donate to UNICEF):
EVERY DAY CHILDREN DIE NEEDLESSY!!!
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Q94WGHC4F2DH2
where to find hw_config.sh in my system folder?
i found it, but...how to test?
memazy said:
where to find hw_config.sh in my system folder?
i found it, but...how to test?
Click to expand...
Click to collapse
You'll see the screen became more brigth when the ambient light rise,and viceversa..
memazy said:
where to find hw_config.sh in my system folder?
i found it, but...how to test?
Click to expand...
Click to collapse
Both of the files, hw_config.sh and als_curve.conf, are in /system/etc.
Sent from my ST18i using Tapatalk
arcatarc said:
I've found the way to enable ALS on Ray.​
Click to expand...
Click to collapse
works! thanks.
Auto-bright stay more sensitive than before.
note: if you replace original als_curve.conf don't forget to set right permissions! rw-r-r. See it at original file before replacing.​
Not working for me. Changed it to 3,2,2,0, rebooted and yet no avail.
Edit: !! One can check that light sensor is working fine through service menu (call *#*#7378423#*#*) -> Service tests -> Ambient light sensor. It shows the sensor output and one can play covering the sensor to see as value changes. So, the Ray has a working sensor after all, but it is not used?
zstoichev said:
So, the Ray has a working sensor after all, but it is not used?
Click to expand...
Click to collapse
sensor works. auto-brightness works. but slightly. you can take a torch and to light on a sensor, having covered the screen with a hand. screen will change brightness.
yeah, I saw it "working"... with a step or two at most. I am really disappointed by how SE implemented this. Even the brightness manual slider seams to have 15-16 steps, i.e. it's not smooth. I had a HTC Hero and auto-brightness/slider were flawless.
It works. Good job~
good job thanks!!!
great !!! working perfect !
Q: how to enable ?
OK, sensor now working ( tested in service menu )
Unfortunately, I do not see the possibility of its use - especially for automatic brightness adjustment desktop. There is no option to set AUTOMATIC BRIGHTNESS. I tried a few widgets and even though I always set AUTO, never worked ...
How do in practice this now-functional sensor to use?
THX
radek.kaplan said:
OK, sensor now working ( tested in service menu )
Unfortunately, I do not see the possibility of its use - especially for automatic brightness adjustment desktop. There is no option to set AUTOMATIC BRIGHTNESS. I tried a few widgets and even though I always set AUTO, never worked ...
How do in practice this now-functional sensor to use?
THX
Click to expand...
Click to collapse
Hi, to work well you must edit the file. sh, and replace with:http://forum.xda-developers.com/attachment.php?attachmentid=805848&d=1323082156 , then, in the state switch, option 2 is what gives the brightness automatically, try putting a lamp and then covering the sensor with your finger and see as changing the brightness automatically, for me it worked great, greetings.
sorry bad English, I use google translator ñ_ñ
Can You do this for Mini Pro? In Mini Pro is another hw_config.sh and i dont know how to do it, my sensor doesnt work :/
http://dl.dropbox.com/u/12061271/hw_config.sh
efx_d3 said:
Hi, to work well you must edit the file. sh, and replace with:http://forum.xda-developers.com/attachment.php?attachmentid=805848&d=1323082156 , then, in the state switch, option 2 is what gives the brightness automatically, try putting a lamp and then covering the sensor with your finger and see as changing the brightness automatically, for me it worked great, greetings.
sorry bad English, I use google translator ñ_ñ
Click to expand...
Click to collapse
I don't understand what you mean with this?
Bazonga said:
I don't understand what you mean with this?
Click to expand...
Click to collapse
1.-arcatarc follow steps.
2.- edit file, Using root explorer Change this value in hw_config.sh(inside system/etc):
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds/
echo 0,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 12900 > $dev/torch/max_current
To
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds/
echo 3,2,2,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 12900 > $dev/torch/max_current[/LEFT]
IMPORTANT :Optional:replace als_curve.ini with the one i provide(is from arc):for me is better. (with this works best for me also)
link download : http://forum.xda-developers.com/attachment.php?attachmentid=805848&d=1323082156
Both of the files, hw_config.sh and als_curve.conf, are in /system/etc.
to try:
1 .- Use light switch widget.
2 .- Second tap the widget ( i use extended control) is auto brightness.
3 .- Try a flashlight and see how it works the brightness automatically.
I hope it is clear to you, greetings.
I may not understand because I do not speak English, my language is Spanish and use a translator,
xda took months just by using the google translator
sorry for bad writing in English
Thanks, but I just don't understand which widget i have to use? What do you mean with "option 2"? I only have the brightness on/off switch and the state switch with airplane mode, gps, bluetooth etc but no brightness??
THis thread make my Xray so good, thanks for your great post
You're english is fine.
---------- Post added at 11:41 PM ---------- Previous post was at 11:38 PM ----------
Bazonga said:
Thanks, but I just don't understand which widget i have to use? What do you mean with "option 2"? I only have the brightness on/off switch and the state switch with airplane mode, gps, bluetooth etc but no brightness??
Click to expand...
Click to collapse
I suppose he means, that you can check the functionality by using a freeware widget like Backlight! Launcher: Set the display brightness to "A" (auto) and the sensor would adapt the brightness of your screen depending on your environment.
I checked the sensor in the service menu and it's running, but I didn't see a change when I use a flashlight or my hand.
Does it belong to a special widget?
I have choosen the Backlight on/off widget and changed it to off and on again and I used the named brightness widget.
I don't see any changes in automatic brightness with this trick and additional widget, even though the ALS did worked from device test. Help?
EDIT: It works now! just having a wrong angle before when checking. as long as the Brightness is not set at the lowest then it would work. Thanks!
sent from my little red phone using XDA App

[Q] [Xperia P] how to increase LED shine on transparent line

Hi all,
does anybody know what to change in system to increase light of keys?? thanks for answer
It's connected to screen brightness. If you set your screen brightness higher, the LED bar will be brighter as well... And the other way around.
good point but I need to increase just keylight, it has to be changeable in some text file in system but I have no idea where..
OK, so I found it
It is in sys/class/leds/so34-led1 & so34-led2 & so34-led0 /brightness & max_brightness
but when I change number in brightness from stock 45 to 150 and save, then it's lighting more, but after close Root explorer, it's the same like before and it will return to 45.. what should I do? make init.d skript??
i also tried it, But same thing happens Value gets Changed to default,,,
can any script b made,,,
I think we should find some configuration file for auto brightness, coz the value in bightness file is changing by current light
ok, so I made init.d script, it actually works, but just until normal automatic change of brightness (for example, when turn screen off, or with light sensor changes..) you can't see any changes on startup too, so you have to force start the script (via root explorer click on script and choose "open with Linux Script handler" and then choose "execute", then the lights will be brighter, you can try it for test
Code:
#!/system/bin/sh
echo 255 > /sys/class/leds/so34-led0/brightness
echo 255 > /sys/class/leds/so34-led1/brightness
echo 255 > /sys/class/leds/so34-led2/brightness
but I think I should make different script.. unfortunatelly I don't know where is some configuration file for control of leds or light sensor or something.. I am just a nooby yet..

[Q] Command-line LED Control and LED Colours

Hi,
I'm a I9300 rooted user using CM10 nightly at the minute - I'm wanting to use my S3's LEDs a bit more and have found that applications for this functionality such as Lightflow works sporadically and have found that Tasker itself is a much easier way to control led's by executing commands to the led_pattern etc. files (I found the LED notification methods in Tasker also to be sporadic whilst executing a shell command works perfectly every time).
Anyway - I have figured out the following commands to achieve the following effects:
* LED OFF = echo 0 > /sys/devices/virtual/sec/led/led_pattern
* Red Solid LED = echo 1 > /sys/devices/virtual/sec/led/led_pattern
* Red Fast Blink LED = echo 2 > /sys/devices/virtual/sec/led/led_pattern
* Blue Slow LED = echo 3 > /sys/devices/virtual/sec/led/led_pattern
* Red Slow LED = echo 4 > /sys/devices/virtual/sec/led/led_pattern
* Green Solid LED = echo 5 > /sys/devices/virtual/sec/led/led_pattern
* Blue Solid LED = echo 6 > /sys/devices/virtual/sec/led/led_pattern
Does anybody have references to obtain more colours (should be able to 'mix' r/g/b as per Lightflow but I'm struggling to achieve this) or any other references in manipulating led_g, led_b, led_r, led_blink, etc?
Thanks!
http://forum.xda-developers.com/showthread.php?t=1735331
hi, send here to a thread or the author

Categories

Resources