yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] siddharththemarian:
experimental kernel 8.0 working great, cant find any issue till now :))
[Sony Xperia P, U, Sola, Go] akkufix:
Illumination-bar

For those who are interessted in a working illumination-bar...

Here it is.

Rename "hw_config.sh.txt" to "hw_config.sh", adb push it to /system/etc (overwrite original) and chmod it to 644 (rw_r__r__).

Maybe you need to give write-permitions on /system/etc to do it.

adb shell -> su -> mount -o rw,remount /system and if necessary chmod 777 to /etc.

Don't forget to re-set right permitions after you copied the file.

Reboot and illumination-bar will come up while device is booting.

This should work for most roms ported from Go.

Comparing hw_config.sh before overwrite the original file. If this is different, you could take out the "ALS" part from mine and put it in yours.

Should also work with Cyanogen-mod-rom, because directories are the same.

You also could change parameters in ALS-part to make bar flashing or react in another way.

But, pls. have a look in datasheet first, because you may get over-current your LED, if you change wrong register. So, be carefull with i.e. 0x0a

Changing parameters on $kblight path aren't dangerous, but may cause non-function of the bar. Just re-write "old" value then.

You can find datasheet for as3677 here, by clicking on "Download":

http://www.ams.com/eng/Products/Lighting-Management/Lighting-Management-Units/AS3677

Enjoy... :D
[Sony Xperia P, U, Sola, Go] etch04:
After I replaced the file,my phone doesn't boot up.will try it again and report back.
[Sony Xperia P, U, Sola, Go] akkufix:
Hmm, should work. I rebooted lot of times by now, so to test some functions i tried.

Its only an small enlargement from the original hw_config file.

Edit:

Tested it with your kernel v7 + v8.
[Sony Xperia P, U, Sola, Go] Andrewasth:
So there is no need for a newer kernel on your device on order for illumination bar to work? It works like in stock ics?
[Sony Xperia P, U, Sola, Go] akkufix:
This is not depend on kernel, because I configured it in hardware-file (ALS section). So, it's independent and could be used in other roms, too. Well it should work like in ics, but I didn't know how it was, because I haven't used it for a long time. :)

Gesendet von meinem MT27i
[Sony Xperia P, U, Sola, Go] 8lO_Ol8:
Doesn't work

My phone does boot but with no bootanimation (black screen after sony logo) ,illumination bar still not working

I tried to clear dalvik cache but no luck

Sent from my MT27i
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
everything works

try to wait for some seconds
[Sony Xperia P, U, Sola, Go] Ben Ling:
so the illumination bar is working?
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
yep

but with bug: for some seconds black screen and than everything OK
[Sony Xperia P, U, Sola, Go] Ben Ling:
blackscreen?

the screen will off itself?
[Sony Xperia P, U, Sola, Go] itachilinux:
no bootanimation.
[Sony Xperia P, U, Sola, Go] akkufix:
It seems some of you having problems with it. So there have to be some differences in rom (build.prop or changed hw_config.sh) to my one.

A short blackscreen between Sony logo and bootanimation is normal, because chip is re-intializing and lcd-lights is also on it.

So for solution, i advice you only taking the "ALS section" and put it in yours, instead of using whole file.

Sure, the best solution for it would be a new shared library "liblights-core.so" made from source with lights.pepper.c and leds-as3677.c.

So, if anyone could do this?
[Sony Xperia P, U, Sola, Go] itachilinux:
reporting! my friend who using sola said this file is worked but mine is not.
[Sony Xperia P, U, Sola, Go] itachilinux:
here is sends from his facebook
[Sony Xperia P, U, Sola, Go] itachilinux:
[MENTION=3792300]akkufix[/MENTION] this is enough?

Sent from Mayudroid
[Sony Xperia P, U, Sola, Go] itachilinux:
another friend just sends me a pic.
[Sony Xperia P, U, Sola, Go] akkufix:
Deleted - typo

I will have a look, to load these values after all other things are done while device finished, so no other script overwrites them.

Any ideas are wellcome.

Btw. Thanks for posting pictures. :good:
[Sony Xperia P, U, Sola, Go] itachilinux:
[MENTION=3792300]akkufix[/MENTION] like this?

Sent from Mayudroid
[Sony Xperia P, U, Sola, Go] akkufix:
Yes. Check debug if values are set in it.

Made this short script for easy doing - change ".txt" with ".sh", put it on phone and run it with "sh 99kblight.sh".

sure, with superuser permitions...
[Sony Xperia P, U, Sola, Go] itachilinux:
still same as before.

---------- Post added at 06:57 PM ---------- Previous post was at 06:41 PM ----------

i've not yet tested the script

Sent from Mayudroid

EDIT : DON'T WORK

---------- Post added at 07:04 PM ---------- Previous post was at 06:57 PM ----------

@akkufix

some friends on my facebook just try your hw_config.sh and they said working, what wrong with my phone or ROM?
[Sony Xperia P, U, Sola, Go] etch04:
i think this script doesn't work with 6.2.A.1.100 Firmware Port..haven't tried it with mujeni rom.maybe some file or config is missing in this rom
[Sony Xperia P, U, Sola, Go] akkufix:
Thx for info, Will try it soon. So, i have some work. ;)

Edit:

Tested - it work also on 6.2.A.1.100 and latest ex-se rom and on ex-se it doesn't affect LED-notification and vice versa.
[Sony Xperia P, U, Sola, Go] Arman_Koradia:
not working for me. can u plz make a flashable zip of the required file for this illumination bar ??
[Sony Xperia P, U, Sola, Go] itachilinux:
my friend has test it and its worked on 6.2.A.1.100

Sent from Mayudroid
[Sony Xperia P, U, Sola, Go] akkufix:
First it has to work for everybody, than we could make it flashable via zip. ;)
[Sony Xperia P, U, Sola, Go] rakz992:
[MENTION=3792300]akkufix[/MENTION] doesn't work for me either...tried both ways.. First by copying the hw config.sh to system/etc and second by replacing the lines in original. No boot animation for Sony logo... I'm on Munjeni's rom n v8 experimental kernel n crossbreeder.. No other Mods
[Sony Xperia P, U, Sola, Go] akkufix:
Check, if file "/sys/class/i2c-dev/i2c-2/device/2-0040/debug" was written with values after executed script, as i wrote in some posts before or just look in script, which values should be there. Think there are problems with permissions.
[Sony Xperia P, U, Sola, Go] rakz992:
Tried this.. Using terminal when I first set resister 02 value to 0a..it accepts n I can see that in debug..but next when I set value for register 53 to 03.. Register 02 value changes to 4a and register 53 is still not found!!
[Sony Xperia P, U, Sola, Go] akkufix:
Sorry, made typo. Will also correct it in post.

Its reg. 0x01=0x0a, 0x0a=0xc8 and 0x57=0x03

That's happend cause of my chart, choosen wrong row... :eek:

Also see (compare) post with my script. ;)

For some regs it is normal, that values are changing if screen or led is on, because software is activating them by changing bits in registers.

But 0x0a and 0x57 stay, as there controlling internal hardware things.
[Sony Xperia P, U, Sola, Go] rakz992:
Lol!! I was breaking my head this long cause for what I understood from data sheet was 01 to be 0a!! anyways I'll try this n report back!! :)

---------- Post added at 11:54 PM ---------- Previous post was at 11:45 PM ----------

No luck :(.. Problem is with cur12 ie reg 01 not taking value 0x0a.. When I try storing 0x0a using terminal the screen goes off for sometime then later when I check debug,the value for 01 is 0x09..!
[Sony Xperia P, U, Sola, Go] Patrol619:
Experimental kernel v8 + stock Munjeni's JB = ilumination bar works. But it doesn't work like on ICS. It lights up all the time when screen is on (on ICS it was turned off after couple of seconds). And it turns off immediately (on ICS was little fade effect). I hope you understand me :) But overall, good job ;)
[Sony Xperia P, U, Sola, Go] rakz992:
Cur12 stays with the value 09h (0000 1001b) whatever I do... That means current2 goes to pwm mode n current1 stays back in on mode!! Which other hardware uses current one??:confused:
[Sony Xperia P, U, Sola, Go] akkufix:
:good: I couldn't remember how exactly it worked, because i didn't used ics for a long time (i meant "stock-rom").

We can set another values in backlight files and as3677. Will try something to make it same as ics.

I still have 0x0a on current12_control...you tried it with "echo 0x01=0x0a >/path/debug"?

Current1 should be the key-backlights. I just don't know exactly how light are wired on as3677 and got most from trying some things and datasheet.

Be carefull with charging-pump and current-limits. Don't burn your LEDs. ;)

Btw. i ran out for click on thx buttons, but won't forget if xda will give new ones.
[Sony Xperia P, U, Sola, Go] rakz992:
Yeah tried changing 01 with 0x0a.. it just stays back on 0x09 :mad: n about charge pump n stuff,I've been cross checking everytime I try new values..;) n what happens if 01 is made 0x0f ie led mode??

Also can you check reg 00 value on your device?? :)
[Sony Xperia P, U, Sola, Go] akkufix:
You mean curr_rgb_control reg.(02) for rgb and curr.6? This is 0x45, so curr.6, and rgb1+2 is just "on".

01 settings - i saw in original file only 0x02 and set it to 0x0a to enable curr.2 and also set curr.6 (in reg. 01) on. Set it to 0f may activate keys and bar as signal for incoming message. Didn't tried it, yet.

00 is 0x02 (phone dark) and 0x03 when LCD is on. So, pump is activated by software when switched on.

I just remember one thing - after set as3677, i had to re-write files values in /keyboard-backlight to get the bar-light on. Maybe this help you.

So change registers, run only the part for files from my script and switch phone off/on (no reboot - just LCD off/on).

Or you use this script for changing values in it - so it will spare you lots of typing. ;)
[Sony Xperia P, U, Sola, Go] rakz992:
Ahh!! I have 08 in control reg 00.. That means ldo is turned off!! I'll try forcing it on may be this can help.

Edit: no luck.. When I try forcing control to 03,the screen goes off n comes up again n control gets the value of 0x0b-0x09.. Someother hardware setting is conflicting..I'll check n see which setting corresponds to 4th bit in control reg cause mine always stays in 08h (00001000b)
[Sony Xperia P, U, Sola, Go] akkufix:
just a question - have you enabled LED notification in settings?
[Sony Xperia P, U, Sola, Go] rakz992:
LED notification?? where do I find it in settings?? :confused:
[Sony Xperia P, U, Sola, Go] akkufix:
Think its in settings - display. Can't say it exactly, because i'm on another rom at the moment. But somewhere there around is a checkbox to activate/deactivate notification.
[Sony Xperia P, U, Sola, Go] rakz992:
[MENTION=3792300]akkufix[/MENTION].. tried everything, nothing helps...changing reg values except for cur1 and cur2 makes the screen go off and on... Also I didn't find led notification in settings... I'll reinstall the rom again tomo.. Will report back then :)

Cheers :thumbup:
[Sony Xperia P, U, Sola, Go] ommon4u:
I have been tryin to port glove mode from ics. Anybody got an idea??
[Sony Xperia P, U, Sola, Go] soulhackereborn:
Dun start this again over here!! It's dev thread.. If you need ideas/help open a new thread , so that people don't spam here!!

Cheers
[Sony Xperia P, U, Sola, Go] SahilTech:
according to your ALS config code there should be a file named i2c-2 in /sys/class/i2c-dev folder but in my case that file shows 0B, is it okay or i'm wrong, i think there should be something inside that file if it is called for ASL configuration :confused:
[Sony Xperia P, U, Sola, Go] akkufix:
No, i2c-2 is a directory. So, complete path to the file "debug" (where the registers and values for as3677 are in) is "/sys/class/i2c-dev/i2c-2/device/2-0040/"
[Sony Xperia P, U, Sola, Go] SahilTech:
But all I found there is a file named i2c2, and after pushing your hw_config.sh after kernel logo the screen went off till the boot process is finished then it again came up, and illumination bar didn't work :confused:

Also error in terminal: no such file or directory
[Sony Xperia P, U, Sola, Go] akkufix:
Well, i just tested it with 6.2.A.2.100 ex-se rom and it worked on this, too.

So, if you are looking for /sys/class/i2c-dev/i2c-2/device/2-0040/ you didn't found it and you haven't any directory upper than i2c_dev?

Have you tried it with adb shell? What rom are you using? Rooted?

Btw. don't want to spam thread, so pm me, pls.
[Sony Xperia P, U, Sola, Go] SahilTech:
Already rooted, on unofficial jellybean by munjeni,munjeni kernel, and yes u r right no directory upper than ic2c-dev
[Sony Xperia P, U, Sola, Go] zbiba:
+1

I'm using unofficial jb .100 final by [MENTION=4686081]DeathZeroFx[/MENTION].

Keep up the good work!:thumbup:
[Sony Xperia P, U, Sola, Go] naszrudd:
is jb .100 final 100% good as stock rom for daily use?

i mean, completely free from touchscreen bug & battery drain issue?
[Sony Xperia P, U, Sola, Go] DeathZeroFx:
Thanks for using my ported firmware ;)

I think 90% not 100%, still when I checked the ROM it has small bugs left, and like touchscreen bug it cannot be fixed with this JB munjeni fixes:(
[Sony Xperia P, U, Sola, Go] darko19:
nice~
[Sony Xperia P, U, Sola, Go] Patrol619:
It's kinda weird, because on JB I don't have touchscreen bug, but on ICS I have it.

Xperia sola@Tapatalk 2
[Sony Xperia P, U, Sola, Go] blindshadow:
i dunt find any difference after installing fixes
[Sony Xperia P, U, Sola, Go] naszrudd:
guess, i will wait for 100% then :D
[Sony Xperia P, U, Sola, Go] soulhackereborn:
People enough of handset particular bugs !!! Dev thread !!! Only development related discussion over here !!! ME having this m having that wont be tolerated including OT too & reported !!!

Cheers !!!
[Sony Xperia P, U, Sola, Go] itachilinux:
bro, some people doesn't know what purpose of this thread.

Sent from Mayudroid
[Sony Xperia P, U, Sola, Go] MetalheadAndroid:
Hey guys.Now that Jelly Bean is almost complete what's going on with the Glove Mode?? Did you abandon it?
[Sony Xperia P, U, Sola, Go] DLSlith:
Yes, you can, just wipe data/factory reset in recovery. then follow Fisherozzo post here.

But for best results I suggest you flash stock .54 first.

Hehe, you're welcome. Glad to help more ppl test this awesome port. :)
[Sony Xperia P, U, Sola, Go] IE-coRe:
Anyone else having launcher restarts all the time? I think its really anoying.. the only thing that really bothers me..
[Sony Xperia P, U, Sola, Go] aliud:
Simply, the file is corrupted. Download it again. It happened to me too. After 3 downloads, finally i installed it.

Inviato dal mio SGPT12 con Tapatalk 2
[Sony Xperia P, U, Sola, Go] djmk86:
Walkman

I found a bug in walkman function does not work like
[Sony Xperia P, U, Sola, Go] DLSlith:
Mine is working perfectly. Everything is smoother and faster than it was on ICS Stock based eXperience 2.1.

Just had to reflash 3 times before it booted properly but no problems since then. De-bloated it, restored all user apps I had on ICS, and right now I'm just setting up apps like Facebook and Twitter.

The only thing that kind of annoys me, but its not that important. "Keep Awake" enabled sure keeps the screen awake, but after 10 seconds without input screen brightness drops to zero and that kind of kills the purpose of keeping screen awake.
[Sony Xperia P, U, Sola, Go] dexterable:
How to flash ics ftf

Sorry for ultra noob question.:o

I am on CM9 FXP 216. In his thread munjeni says to flash stock ICS ftf before flashing the new JB.

SO how to do that? We just flash it via Flashtool ( The kernel will be flashed alongwith it?] ?

After that will the root status remain? Also, will the CWM Recovery be installed or do I have to that separately?

Again, sorry for noob question
[Sony Xperia P, U, Sola, Go] sss2sssss:
And a message to all:

Please delete the 01ksm script in the init.d folder by using the ES file explorer...

that file is causing some performance issue
[Sony Xperia P, U, Sola, Go] pingu_c660:
yes.

1. flash stock ics .54

2. flash the boot.img in the jb

3. reboot to recovery. wipe data/factory and dalvik

4. flash jb

5. wipe data/factory and dalvik

6. reboot.

if it hangs in sonycustom just force shutdown then reboot.
[Sony Xperia P, U, Sola, Go] sarsarhos:
what about risks, performance and battery life difference with ics?
[Sony Xperia P, U, Sola, Go] Patrol619:
For me performance is better than on ICS, scrolling is more smooth and everything works faster ;)

Xperia sola@Tapatalk 2
[Sony Xperia P, U, Sola, Go] mirost1:
Same here, its extremely smooth - no lag in everything, all functions working - i love JB :laugh:

Only i have the feeling of a little battery drain (using pegasusq + sio) but will test more and see.
[Sony Xperia P, U, Sola, Go] soulhackereborn:
OP updated for fixes & bloatware removal for smooth functioning of device...

Please check and post (before posting bugs fixes) & inform me of fixes you have used and which I have missed out on mentioning

Cheers!!
[Sony Xperia P, U, Sola, Go] mirost1:
Guys, i saw some members reported better battery life compared to ICS, but here - standby very good, but when using the phone battery drains.

What can be the problem, should i flash the ROM again to make it better?
[Sony Xperia P, U, Sola, Go] Pandemic:
do you use stock kernel?
[Sony Xperia P, U, Sola, Go] mirost1:
I use the kernel provided with the ROM, the kernel munjeni did.

EDIT: besides the usual wipe system, cashe, dalvick - should i format Sysstem from moun menu before and after instalation?
[Sony Xperia P, U, Sola, Go] Captain Mark:
Can't wait to taste JB for my Xperia Sola, question: is it smoother than stock ics. 54?

Sent from Space!
[Sony Xperia P, U, Sola, Go] Michal589:
yes its smoother.

U have fixed GPS. We need fix for sola
[Sony Xperia P, U, Sola, Go] Fisherozzo:
i have a problem with wifi tethering.. it starts and i can connect my tablet to the phone, but after that no internet trasmission to the tablet... i can see that wifi icon appears but there isn't a real web connession :(
[Sony Xperia P, U, Sola, Go] ncthanhkr21:
The rom is stable and OK for daily use

but there are some graphic bugs that can make the phone looks less perfect

1- the background - reported by other members - is still ISC themed

2- the notification background is 100% black - which should be semi-transparent like JB on XPERIA P

3- the task switcher background has gone - I think it will look better with the background

4- the framework color is always white - it's change with the themes on XPERIA P
[Sony Xperia P, U, Sola, Go] mendocino_610:
camera quality really bad.

camera work not bug but camera quality terrible. I think auto focus problem, not focussed
[Sony Xperia P, U, Sola, Go] rakz992:
[MENTION=3792300]akkufix[/MENTION]..keyboard backlight Working fine on new firmware after a clean install..:) also use_dls can be made '0' :thumbup:
[Sony Xperia P, U, Sola, Go] soulhackereborn:
It will not/never be implemented in JB rom ever!!! Unless Sony decideds to release JB for Sola!!

This is the last time m saying this!!

Cheers!!
[Sony Xperia P, U, Sola, Go] akkufix:
Thx for report. :good:

Yes, use_dls is 0 in ics (active and non-active), but 1 as default in jb. So set it 0.

Well, i will try to make it same like in ics. For this i restored ics and made measures (and some charts) from values of debug-file and compared registers. Should be work same as the button-backlight. But datasheet is a bit mixed up.
[Sony Xperia P, U, Sola, Go] rakz992:
Yeah..n also ics uses als group 2 for keyboard backlight.. N when I set it to group2 on jb, the brightness of light becomes high..
[Sony Xperia P, U, Sola, Go] MetalheadAndroid:
Thanks for the reply.I thought you guys were working on an XSP glove mode.What happened??
[Sony Xperia P, U, Sola, Go] akkufix:
Ok, short explaination - Soul pls. don't beating me for OT. :angel:

The results didn't really satisfied me.

So, its paused at moment, also due of some time limits on my side.

But, its not forgotten at all. ;)
[Sony Xperia P, U, Sola, Go] matood:
All you mentioned working well for me except glove mode. Gloating touch is present in browser, no use for it anywhere anyway. Try clean install again.
[Sony Xperia P, U, Sola, Go] sarcastaball:
Could you give me a link to the munjeni kernel? It doesn't seem to be inside the JB ROM zip file.

What are V6 and V11? Links? Do I install them via CWM or Flashtool? You didn't mention anything about munjeni's JB ROM. I'm guessing V6/V11 are the JB ROM?
[Sony Xperia P, U, Sola, Go] soulhackereborn:
This is a Development thread only and for devs only!!!

Read the title properly!!

If you have development related stuff to discuss here in this thread orelse get the hell out of here!!
[Sony Xperia P, U, Sola, Go] Tijmen:
Thread cleaned.

This is a development thread, and for development only. If you have questions; search and if you've searched extensively consider making a thread in Q&A.

All you devs, report anything off-topic and I'll make sure justice will be served swiftly. But don't reply, saves us mods a lot of work cleaning threads. And most of all, keep up the good work!
[Sony Xperia P, U, Sola, Go] Airbourne124:
Developer options problem

Hi. I still have a problem. When I turn on the usb debugging mode and I want to install the apps that I make in eclipse on my phone it gives an error that apk installation failure. Secondly eclipse cannot recognize android version and device.. Do u have a solution for it???
[Sony Xperia P, U, Sola, Go] soulhackereborn:
This is due to a modified kernel and a different root method which is used in the Rom to make it work...

If you go to the download page of the Rom...

You will read that you don't have to connect the phone to falshtool to install anything cause it will automatically change your busybox to another version which is not compatible with the root method in this Rom and hence will not be able to install apk's...

It can cause damage to your root access and phone might behave odd!!

Cheers
[Sony Xperia P, U, Sola, Go] Airbourne124:
So what you are saying is that I should flash the kernel using CWM? I have an xperia sola and it doesn't allow me flash a kernel using cwm.
[Sony Xperia P, U, Sola, Go] soulhackereborn:
Don't u know how to fast boot a kernel ??? Who flashes a kernel with flashtool ??
[Sony Xperia P, U, Sola, Go] Airbourne124:
I fast boot a kernel using flash tool...
[Sony Xperia P, U, Sola, Go] Not-Bad:
Fix

My ilumination bar doesn´t light on my Sola... Is fix for it? :confused:
[Sony Xperia P, U, Sola, Go] Arman_Koradia:
try the fix mentioned by [MENTION=3792300]akkufix[/MENTION] on this link

http://xdaforums.com/showthread.php?t=2258416&highlight=illumination+bar+fix&page=114

just copy the code available on it and paste it into your hw_config.sh available on /system/etc and set permissions to 644...and reboot..

hope this will work
[Sony Xperia P, U, Sola, Go] Not-Bad:
Root

Of apparently i don´t root device... when i copy the file write me WARNING your device is not rooted :eek:
[Sony Xperia P, U, Sola, Go] akkufix:
So, how you run this rom and how you got it on your phone without cwm and root?

You also can use "adb push" to get files on your phone by making writing to phone avaiable.

adb shell ==> mount -o rw,remount /sytem
[Sony Xperia P, U, Sola, Go] neohax:
ask

how about fixer bug v2? its working? or still had problem with sensitif touch when charger is plugin...?
[Sony Xperia P, U, Sola, Go] AlexMercer30:
Hey! Excuse me! How can I root my phone with JB - 6.2.A.0.400! I have Xperia Sola! Please!

Thank u!
[Sony Xperia P, U, Sola, Go] soulhackereborn:
Its already rooted .... So no need ;)
[Sony Xperia P, U, Sola, Go] sok_ty:
how to root it after flashing this ROM

HI could you tell me how to root after flashing this ROM?
[Sony Xperia P, U, Sola, Go] Anthrax:
The answer is already above your post.... please learn to read before asking bro....