Set display color temperature with shell script. - Huawei Mate S

Want to share my findings to all tasker lovers out there. I find out that you can change the color temperature with this shell script:
This for stock settings:
echo '32768,0,0,0,32768,0,0,0,32768' > /sys/devices/virtual/graphics/fb0/lcd_color_temperature
This is for max. warm settings:
echo '32768,0,0,0,32768,0,0,0,29491' > /sys/devices/virtual/graphics/fb0/lcd_color_temperature
When I find out more I will let you know.
Ok next one...
Flash front photo led:
echo > 1 /sys/class/leds/torch_front/brightness
0 for off; 1-9 for higher brightness until max.
Next I search for dimming led brightness...
Hope more developers will start on Mate S
Gesendet von meinem HUAWEI CRR-L09 mit Tapatalk

bgx said:
Want to share my findings to all tasker lovers out there. I find out that you can change the color temperature with this shell script:
This for stock settings:
echo '32768,0,0,0,32768,0,0,0,32768' > /sys/devices/virtual/graphics/fb0/lcd_color_temperature
This is for max. warm settings:
echo '32768,0,0,0,32768,0,0,0,29491' > /sys/devices/virtual/graphics/fb0/lcd_color_temperature
When I find out more I will let you know.
Next I search for dimming led brightness...
Hope more developers will start on Mate S
Gesendet von meinem HUAWEI CRR-L09 mit Tapatalk
Click to expand...
Click to collapse
Nice one!
Yeah i hope so. I would love to see some roms. Can't stand the lock screen for example. No spotify controls..bah! How stupid!

Edit OP; Next finding; How to flash front photo led...

Related

[Q] LCD Density

Hi Guys,
is it possible to change lcd density in our lg 4x? can we use a tablet ui same as paranoid android rom? i have read in some forums that changing lcd density with lcd modder or other programs cause brick the phone...
sorry for my english :cyclops:
You can try to go to /system/build.prob with Root explorer and change the value.
ro.sf.lcd_density=
and
ro.sf.hw_lcd_density=
Safe and Reboot.
Tipp: You like Tablet UI then take a smaller value!
you need to go all the way down to 120dpi, to enable tabletUI as the 720dpi resolution needs to be there (technical explanation not available)
but im currently trying to make it work, but several widgets and LG launcher do not support lower density values to work, so im trying to hack the resolution to enable tabletUI and still retain an acceptable resolution at 200 or 240, but tablet menu goes out of the screen.
but it works.
it will be a custom rom to enable this feature, since deodex'ing is required.
Try a other launcher(Trebuchet).
Gesendet von meinem LG-P880 mit Tapatalk 2
S1ay3r666 said:
Try a other launcher(Trebuchet).
Gesendet von meinem LG-P880 mit Tapatalk 2
Click to expand...
Click to collapse
that will not solve the tabletUI and the missing navigation bar at the bottom, a combination of dpi120+trebuchet is ok, but at 120, buttons are pretty much for children fingers or women?
and you need to disable the hw softbutton at the bottom, right? (can be done removing lights.x3.so from hw/ folder
Optimus 2x = 240 density.
Softbuttons?
On Trebuchet launcher are no virtual buttons!
Gesendet von meinem LG-P880 mit Tapatalk 2
S1ay3r666 said:
Optimus 2x = 240 density.
Softbuttons?
On Trebuchet launcher are no virtual buttons!
Gesendet von meinem LG-P880 mit Tapatalk 2
Click to expand...
Click to collapse
virtual buttons are androidOS related, and will enable at a DPI of 721 with ICS. so going to 120dpi in the build.prop will activate them and remove systembar and movable softbottoms.
but you are left with the hardware buttons which again can be disabled with the light driver and the keylayout being 0'd.
I am working on the tabletUI version, so for those interested, a custom rom with fixes for tabletUI and using apex launcher will help. and fixed for running any dpi with tabletui enabled.

Strange display contrast delay

Sorry for my english..
when I switch from an app with black screen (notification bar xda app etc etc) to a bright one.. Like whatsapp I see a strange thing... There is less contrast for 0.5sec then contrast is perfect and all is normal...
I don't know if you understand what I mean...
Is this normal? Or is a fault display?
Happens with stock and cyano... Full brightness and at lowest brightness...
thx for the replay
drigerott said:
Sorry for my english..
when I switch from an app with black screen (notification bar xda app etc etc) to a bright one.. Like whatsapp I see a strange thing... There is less contrast for 0.5sec then contrast is perfect and all is normal...
I don't know if you understand what I mean...
Is this normal? Or is a fault display?
Happens with stock and cyano... Full brightness and at lowest brightness...
thx for the replay
Click to expand...
Click to collapse
Thermal throttling is normally given as the answer to this.
Thanks for the fast replay... Then I must change my device? Or it'snormal
drigerott said:
Thanks for the fast replay... Then I must change my device? Or it'snormal
Click to expand...
Click to collapse
Its normal, but there are ways to change the way it does it, I am not an expert but if you root you can start to cange values. Search for thermal throttling values and you will hit a good thread about.
Yes I have root.. But I didn't understand.. For thermal throttle you mean cpu? Or even the display?
cause I don't have problem with multitask or other.. Only this strange problem that image quality is not perfect when switching to dark image to bright one.. But for less then a second.. But is frustrating and strange
drigerott said:
Yes I have root.. But I didn't understand.. For thermal throttle you mean cpu? Or even the display?
cause I don't have problem with multitask or other.. Only this strange problem that image quality is not perfect when switching to dark image to bright one.. But for less then a second.. But is frustrating and strange
Click to expand...
Click to collapse
as i said i am not an expert, but if you search in this forum you will find other threads that will give you information on which files to modify and how to do it...
gregbradley said:
as i said i am not an expert, but if you search in this forum you will find other threads that will give you information on which files to modify and how to do it...
Click to expand...
Click to collapse
ok i found some 3d about termal throttle and is not my problem.. i tried different mod but nothig...
i uploaded a video to show my problem ...
see the contrast change?
is not brightness...it's contrast that changes...
Yes, a have this effect too. I`ve changed brightness values at system/etc/sysmon.cfg, to a maximum values, after that screen doesn`t changing brightness when device is more hot, but this effect like in this video, is still exists! This contrast shading are not a termal throttling, this is something else, i don`t know exactly what it is.
i'm not alone then...
with cyanogenmod is so more evident...
tomorrow i'll turn on another one in my shop and see if is all xperia t like this...
anyway if some other has this strange problem, plz post here ^^ (maybe is a software fault)
Maybe a refresh issue?
when i scroll a page on black background with white txt.. the txt becomes greysh... if you scroll slowly remains white... happens to you too?
drigerott said:
Maybe a refresh issue?
when i scroll a page on black background with white txt.. the txt becomes greysh... if you scroll slowly remains white... happens to you too?
Click to expand...
Click to collapse
I don`t think it`s a refresh rate, but maybe i`n wrong.
And, yes, i have the same issues, and the screen is shading and becomes bright again all the time. Especially this happening when i try to open something or to enter at one of the bookmarks of phone menu, and when the phone "thinking", screen is shading, but then it becomes brighter again. I`m reaaly don`t know what it ies, but it`s not because of a thermal, 100%! I already changed the values of a brightness. I`m sure that all Xperia T phones are with the same issues, it`s bacause of a something in soft.
It has nothing to do with gpu.
Here is data sheet for AS3676 - www1.futureelectronics.com/doc/AUSTRIAMICROSYSTEMS/AS3676.pdf
And here is what DLS is from the data sheet -
8.4.9 DLS - Dynamic Luminance Scaling Input
The pin GPIO1/DLS can be used for dynamic backlight scaling input. Dynamic backlight scaling is used to reduce the power of the backlight especially when showing dark picture contents on the display. The control unit to operate DLS is the display processor sending a PWM signal to the AS3676 and in parallel changing the display content to compen- sate for a reduced brightness backlight.
DLS can be turned off in /system/etc/pre_hw_config.sh -
echo 0 > /sys/class/leds/led_1-lcd/use_dls
echo 0 > /sys/class/leds/led_2-lcd/use_dls
Is it save to turn DLS off ?
Sent from my LT30p using xda app-developers app
peetr_ said:
It has nothing to do with gpu.
Here is data sheet for AS3676 - www1.futureelectronics.com/doc/AUSTRIAMICROSYSTEMS/AS3676.pdf
And here is what DLS is from the data sheet -
8.4.9 DLS - Dynamic Luminance Scaling Input
The pin GPIO1/DLS can be used for dynamic backlight scaling input. Dynamic backlight scaling is used to reduce the power of the backlight especially when showing dark picture contents on the display. The control unit to operate DLS is the display processor sending a PWM signal to the AS3676 and in parallel changing the display content to compen- sate for a reduced brightness backlight.
DLS can be turned off in /system/etc/pre_hw_config.sh -
echo 0 > /sys/class/leds/led_1-lcd/use_dls
echo 0 > /sys/class/leds/led_2-lcd/use_dls
Click to expand...
Click to collapse
great find.. any way yesterday i turned on 5 new xperia t in my shop and all do like mine... that is DSL like peetr say..
but the annoying thing is that on cm10 (that all the ui is gray/dark) DSL is too much visible...) now i'll try to disable it.. i'll report if works
EDIT: still the same..
I don't get how to turn DLS off, what value should i change to turn it off ?
Sent from my LT30p using xda app-developers app
you must edit the file in /system/etc/pre_hw_config.sh
with root explorer or similar and change thise line: (0 instead of 1)
echo 0 > /sys/class/leds/led_1-lcd/use_dls
echo 0 > /sys/class/leds/led_2-lcd/use_dls
0 instead of 1 , and what should i set instead of 2 ? 0 too ?
And, is this save ???
Sent from my LT30p using xda app-developers app
Finally, this will have effect or no?
Because maybe we all have this issue.
Sent from my LT30p using xda premium
all xperia t works like i posted in the video (infact i tried 5 new xperia t all the same)
but that mod is not working.. for me is still the same..
DennisDD78 said:
0 instead of 1 , and what should i set instead of 2 ? 0 too ?
And, is this save ???
Sent from my LT30p using xda app-developers app
Click to expand...
Click to collapse
this is stock
echo 1 > /sys/class/leds/led_1-lcd/use_dls
echo 1 > /sys/class/leds/led_2-lcd/use_dls
change in to this:
echo 0 > /sys/class/leds/led_1-lcd/use_dls
echo 0 > /sys/class/leds/led_2-lcd/use_dls
but i see no difference..

[Root Required]Min Brightness Enabler

The nexus 6 gets pretty dim, but you can make it dimmer than the slider allows.
Attached is an APK which will do it when opened. All it does is run the following command:
Code:
echo 1 > /sys/devices/fd900000.qcom,mdss_mdp/qcom,mdss_fb_primary.164/leds/lcd-backlight/brightness
I'm unsure how to get it to persist through turning the screen off and back on (it goes back to the default min brightness if you do this).
Full Source is available here:
https://github.com/chrisj951/MinBrightness
ChrisJ951 said:
The nexus 6 gets pretty dim, but you can make it dimmer than the slider allows.
Attached is an APK which will do it when opened. All it does is run the following command:
Code:
echo 1 > /sys/devices/fd900000.qcom,mdss_mdp/qcom,mdss_fb_primary.164/leds/lcd-backlight/brightness
I'm unsure how to get it to persist through turning the screen off and back on (it goes back to the default min brightness if you do this).
Full Source is available here:
https://github.com/chrisj951/MinBrightness
Click to expand...
Click to collapse
That's awesome, thanks. Is there any was to make the maximum brightness higher?
SeanPlunk said:
That's awesome, thanks. Is there any was to make the maximum brightness higher?
Click to expand...
Click to collapse
Still been trying to figure that out. It seems as that making it brighter may require building the OS or kernel from source to do.
You can also download Screen Filter ( no root required).... I use this at night when I'm in my car and don't want that bright glow on my face
irock1985 said:
You can also download Screen Filter ( no root required).... I use this at night when I'm in my car and don't want that bright glow on my face
Click to expand...
Click to collapse
Great app. Thanks for the tip.

Xperia z1 screen brightness change itself even auto brightness is disable

Hello,
I have a sony xperia z1. I found a problem that I dont know its is a bug or problem in my phone or system optimization.
my phone 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.
some example is in dark background or pages, or when open the notification bar, or when create a folder in apps menu and open the folder to view folder.
do any one have this problem? is it a bug or hardware issue or system optimization?
does anybody have idea?
Sony technology can't turn it off on z1c same situation better to leave this on because on dark places your screen will be darker and without this option will be lighter
Wysłane z mojego D5503 przy użyciu Tapatalka
alvlin said:
Hello,
I have a sony xperia z1. I found a problem that I dont know its is a bug or problem in my phone or system optimization.
my phone 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.
some example is in dark background or pages, or when open the notification bar, or when create a folder in apps menu and open the folder to view folder.
do any one have this problem? is it a bug or hardware issue or system optimization?
Click to expand...
Click to collapse
Maybe this is a bug
It's happen for me when Auto Brightness Off and set Brightness to maximum level, it's sometimes still decrease brightness itself
For solution, I change brightness value using this via terminal emulator/script manager, need root
echo 25 > /sys/class/leds/wled:backlight/max_current
mosespl said:
Sony technology can't turn it off on z1c same situation better to leave this on because on dark places your screen will be darker and without this option will be lighter
Wysłane z mojego D5503 przy użyciu Tapatalka
Click to expand...
Click to collapse
dear Mosespl, can we turn this feature off in xperia Z1?
Yenkazu said:
Maybe this is a bug
It's happen for me when Auto Brightness Off and set Brightness to maximum level, it's sometimes still decrease brightness itself
For solution, I change brightness value using this via terminal emulator/script manager, need root
echo 25 > /sys/class/leds/wled:backlight/max_current
Click to expand...
Click to collapse
dear Yenkazu, my phone is rooted, but I never worked before with terminal emulator. how can do it?
alvlin said:
dear Yenkazu, my phone is rooted, but I never worked before with terminal emulator. how can do it?
Click to expand...
Click to collapse
su [enter]
type the code above [enter]
If you feel the brightness it's too much for you, try lowering the 25 value
Yenkazu said:
su [enter]
type the code above [enter]
If you feel the brightness it's too much for you, try lowering the 25 value
Click to expand...
Click to collapse
thank you so much.

Android original lock screen

IF someone is able to remove this silly huawei lock screen let me know. Guess you have to modify .jar files or so. I want the real android l lock screen with spotify control. Or can we add spotify control to lockscreen somehow? Cant set it to default music player. Wierd how just some players can be set as default?
Skickat från min HUAWEI CRR-L09 via Tapatalk
I have the same problem too.
I found no solution yet.
Is there anyone who could help?
me tooooooooooo:crying::crying:
magazine unlock is beautiful
Noooo ??
Gesendet von meinem HUAWEI CRR-L09 mit Tapatalk

Categories

Resources