[Sony Xperia P, U, Sola, Go] broadcomfail:
help

1. I want hardly switch OFF pernamently this LED's

hardly - i need to edit some android files (2.Which?)

3. queries with google showing resolution with some apps- I dont need them.

4. Is there somebody who can tell which file/s need to edit?

Somebody whos digging in firmwares (modders) should help us.

Xperia U / 2.3.7 android/ kernel 2.6.35.7+

Anyway this topic should be moved to "Xperia P, U, Sola, Go General" or "Xperia P, U, Sola, Go Q&A, Help & Troubleshooting" or "Xperia U Android Development"

Because nobody looking here.

edit:

similar threads:

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

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

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

Regards

--

Way number 1

quick rooting st25i/xperia u GB:

http://www.youtube.com/watch?v=x65ua5x4sMc

http://unlockbootloader.sonymobile.com/instructions

www.your-mailbox.somewhere.ws

http://www.xdafileserver.nl/index.php?dir=Sony+(Ericsson)/SE+Xperia+U+(LT25i)/STOCK+ROMS

http://androxyde.github.io/

go to C:\Flashtool\drivers/Flashtool-drivers.exe select xperia u p..../ flashmode drivers / fastboot drivers

http://developer.android.com/sdk/index.html [ find old release because fastboot.exe will missing]

http://xdaforums.com/showthread.php?t=1886460 [hele also we have fastboot -many thanks to "Bin4ry"

http://xdaforums.com/showpost.php?p=29111743&postcount=4

move folder stuff to c:// then cmd ... instructions ... and already done

C:\stuff>fastboot.exe -i 0x0fce getvar version //checking connection
< waiting for device >
version: 0.5
finished. total time: 0.016s

C:\stuff>fastboot.exe -i 0x0fce oem unlock 0xKEY
...
(bootloader) Unlock phone requested
OKAY [ 0.078s]
finished. total time: 0.078s

C:\stuff>

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

rooted kernel:

3_184_kernel.elf

http://globalitadministrators.blogspot.com/2013/04/howto-fix-android-device-mtp-driver.html

C:\pierdole\stuff>fastboot.exe flash boot 3_184_kernel.elf
sending 'boot' (10046 KB)...
(bootloader) USB download speed was 20866kB/s
OKAY [ 0.500s]
writing 'boot'...
(bootloader) Flash of partition 'boot' requested
(bootloader) S1 partID 0x00000003, block 0x0000d000-0x00014fff
(bootloader) Erase operation complete, 0 bad blocks encountered
(bootloader) Flashing...
(bootloader) Flash operation complete
OKAY [ 0.969s]
finished. total time: 1.469s

C:\pierdole\stuff>

google play: su , busybox, terminal emulator

terminal emulator : su , cd /system/app/

rm SemcIllumination.apk

exit

phone restarted and still i got running light bar.... now it only stop light colors in gallery

End of story

Way number 2

system/etc/hw_config.sh
....
echo 1 > $dev/button-backlight/max_current
echo 0 > $dev/button-backlight/max_brightness

Firstly this lines doesnt exist in xperia u, so i added them effect - NONE

nothing change... still when unlock light turn on , when press return button, or home button

way number 3

themeoff.sh - http://xdaforums.com/showthread.php?t=1968721

after removing SemcIllumination.apk and trying to execute this file:

not working.

way number 4

tried to remove

/sys/class/leds - imposible to remove even from root

http://www.mjmwired.net/kernel/Documentation/leds-class.txt

any hints/ indeas?

way number 5

sys/devices/platform/nmk-i2c.2/i2c-2/2-0040/leds/r-key-red

and other folders such:

r-key-red

r-key-green

r-key-blue

pwr-red

pwr-green

pwr-blue

m-key-red

m-key-green

m-key-blue

lcd-backlight

l-key-red

l-key-green

l-key-blue

and example:

changed all privleges (chmod 777)

editing sys/devices/platform/nmk-i2c.2/i2c-2/2-0040/leds/r-key-red/brightness

to "0"

in evry folder (except lcd-backlight) switching off for LEDs , but when i press return or lock/unlock button all going back... (its somehow overwritten) - partial success

Other crazy thing i cannot edit file "max_brightness" even from root with any program- why?

lights driver is in :

system/lib/hw/lights.st-ericsson.so - when removed , all things related with light not working -even screensaver(always on)

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

http://pastebin.com/Mfn9QZ8g

found some bootlog propably from st25i

[ 2.894195] as3676 2-0040: AS3676 driver v1.4: detected AS3676compatible chip with ids ae 52

[ 2.943145] Registered led device: pwr-red

[ 2.943847] Registered led device: pwr-green

[ 2.944549] Registered led device: lcd-backlight

[ 2.945495] Registered led device: l-key-red

[ 2.946472] Registered led device: l-key-green

[ 2.947418] Registered led device: l-key-blue

[ 2.948364] Registered led device: m-key-red

[ 2.949340] Registered led device: m-key-green

[ 2.950347] Registered led device: m-key-blue

[ 2.951385] Registered led device: r-key-red

[ 2.952331] Registered led device: r-key-green

[ 2.953430] Registered led device: r-key-blue

[ 2.954437] Registered led device: pwr-blue

how to unregister this ****?

/* kernel/arch/arm/mach-ux500/leds-kumquat.c
*
* Copyright (C) 2011 Sony Ericsson Mobile Communications AB.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*/
#include <linux/leds.h>
#include <linux/leds-as3676_vendor.h>

struct as3676_platform_data as3676_platform_data = {
.step_up_vtuning = 18,	/* 0 .. 31 uA on DCDC_FB */
.audio_speed_down = 1,	/* 0..3 resp. 0, 200, 400, 800ms */
.audio_speed_up = 4,	/* 0..7 resp. 0, 50, 100, 150,
200,250,400, 800ms */
.audio_agc_ctrl = 1,	/* 0 .. 7: 0==no AGC, 7 very aggressive*/
.audio_gain = 7,	/* 0..7: -12, -6, 0, 6
12, 18, 24, 30 dB */
.audio_source = 2,	/* 0..3: 0=curr33, 1=DCDC_FB
2=GPIO1, 3=GPIO2 */
.leds[0] = {
.name = "pwr-red",
.on_charge_pump = 0,
.max_current_uA = 2000,
},
.leds[1] = {
.name = "pwr-green",
.on_charge_pump = 0,
.max_current_uA = 2000,
},
.leds[2] = {
.name = "lcd-backlight",
.on_charge_pump = 0,
.max_current_uA = 20000,
.startup_current_uA = 20000,
},
.leds[3] = {
.name = "l-key-red",
.on_charge_pump = 1,
.max_current_uA = 6410,
},
.leds[4] = {
.name = "l-key-green",
.on_charge_pump = 1,
.max_current_uA = 12000,
},
.leds[5] = {
.name = "l-key-blue",
.on_charge_pump = 1,
.max_current_uA = 7660,
},
.leds[6] = {
.name = "m-key-red",
.on_charge_pump = 1,
.max_current_uA = 6410,
},
.leds[7] = {
.name = "m-key-green",
.on_charge_pump = 1,
.max_current_uA = 12000,
},
.leds[8] = {
.name = "m-key-blue",
.on_charge_pump = 1,
.max_current_uA = 7660,
},
.leds[9] = {
.name = "r-key-red",
.on_charge_pump = 1,
.max_current_uA = 6410,
},
.leds[10] = {
.name = "r-key-green",
.on_charge_pump = 1,
.max_current_uA = 12000,
},
.leds[11] = {
.name = "r-key-blue",
.on_charge_pump = 1,
.max_current_uA = 7660,
},
.leds[12] = {
.name = "pwr-blue",
.on_charge_pump = 1,
.max_current_uA = 1000,
},
};

...kernel\drivers\leds\leds-as3676_vendor.c

#ifdef CONFIG_PM
static int as3676_suspend(struct device *dev)
{
struct as3676_data *data = dev_get_drvdata(dev);
dev_info(dev, "Suspending AS3676\n");

AS3676_LOCK();
data->als_control_backup = AS3676_READ_REG(AS3676_REG_ALS_control);
data->als_result_backup = i2c_smbus_read_byte_data(data->client,
AS3676_REG_ALS_result);
as3676_switch_als(data, 0);
AS3676_UNLOCK();

return 0;
}

static int as3676_resume(struct device *dev)
{
struct as3676_data *data = dev_get_drvdata(dev);

dev_info(dev, "Resuming AS3676\n");

AS3676_LOCK();
AS3676_WRITE_REG(AS3676_REG_ALS_result, data->als_result_backup);
if (data->als_control_backup & 1)
as3676_switch_als(data, 1);
AS3676_UNLOCK();

return 0;
}

edit

way number 6 - partial success

FreeXperia(FXP) also known as CyanogenMod(CM)

http://xdaforums.com/showpost.php?p=39007396&postcount=4

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

http://xdaforums.com/showpost.php?p=31302421&postcount=2

https://sites.google.com/site/projectfreexperia/download/cyanogen-mod-9

https://sites.google.com/site/projectfreexperia/download/howto-install

FXP210a_cm-9-20130310-UNOFFICIAL-kumquat.zip

advantages:

+ lock,relock,return buttons not annoying anymore!

+ u can control this ****- u dont need any apps from google play, here is a tool in Settings menu "Pulse notification light", where u can set behaviour this leds

+somebody can see how they fixed this **** and find way to repair this in GB

+leds became useful, only blinkink when missed call

disadvantages

-android 4.x RAM over >200 MB

- slow down movies in youtube, sound before screen (typical for 4.x in st25i - thats why i want stay on old GB)

- too many options for this phone it has too small screen 3,5 "? to have too much buttons (4.x)

- i have feeling sound are more quiet in 4.x than 2.3