yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] connta:
i found that for flash 125000 is the best setting, its very bright and setting it above really is not needed yet the battery draw is normal and the led wont burn out since thats the half of normal flash strength when taking photos... tho flash is used in snaps half of that should be ok for longer continuous use with flashlight...
[Sony Cross-Device General] efex92:
What about Xperia SP..? is there any confirm reports as to whether or not its working properly on XSP.
[Sony Cross-Device General] Dragoss91:
I just edited this file /system/etc/flashled_calc_parameters.cfg

# LED If setting for Torch or video recording (uA).

if_torch_vr = 100000 and 50000

no results , rebooted phone , same light as normal , am I doing something wrong ? :-/
[Sony Cross-Device General] Dragoss91:
nvm works now
[Sony Cross-Device General] Dragoss91:
I tried changing max_brightness to 511 on blue led wich is 341 but it doesn't stick , and if I put premissions 777 it goes to 255 and still doesnt stick .

Tried also echo method but doesn't work , it says no such file . :-/
[Sony Cross-Device General] Dragoss91:
I reflashed rom and did this mod again , but is not working anymore , I rebooted and doesn't apply anymore , is like cached somewhere with default values .

Only if I start camera app and close , then torch gain more power . :-/
[Sony Cross-Device General] langeveld024:
You are right, thanks!

However, on my old Z I always used the medium boost and all was okay.

On my Z5, medium boost works, but it's so bright that I didn't trust it and decided to open this thread where I luckily found your post. Otherwise I would likely burned it in time!

BTW, do u know what these lines are for?

# Max current for Torch (uA)

i_batt_max_torch = 1000000

# Flash LED_If max current (uA)

max_if_flash = 1500000

# Torch max current for camera 3A (uA)

max_if_torch_3a = 250000
[Sony Cross-Device General] connta:
no, sorry... its not that i have some inside knowledge about this mod its just that i dont flash stuff before i check it out visually and compare with the revert files, scout out the changes and understand what im doing... served me well so far :D

# Torch max current for camera 3A (uA)

max_if_torch_3a = 250000

this one i think i know tho, its the flash value for camera... the values really seem confusing, that max current 1500000 seems way off, tbh 3A if thats Ampere then again what else could it be, did they seriously put marking A as a random marker for something while talking about current, seems way too stupid... anyway i digress, its a lot however you look at it...
[Sony Cross-Device General] langeveld024:
(uA) stands for milli Amp. That's why I don't understand the 3A lol

Wait.. Isn't, 250000 uA = 2,5A? That'll make more sense..
[Sony Cross-Device General] Dragoss91:
I don't think it make sense ..... because maximum value is 1000000uA , so the flashlight can take 10A ? wtf ?
[Sony Cross-Device General] einfachgaer:
uA is more likely to be µA which stands for micro Amp and not milli!

250 000µA would be 0,25A which makes more sense. 2,5A are WAY too much for such a small LED.

1 000 000µA are 1A.
[Sony Cross-Device General] stevuna:
This works also in Marshmallow 6.0.1 on z3 compact, thank you!
[Sony Cross-Device General] raven213:
Works on z5p 6.0 :)
[Sony Cross-Device General] lite426:
Is there something like this for Galaxy phones?
[Sony Cross-Device General] tobbbie:
Brightness over current - graph

I think this is not needed. My S4 mini is very bright (2770 Lux on same conditions as below). It has no time limit and works as video light as well without heating up or camera going off due to heat.

For the Z3 compact I did a a little sampling and measurement based on the idea from [MENTION=4955115]kos25k[/MENTION] further down the thread. Condition is the Lightmeter app from Keuwlsoft on my Tab3 8 flat on the desk, the Z3 compact box upright and on top of that then the Z3 compact shining down to the Tab straight line - which is about 15.5 cm distance from LED to sensor.

Varying torch current and rebooting gives different read outs and the result over current is quite interesting - ever increase is not getting better as the LED runs into saturation above ~400mA. Graph see attached.

Now my problem is that the camera app will shut off as it claims to get too warm using that mode, e.g. in video. When I use other apps (e.g. "A Better Camera") it works fine. So has anyone a clue how that Sony Camera-off can be prevented? Has anyone played around with other strings in the file?
[Sony Cross-Device General] anices:
great mod , but there would be a way to make even the camera flash ?
[Sony Cross-Device General] nemes480:
Sony Xperia Z1 Lastes Lollipop .236 Recommended Medium works perfectly. Amazing how bright it can be?
[Sony Cross-Device General] 0851311011:
work on z2 d6503 MM

thank you
[Sony Cross-Device General] CALLAVII:
It works very good on z3c 5.1.1 .264 but can't we use torch better without root?
[Sony Cross-Device General] vato4001:
can anybody upload a Stock revert zip from Z1 5.1.1 .236 pls? thx :)

edit : i just saved the original .cfg file :D

if_torch_vr = 300000 is my now :D
[Sony Cross-Device General] vato4001:
how you can open torch app while camera app is open? thx :)
[Sony Cross-Device General] vladimirospaok:
For Z2 which is the best one?Medium?
[Sony Cross-Device General] tolgatk:
Thanks dude it's work
[Sony Cross-Device General] electrash:
Will this work on Z3 running MM?
[Sony Cross-Device General] dex87xda:
Medium power works great on Z2 latest MM [emoji33]

100% led power boost :) thx [MENTION=4300205]olokos[/MENTION]
[Sony Cross-Device General] olokos:
Tell me. It should.

few posts above yours. yes, it is good and recommended one.
[Sony Cross-Device General] madshark2009:
is there any torch booster for xperia z5 compact or any other device on mm .305
[Sony Cross-Device General] jqtz3k:
Can anyone reupload?
[Sony Cross-Device General] warpilein:
[MENTION=5735385]jqtz3k[/MENTION]

https://mega.nz/#!YQVB2Q7B!56g1QToQAAkDMPGZr27p6FHFAjqPAStRAGmUgQA2drg
[Sony Cross-Device General] yakupTR:
Extreme version - torch, camera, flash, notification LED

Pls upload guys lınk broken pls help [MENTION=4300205]olokos[/MENTION]

D6503 cihazımdan Tapatalk kullanılarak gönderildi
[Sony Cross-Device General] yakupTR:
Pls Upload pls

D6503 cihazımdan Tapatalk kullanılarak gönderildi
[Sony Cross-Device General] xdax1:
Anyone used this with Cyberian camera mod? Will it work?

Thanks
[Sony Cross-Device General] xdax1:
z3 working, extreme version link here

Extreme version here

https://mega.nz/#!ZhFB0JCT!1g9mvoRqt9_PPdh4bsPLGHN6kPSzHwqr2cLp1q8hp1Q

Answer my own question, working on my Z3 C6653 RXSW v4 MM rom with Cyberian camera mod

P.S. also working on my gf Xperia Z on some stock based rom
[Sony Cross-Device General] Andresruizj:
Will it work on Lineage Os 14.1? Xperia Z1.
[Sony Cross-Device General] nstream:
whats the longest anyone has had their torch on for after the mod?
[Sony Cross-Device General] Qbus2002:
hey the download link broke, does anoyone still have the file?
[Sony Cross-Device General] hasn4179:
Is it possible to come up with a torch app in which we can use led as torch with varying brightness??

like in huawei phones (e.g. a cheap huawei phone like y300 also has this app having 4 modes: off, low brightness, medium, max brightness), i would really like to see that kind of app for our z1 :D
[Sony Cross-Device General] fer2503:
Yeah it could be perfect :D
[Sony Cross-Device General] beniamin24:
Can You indicate me witch file should i edit for notification led plase
[Sony Cross-Device General] olokos:
It is possible, but there might be some issues with that compared to this way of doing it. That's clean, an app wouldn't be as clean and I might have to do some dirty hacks as I'm not a pro yet :)

Extract the zip and take a look at the file and the updater-script.
[Sony Cross-Device General] hasn4179:
i agree, it was just an idea which used to come in my mind now and then, so that the user has freedom to choose the trade-off of brightness and time+battery at anytime when the need of torch arises.

I am not forcing you to do it, just sharing my idea :P
[Sony Cross-Device General] olokos:
Thanks for that. In a while I'll make a dimmer version that's safer to use for a long time anyway :)
[Sony Cross-Device General] hasn4179:
yup, i was going through the same file in my xperia u (which has led brightness mod of 3x stock) and saw that it has a value of 149600, and it is pretty much bright compared to z1 stock led brightness

Yes, they might be different leds, so they might have different kick in voltage...

my guess is, how about 100000 as value?

the one in your current mod is 1000000

default is 25000, so i think led will be a little more than 3x?

EDIT:

and i have kept led of xperia u on for as long as an hour, and the device temperature did not rise a lot, but this is z1, its body is of metal and glass, so i still do expect temperature rise in this case too
[Sony Cross-Device General] olokos:
It propably will be a little more than 3x, yes.

The LED component is very different across devices so don't go too much for the boost or you'll be sorry you've broken it.
[Sony Cross-Device General] hasn4179:
yup, but of course xperia u will have an inferior led compared to z1, and, the value you are using is 1000000>149600, so i think it falls in safe range maybe? unless this number game is enirely something else, way beyond simple mathematics :silly:
[Sony Cross-Device General] olokos:
Those are the very same numbers. No maths involved actually. Just current in µA.
[Sony Cross-Device General] hasn4179:
1000000 has 7 digits = 1 Ampere

149600 has 6 digits ~= 0.15 Amperes

so this value will be only 15% brighter than your mod, but 6 times brighter than stock :p

I meant by "maths involved" as maybe they are some code numbers, like ASCII for each character :laugh:
[Sony Cross-Device General] BlackSoulxxx:
What string in the file that involved in the torch? I really want to try some crazy idea :D
[Sony Cross-Device General] hasn4179:
in system->etc->flashled_calc_parameters.cfg
[Sony Cross-Device General] fer2503:
I can't find the line for flashled on photo. Can you tell me the right one?
[Sony Cross-Device General] BlackSoulxxx:
Tks. I currently try 1400000 to see if it any brighter than olokos value

It seem that 1500000 is our device max value (via max_if_flash)

Anyway I will push both value to 2000000 :p (Already to kill the flash :p )
[Sony Cross-Device General] hasn4179:
you mean the variable?

its on 12th line, like this:

#LED If setting for Torch or video recording (uA).

if_torch_vr = 1000000 #could be any value, changed to 1000000 in this mod

---------- Post added at 06:21 PM ---------- Previous post was at 06:19 PM ----------

But did you notice any change in brightness?

coz 1500000 is waay too large, the power plug of the official charger has output of 1.5 Ampere :p

I think the brightness of led wont change drastically after certain value which could be less than an ampere...
[Sony Cross-Device General] BlackSoulxxx:
My eye are totally blinded (they are too bright :p ) so I cant see any different...

Try 2000000 and it's still work (hot!!!) (Change both value)(I think it will kill the light but it dont, damm led is durable..)
[Sony Cross-Device General] hasn4179:
Or its an led characteristic, as voltage wont change no matter what the value of current after some value :laugh:

Its surely gonna get hotter, 2A current? lol XD

Maybe prepare breakfast as part of next experiment? :p
[Sony Cross-Device General] BlackSoulxxx:
Maybe you're right

About current, I charge the phone while the led is on (2A) and it use so much current that the current watcher simply show negative value :p

I already once use my phone as heat source (Setting phone to max perfomance, Wrap aluminum foil around the phone and place it under coffee cup and run HTC Power to give or just run Antutu many times over and it's worked) xP
[Sony Cross-Device General] olokos:
I'd rather say it would be HEX, but there's no point in doing that at all. :P

u med
[Sony Cross-Device General] BlackSoulxxx:
Yeah I'm med :p

Already push value to 2A and indicator to 4000

Still fine....
[Sony Cross-Device General] fer2503:
This is for video recorder...I mean for photo...I think that it is different
[Sony Cross-Device General] BlackSoulxxx:
Try "camera 3A" string

I think it is.....
[Sony Cross-Device General] hasn4179:
[MENTION=4940323]fer2503[/MENTION] yup, try that and report, but i dont think that string value has something with led brightness in camera, as as the brightness is same all over, though the value of this string is 10 times the value of torch in video rec...

what is the last variable "if torch critical"? it has the same value as stock value of torch in vr...

---------- Post added at 07:26 PM ---------- Previous post was at 07:22 PM ----------

Maybe buy some liquid nitrogen and then pass 5 amperes if you want to see the extreme condition led can withstand? :p

i think the led reaches 99% brightness at 0.5A, see the value of "drv eff threshold", what other efficiency could it point to?

---------- Post added at 07:28 PM ---------- Previous post was at 07:26 PM ----------

Man, if it really is in hex, this led is something :P
[Sony Cross-Device General] fer2503:
Tried but nothing change
[Sony Cross-Device General] BlackSoulxxx:
In my place there are 400 liters of liquid helium, more scary than nitrogen (The tank in hospital , sometimes I can buy it for my OC pleasure :p )

And 5A will burn the phone out!!!!!!!!
[Sony Cross-Device General] hasn4179:
Take a thermos, pour some liquid helium, then burnin hot z1, and electronic icecream is ready :laugh:

the battery will surely explode at very high current demand, and that too only from led

well, back to topic, can you help [MENTION=4300205]olokos[/MENTION] in determining a value for led current so that torch can be used for more time?

i think 0.25A (i.e. 250000) should do the trick, but a gut feeling says any value b/w 100000-200000 would be enough to cater most of the conditions

---------- Post added at 08:01 PM ---------- Previous post was at 07:59 PM ----------

yup, thats what i though...

but why need torch for photos?

fill flash or red eye reduction is alright for the purpose i think, and produces really nice photos
[Sony Cross-Device General] olokos:
I think just doing 1,5x stock will do the trick. I'll investigate it later on. It's not a HEX value for sure ;) You were saying about ASCII, so I told you it would rather be in hex than in ascii. It's just a numerical value as I mentioned earlier.
[Sony Cross-Device General] hasn4179:
Yeah i figured it out too, coz if it was hex, it would start with 0x... :cowboy:

anyways, so, i havent flashed your mod yet. So if i just edit the value in that file, will it work? or reboot is required?

Sorry i havent done this before, so just confirming :p

plus i was also thinking of checking for different values, but of course not very high values which will fry my phone :laugh:
[Sony Cross-Device General] olokos:
Yes/yes

Actually I'd recommend you not to try any higher values. While it might not destroy somebody's led it can still destroy yours if you go even higher than this mod here.

Just like with o/c every electronic part is different and may behave differently. :P
[Sony Cross-Device General] hasn4179:
so i have set current to 0.5A (500000), and its bright enough :)

let me see how long it takes for the mobile to give rise to significant amount of temperature

EDIT:

or maybe not, coz i dont think i will be able to keep my mobile out of reach for 5 minutes :p
[Sony Cross-Device General] LLars_PL:
This is Exactly What i searched! Thank you!!!!

Wysłane z mojego C6903 przy użyciu Tapatalka
[Sony Cross-Device General] diabolus81:
Stronger camera flash will be nice :)

And thx for this mod it's awesome ;) :good:
[Sony Cross-Device General] beniamin24:
Still cant find anything about the notification led, please give me a point, what do i need to edit for the notification led?
[Sony Cross-Device General] saintgein:
Is there a way to boost the notification led? That'd be mint.
[Sony Cross-Device General] sonwon:
Suggestion, not to derail the forum, how about a way to increase the backlight LED for the screen so it is brighter in the sun?
[Sony Cross-Device General] dryla:
Works like a charm on Z2 firmware 304, thanks
[Sony Cross-Device General] hasn4179:
I dont think thats possible, because there will be a full fledged driver for lcd (i suppose), which is closed source

---------- Post added at 01:10 AM ---------- Previous post was at 12:59 AM ----------

http://xdaforums.com/showthread.php?t=2212944

although completely irrelevent as the contents of the file are drastically changed from ics to kk, but who knows what hidden message one can decode :p
[Sony Cross-Device General] stanley210:
Works great !! Really big difference. I would like to increase the brightness of the LED notification please.

... Z1 Compact ...
[Sony Cross-Device General] olokos:
Just updated!

I also boosted camera torch and notification LED! :)
[Sony Cross-Device General] diabolus81:
Avesome !!

Podziekować ;)
[Sony Cross-Device General] play3man:
I would like to see some comparision pictures like night picture with/without mod
[Sony Cross-Device General] LaosPerson:
:silly: I wonder how low the led notification light for the regular Z1 is, since the T-mobile variant c6916 has a LED light like the Xperia Z so it's already a bolt of lightning in your face when you wake up in the middle of the night and there's notifications or just the charging LED lol
[Sony Cross-Device General] olokos:
I was planning to do that, but since I don't have another device that would do good pictures in the dark so I need somebody else and currently I'm a bit busy with my life. The difference is massive, take my word :)

Notification light wasn't boosted that much, even in extreme version as it's used all the time. Having that said it would use more power and could get damaged. I don't want that to happen to you guys :)
[Sony Cross-Device General] glückspilz:
anyone tested this on xperia z?
[Sony Cross-Device General] olokos:
Nobody reported anything in this thread about XZ. You would be the first one to try it. :)
[Sony Cross-Device General] Gjole86:
oh wow ...

anyways i loved the way it was done in 2011 xperias, notification led was controlled by color

so you could boost notifications and keep red color lower for the charging purposes

echo 20000 > $dev/lcd-backlight/max_current
echo 8000 > $dev/red/max_current
echo 8500 > $dev/green/max_current
echo 8500 > $dev/blue/max_current
[Sony Cross-Device General] maxip:
Excellent mod - just installed on Z1 Compact (medium brightness) and it's a noticeable difference.
[Sony Cross-Device General] Winb33:
Just flashed medium pack on my Z1C 4.4.4 108 and clearly see the difference !

I have now a real flashlight !

thanks for this awesome mod ! :good:
[Sony Cross-Device General] Dimox3:
It works on Xperia Z @ 4.4.4

I see a big difference :D
[Sony Cross-Device General] [Fenix]:
Tested on my Z1 and...wow...I can see the dif........well........I can't see anything now, because the flash has burned out my eyes lol

Just joking, good job we need these optimizations for our device!

keep up bro :D
[Sony Cross-Device General] linkazoid:
I just swapped the file on my 314 Z2, the flash is much much brighter however I've lost the notification LED! Will swap back and change the value manually!
[Sony Cross-Device General] beniamin24:
No, it doesnt work
[Sony Cross-Device General] AlphaBravo:
Xperia SP ??

Have someone tested it on Xperia SP? :p
[Sony Cross-Device General] timvonlee:
does it work on PA?
[Sony Cross-Device General] olokos:
Please try the zip with just torch boost. The oldest one. Let me know if the issue is also there.

Nobody so far. You would be the first one.

Give it a try, how the hell would I know what files are in a specific aosp based rom? :P
[Sony Cross-Device General] CazeW:
As there are several values that differ between the original Z1 and Z1C file, I decided to rebase this mod to the Z1C .108 firmware. I don't know if this makes any difference but I thought it might be safer for the LEDs on the Z1C. Kudos to [MENTION=4300205]olokos[/MENTION] for the original.

I take no responsibility for any possible damage to your phone.

Z1C Stock - Revert everything to stock.

Z1C Medium Torch - Medium settings for torch only.

Z1C Extreme Torch - Extreme settings for torch only.

Z1C Medium LEDs - Medium settings for torch, camera and flash.

Z1C Extreme LEDs - Extreme settings for torch, camera and flash.

UPDATE: Removed the links to the notification LED boost as they had no effect on the Z1C and restored the value to its default in Medium/Extreme LEDs files.
[Sony Cross-Device General] stanley210:
Unfortunately, I change the notification LED does not work, ie no change. :(

... Z1 Compact ...
[Sony Cross-Device General] linkazoid:
The LED notification stops if the following is changed.

# LED If setting for Indicator(uA)

if_indicator_level = 3125

I haven't tried any other values, except to revert it back to stock settings.
[Sony Cross-Device General] CazeW:
Did you try both mine and olokos version? If neither does anything for the notification led, it could be that it cannot be boosted on the Z1C.

EDIT: Did some digging and found the files that control the RGB values for the notification led. There are files that control the max brightness for each channel and they are all set to 170. Unfortunately changing these values has no effect, all of the channels refuse to go higher than 170 brightness even when the max is set to 255.
[Sony Cross-Device General] olokos:
You mean that you get no notification led at all or that there's no boost of it?

If you mean no boost then there is actually a small boost that isn't visible that clearly if you don't pay attention. Putting really high value might cause several issues.

Please do try to change it for example to 3150 and let me know how it went.
[Sony Cross-Device General] stanley210:
I tried to flash middle and then an extreme version of a notification LED brightness is still the same (weak)

... Z1 Compact ...
[Sony Cross-Device General] Winb33:
Thanks for this, i' m gonna give a try

Can we use Medium settings for notification LED, torch, camera and flash and flash Extreme settings for notification LED after ?

Has it was in the original mod , flashlight is brighter as i need (do want to push to extreme) but pushing notification to higher level would be indeed a great idea :)

Thanks a lot will try and give report if i see change
[Sony Cross-Device General] CazeW:
Flashing medium settings and then flashing the extreme settings for just notification would reset all the other values to their defaults. Unfortunately though the setting that was supposed to boost the notification LED has no effect on the Z1C (from reports and my own testing).

I also messed around more with the configuration files for the notification LED and I did get the max brightness setting to stick to 250 (default 170) so that when the led was on, the brightness was set to 250. Unfortunately though it didn't actually boost the brightness.
[Sony Cross-Device General] Lasantha:
thanks for nice mod
[Sony Cross-Device General] Winb33:
Indeed :)

That' s exactly what i saw after trying !

Thanks for help and support !

Ps : Would be awesome if an app developper use your work to make a mod of torch app with 3 or more step level (and not the define one) :good:
[Sony Cross-Device General] stanley210:
I do not understand it, (about the bad english) This is to increase the brightness of the LED notification? If so, how?

... Z1 Compact ...
[Sony Cross-Device General] olokos:
Good idea. Hopefully I'd learn how to do apps from a blank text file and maybe at some point I'd to such app myself, but not at this point, no.

LED/Flashlight/Camera Flash/Recording flash

Just flash medium .zip file for Z1C linked in the first post.
[Sony Cross-Device General] Luhccas-X10:
The last pulse of camera when take a picture looks like the same to me.
[MENTION=4300205]olokos[/MENTION], this was the purpose of this mod?

Torch and video rec are awesome!