yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] ashwin1234:
Just asking. The file in the first post is 70+MB. If I want to start using the NAND ROM, I just flash that in the CWM once I do the LK bootloader stuff?

Could someone please point me to the latest ROM if the one in the first page is not the actual ROM?

Is this one: http://xdaforums.com/showpost.php?p=22014505&postcount=226

newer than the one on the first post?

Many thanks.
[XPERIA X1 Android Development] neoofoox:
With the today's version, I think the backlight is brighter but I don't know exactly how it was before ;)^^

I don't really see changes on the LED bright, but I trust you that you made some changes ;)
[XPERIA X1 Android Development] ady_95:
Even if I don't know anything about kernel development, I realised from the commits* that the screen backlight has changed, the buttons' LEDs brightness has changed, the qwerty keyboard's LEDs brightness has also changed.

But the side LEDs' brightness doesn't appear in any of the commits.

*it's amazing how C programming language is so easy to undestand

Later Edit: The coloured LED's brightness might have something to do with drivers/leds/leds-microp-htckovsky.c lines 73-77. BUT I'M NOT SURE!
[XPERIA X1 Android Development] mahmoodifar:
I think it takes more that other kernel to show you the unlock screen, you know when you push power button
[XPERIA X1 Android Development] Elibl:
confirm that maybe something with wifi

battery is pretty fine now

lcd backlight brightness is now between before and last kernel
[XPERIA X1 Android Development] mahmoodifar:
yes battery is better now but there is a problem not this kernel, all kernel

In battery programs, specially battery monitor ,they show the battery 1045 mAh while it's 1500 mAh

can we define it 1500mAh to rom specially in kernel, maybe this is the problem and rom can't estimate percentages correctly
[XPERIA X1 Android Development] Pete Rask:
I'm afraid it's more complicated then that. Could it be that 1045mAh refers to 70% of real discharge capacity... :confused: as you can't discharge a battery more then that (80%, 1200mAh should be safe too)

The percentage is calculated from Volt readings and not storage capacity (mAh) :)

OT. In practise a discharge rate on 0,01C should make a phone in this case stand for 100h, but, calculated on my 10h of uptime I have around 100mAh in power consumption).
[XPERIA X1 Android Development] zargloub:
It's a bit more complicated.

There's an internal register in the battery, that increase or decrease, managed by battery chip.

We can correct values, when we estimate it's not good, in the driver (for example, if you don't do anything, the register grows while it's pluged, even if charge finished).

We estimate in the driver the "full" value of this register, and calculate ratio with it.
[XPERIA X1 Android Development] Pete Rask:
Thanks for your detailed top-up on this topic! It's kinda interesting :)
[XPERIA X1 Android Development] ashwin1234:
How do I reroot using z4root? It is stuck loading forever at the loading exploit screen(both temporary and permanent)
[XPERIA X1 Android Development] squallvai:
yeah thats happen to me too.... reflash your ROM will solve it
[XPERIA X1 Android Development] ashwin1234:
So once I reflash my ROM, I would be rooted and I can boot with the SD card in?
[XPERIA X1 Android Development] squallvai:
No You can't...
[XPERIA X1 Android Development] Elibl:
yes this apk isn't useful yet cause system messes up and reroot doesn't work...
[XPERIA X1 Android Development] Elibl:
i currently can report a bug with battery level again...

i had two cycles working perfectly but this evening after android shut down as it should cause of empty battery it showed after plugging in and boot immediately 99%
[XPERIA X1 Android Development] yuyamin901002:
which rom do u use 4 the latest kernel?have u tried Jerrytan's icedroid or still use the sundream's rom?
[XPERIA X1 Android Development] Elibl:
latest icedroid
[XPERIA X1 Android Development] yuyamin901002:
i flash the latest icedroid v3 and find it very slow while using the GO launcher. that needs too much memory
[XPERIA X1 Android Development] Elibl:
for me it appeared a lot faster but i'm already a while at icedroid... don't know

but please post that in the icedroid thread or cm7.1 thread here's kernel...
[XPERIA X1 Android Development] skas_2002:
14mAh - normal phones consume in standby 5 mAh ))).
[XPERIA X1 Android Development] ashwin1234:
Mine is either stuck at 100% or 1%. I don't really care because I use the BMW to monitor the voltage. Is there anyway to make the battery level always higher or to disable the low battery LED's? Mine are always on which drains so much power and it just looks stupid with the red lights on permanently.
[XPERIA X1 Android Development] aseteo:
has anyone else's autofocus stop working on the Zargloub updates?
[XPERIA X1 Android Development] mahmoodifar:
are you using the latest kernel ?

how did you update the last kernel?

you should update just like this :

http://xdaforums.com/showpost.php?p=22509076&postcount=58
[XPERIA X1 Android Development] ashwin1234:
Crap, I had flashed the kernel and then updated to Ice droid v3. Did not realise that the ROM had it's own kernel. All is fine now. Standby battery drain is about 70mA in flight mode. Isn't this pretty high? If it could be brought down to 30+, we would have twice the standby battery life.
[XPERIA X1 Android Development] aseteo:
Hey Guys,

I flashed to the latest kernel (March 1st), battery meter was giving some really wrong values, (100% to 65 in 2 hours, 1% lasting over 4 hours etc). The battery died on me, plugged it in to charge, upon restart, the phone says charged, now battery meter is stuck at 100%. Anyone else has this problem, any solutions?

EDIT

Okay, i'm pleased to report that the Battery meter is up and working now after a full recharge and unplug, thus far its lasting a pretty long while (100% from 9am, its 3:45, 87%, GREAT)

Plus the backlight is okay,

Thanks alot Zargloub!! You're making Android a reality for the X1!!! :D :D :D :D :D :D
[XPERIA X1 Android Development] Elibl:
did it ever work before?

it looks like it happens when i start the phone unplugged with empty battery...

and it only shows the "corrections"? in linux: "voltage... current..." and turns off again

afterwards the immediately 99% and battery level isn't fit anymore (goes very fast down and stays long at approx 12%)
[XPERIA X1 Android Development] blackie333:
@Aseteo, could you please post some more battery life results with latest kernel?

Can I expect at least 30 hours of standby?

And also, is battery meter updated correctly a decreasing slowly to 1%, or X1 shuts off after reaching (for example) 15%?

Thanks
[XPERIA X1 Android Development] ashwin1234:
WOW, your battery life is crazy. Mine can barely last a day in flight mode.
[XPERIA X1 Android Development] Light_Sephiroth:
I've been using the last release of the kernel with sundream's rom removing ADW and installing LP Sense 3.0.

It's really good, battery meter is better than ever, but i always prefer to keep voltage under control with battery monitor.

I have 20 hrs of battery with edge always active, cpu set min 128, max 512, backlight at minimum.

And also some wi-fi.

The thing i noticed is that when there is an high usage of the phone battery meter goes down quickly, and also does the voltage, but, after some rest the voltage goes back to the right value while percentage doesn't.

Only when, in these situations, you go under 14% of the battery, also battery percentage increases after rest going back to 14%.. that's good! ;)

Today i'm testing cpu max at 614... will report tomorrow.
[XPERIA X1 Android Development] Elibl:
confirm that exactly the same behaviour for me :)
[XPERIA X1 Android Development] zargloub:
Great !

I wasn't sure of result.

When voltage is very low, a ratio is used to calculate a theoric percentage in a range of 1-15%. The acr value (used to indicate percent to user) is ponderated slowly by the theoric value.

For now, a problem remains on battery, that i corrected locally (but i will post on next release, otherwise there will be one kernel by day :) ), is when phone booting, there is a check on acr value while battery i2c is not initialized, so invalid value is read, so maximum value set as a correction, so value is 100% event if battery is empty.

Maybe next release this week ...
[XPERIA X1 Android Development] yuyamin901002:
i think the 3.1 kernel is nearly perfect 4 battery.Thx a lot~
[XPERIA X1 Android Development] mahmoodifar:
Thanks for great job

I have a question

Is that the final battery time for android in X1 and changing kernels just accurate the percentage ?

or kernel helps usage of battery ?

because it's to short, I have to charge my phone twice a day in normal use while in Windows I charge it three time a week :confused:

another thing is the time for charging between 99% to 100% takes 1 hour and half while between 10 to 99 takes half an hour, sometimes more

Thanks again

Is that necessary to leave it to become 100% or 99% is fine
[XPERIA X1 Android Development] Elibl:
no

yes some

you have to leave it! with battery management app you see it from the voltage -> 4199mV is max

when the percentage is not right fitted it may shows already 99% at lower voltage than 4000mV -> only when it shows 100% it's fully charged

probably corrected at next update... if i understood right...

thanks zargloub :)
[XPERIA X1 Android Development] yuyamin901002:
After solving the battery problem, hope more things may be solved like auto-focus:D
[XPERIA X1 Android Development] aloysius987:
1. solve the speed, certain games lag...

2. which overclock app can i use?
[XPERIA X1 Android Development] ryo2456:
I think it is not important about the speed of game.

you can use setcpu. But why don't you set the cpu via CM setting? and it already oc to 614.
[XPERIA X1 Android Development] Elibl:
hey zargloub how is it going? what about to share your latest work? or how is progress?

BTW: i think maximum value of lcd brightness is still too low i nearly see nothing outdoors...
[XPERIA X1 Android Development] zargloub:
Hi. I'm currently working on wifi driver and gps (i know gps library is part of cyanogen, not kernel, but it would be great if gps would work).

But this week, maybe next week too, i have lot of work to do on kernel of future devices, instead of past devices, for my real job i'm paid for ... :)
[XPERIA X1 Android Development] Elibl:
thanks for reply ;) gps would be awesome :D

just wanted to know what's going on ;)

for lcd maybe it's not the backlight but the lcd itself that has wrong values...

but i know nothing so could be also totally crap what i'm telling:p
[XPERIA X1 Android Development] zargloub:
The reduction of backlight brightness was quick and approximative. It would be betteer to search real range value to send to hardware, but need to find datasheet, find information, look how microp driver works, etc ...

diff --git a/drivers/leds/leds-microp-htckovsky.c b/drivers/leds/leds-microp-htckovsky.c

index 5989ca6..3cd603c 100755

--- a/drivers/leds/leds-microp-htckovsky.c

+++ b/drivers/leds/leds-microp-htckovsky.c

@@ -82,7 +82,7 @@ static void htckovsky_update_backlight(struct work_struct* work) {

if (brightness) {

buffer[0] = MICROP_LCD_BRIGHTNESS_KOVS;

buffer[1] = LED_FULL;

- buffer[2] = brightness;

+ buffer[2] = brightness >> 3;

microp_ng_write(client, buffer, 3);

}
[XPERIA X1 Android Development] Elibl:
yeah i already read that on git ... and was a bit surprised about the simplicity :D

thanks a lot for your work i'm waiting eagerly for gps :p
[XPERIA X1 Android Development] wallaceff:
Great news. I'm personally hoping that wifi can be fixed to the point where it doesnt cause the phone to crash and the battery overheat when the screen goes off and wifi is left on.

I imagine that GPS is going to kill the battery?
[XPERIA X1 Android Development] Elibl:
that would be pretty awesome
[XPERIA X1 Android Development] mahmoodifar:
could you do something about brightness

It's really annoying

I can't see anything in daylight with max brightness

Thanks
[XPERIA X1 Android Development] neopeek:
I have modified some parts of the boot.img for my new test CM7 (read: not modified the kernel, just the init's and rc's). People are free to help testing. Downloads are available on my forum.
[XPERIA X1 Android Development] zargloub:
# cpufreq configurations

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 122880

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 614400

:cool: well done !

I'll package new kernel versions with your modified rootfs ...
[XPERIA X1 Android Development] neopeek:
I corrected this from min to max. You posted old values, right?

I always asked myself why people experience battery probs.
[XPERIA X1 Android Development] zargloub:
Yes i posted the old values with bug for min value, to show there was a problem you found.

I still correct some battery probs when i encount some. Only push on git.

I'll post a new kernel maybe next week, because a lot work.
[XPERIA X1 Android Development] neopeek:
Can you also have a look at the netd socket service and integrate it. It's in init rc's and necessary for latest cm7's due to a nightly change.
[XPERIA X1 Android Development] zargloub:
netd is a part of android, like libgps for example.

You have to modify the configuration files to include it when compile.

If you post the configuration you use and the way you compile it, i'll have a look.
[XPERIA X1 Android Development] neopeek:
I meant it like this:

Have a look at the init.rc's in my modified boot.img. You will see that it contains two additional lines:

service netd /system/bin/netd
socket netd stream 0660 root system

Without those two lines no actual CM7 will boot up on our devices due to a nightly change in CyanogenMod. I integrated those already in my modified boot.img.
[XPERIA X1 Android Development] zargloub:
Ok. Didn't understand what you was asking.

netd is indeed present in your cm7 release. I just checked.

Service just need to be launched in init.rc.

I'll now use your filesystem to include future kernel releases, so it'll be present.
[XPERIA X1 Android Development] neoofoox:
I am flashing new version now.

I have one question, neopeek said that it would speedup process if you work with midnight on the kernel, do you work with him?
[XPERIA X1 Android Development] Elibl:
"396	.low_voltage = 3400,

396 .low_voltage = 3200,"

yeah again more battery ;)

hopefully not too low

thanks again zargloub for your frequently continuously and reliably commits :)
[XPERIA X1 Android Development] helicopter88:
I'm being busy,so don't expect anything from me in this week..
[XPERIA X1 Android Development] neoofoox:
hm thats bad, but will you work together when you have time? Maybe you could ask alex (sp3dev) very friendly to join you.
[XPERIA X1 Android Development] mahmoodifar:
Wireless can't connect neither in WEP nor WPA with new kernel :confused:
[XPERIA X1 Android Development] neoofoox:
When I remove the key (password) from the Wifi router, the signal strenge is excellent but when I enter the key is shows not in range, so it cannot connect (and from this position is worked allways) I have WPA2.

So Wifi doesn't work for me either
[XPERIA X1 Android Development] Pete Rask:
Can't connect either. Stuck on "obtaining IP address".
[XPERIA X1 Android Development] zargloub:
It seems that correction on wifi strength value read from wifi chip causes problem to Android.

I'll revert the commit tomorow, waiting to compile myself Android and to see what is happening.
[XPERIA X1 Android Development] Elibl:
for me it doesn't find any network on wlan

also data was very weak and unstable for me this week. sometimes i just couldn't get it to work...
[XPERIA X1 Android Development] radzix27:
Battery still shows 100% after reboot. I use newest kernel (gbe0fc00) and IceDroid v6
[XPERIA X1 Android Development] taninos:
Hi zargloub, first of all congrats and thanks a lot for being the only one that show a real interest to finish his work with the xperia x1 kernel.

I write you because I've tried to load on boot a init.d script to load the module wlan.ko.

I'm having problems with IceDroid v7 and Wifi-Tether app. Could you help as with Wifi-tether?

#!/system/bin/sh
#
# Load any extra modules

MODPATH=/system/lib/modules/

for i in `ls $MODPATH`
do
modprobe `basename $i .ko` >/dev/null 2>&1
done
exit 0

Best.
[XPERIA X1 Android Development] mahmoodifar:
How can I set my cpu lower than 128

I wanna test the battery on that situation

I think 128 is more for idle time

What do you think about that ?

Thanks
[XPERIA X1 Android Development] helicopter88:
You have to add a lower frequence in acpuclock-arm11.c and in .config
[XPERIA X1 Android Development] mahmoodifar:
Thanks but I couldn't find them

are they in kernel ?

Is there any program that able to do that ?
[XPERIA X1 Android Development] mahmoodifar:
I think wifi was better in "March 19th 2012" than "March 23th 2012"

the " March 23th 2012" has a lot of bug and I can't download and in viber and skype
[XPERIA X1 Android Development] taninos:
It's great having you here. Could you help us with wifi-tether?

I try to load the wifi interface, nats modules and wlan.ko, but wifi-tether doesn't works.
[XPERIA X1 Android Development] zargloub:
Hi, you do not need to flater me to have a response :)

You should use insmod instead of modprobe. modprobe uses modules names, and insmod uses paths.
[XPERIA X1 Android Development] zargloub:
Thanks !

I didn't noticed there was a 19200 configuration in this file.

I added it.

So i'm testing it and i'll post a new version today.

EDIT : Won't post kernel, beause catastrophic (battery usage, shutdow everytime, etc ..).

So i use March 19th 2012 g7e16eb7 version.

Lot of work this week and next week. I'll work again on kernel maybe at the end of month.
[XPERIA X1 Android Development] taninos:
Thank you so much. Have you tried to use wifi-tether in IceDroid?
[XPERIA X1 Android Development] zargloub:
I do not use thether. Sorry.
[XPERIA X1 Android Development] taninos:
Is the kernel ready for tethering? I'm unable to make it work in Icedroid.

Can we use your kernel with a Froyo build? In Froyo roms wifi-tether works.
[XPERIA X1 Android Development] mahmoodifar:
Hi zargloub thanks for everything you have done for x1

could you guide me about something that it kept my mind busy

I set my CPU from 128 to 384 and it works great and I think it can work lower than 128 for minimum and it's helping battery,am I right ?

or I'm wrong about that

did you test it in this situation, because I think 128 MHz for minimum is too high and it can work under that for idle time

could you set a kernel for test and set CPU lower than 128 like between 20 and 50 MHz for minimum

thanks
[XPERIA X1 Android Development] zargloub:
Hi, i think i won't work anymore on this device because my battery is near to death, and i need a working phone. It last 1h so it's not usable anymore.

If someone have a new, healthy battery he don't use and want to send it to me, send a private message, but i don't want to spend money on that old phone and i think i will rather buy a motorola defy plus :)

I update the last kernel version and way to build, and i hope sharing my work had been usefull.
[XPERIA X1 Android Development] squallvai:
So Sad to hear that you decide to Stop this development....

I Hope You Still willing to fix the kernel someday when you have a free time offcourse :D

Thanks a million for all your Efforts.. and Good Luck
[XPERIA X1 Android Development] Elibl:
Oh nooo :( sharing your work was great. Please continue developing :o we could all donate for a new one. If that doesn't work i would buy you a new one myself :)

Gesendet von meinem Sony Ericsson Xperia X1 mit Tapatalk
[XPERIA X1 Android Development] mahmoodifar:
Thanks for new kernel and new value for minimum CPU

I hope you could continue working on kernel

I really like working with android on my x1
[XPERIA X1 Android Development] taninos:
Open a paypal account that we pay you the battery.
[XPERIA X1 Android Development] zargloub:
I've just buy a Motorola Defy plus.

It's a great phone ! No more important call missed.

So i can give the xperia to my one year dauther who loves to play with. It's allready old, the glass is broken, volume buttons does not work, and battery is down.

It's a cool end of life for him !

All informations to build boot.img from scratch are in the first post of this thread. I hope that someone else will continue. All sources are public.

Anyway, it's now usable as a phone (if not at end of life like mine).
[XPERIA X1 Android Development] ashwin1234:
Your one year old daughter likes Android. The future still has hope!!!

Haha. :)
[XPERIA X1 Android Development] Elibl:
anyone tried the latest boot.img? for me it works well no problems at all...

@zargloub if your still here what you ment with not working well?

btw your work on this kernel was fundamental important! thanks for all you've done for this device

the only things are that battery meter goes to fast down for me and stays at least 7 hours at around 14% and that zargloub forgot to change back keys from his setting to build this kernel...

i'm going to try building it with normal key settings...

19Mhz is great ;)

i have around 4 hours more battery life :D

is it normal to get errors from drivers/net/wireless while building the kernel?:

make[4]: *** No rule, to build the target »drivers/net/wireless/wl12xx/wl12xx_platform_data.o«,

needed from »drivers/net/wireless/wl12xx/built-in.o«. End.

i installed a virtual machine with ubuntu and FriendlyARM Toolschain...
[XPERIA X1 Android Development] Light_Sephiroth:
If you succeed, could you please post it here?

By the way i have the same feeling about this new kernel, is very good.
[XPERIA X1 Android Development] Elibl:
of course but i need help i'm stucked with a lot of errors and warnings while building the kernel and after the earlier posted error it interrupts...

it's also my first experience with toolchain

EDIT: currently installing debian...
[XPERIA X1 Android Development] zargloub:
Hi,

What indicates "arm-none-linux-gnueabi-gcc -v" ?

Is this ok for the gc30016e without my volume key patch ?

http://www.file-upload.net/download-4262514/boot.img.html

For "not working well", i had suddenly shut down when unpluged, battery informations unusable, etc ...

I was wondering if it was battery almost dead or a problem with last commits.

So it was just my battery. Cool.

Btw, if someone want to thanks in spending 9€ to buy me a battery, you can send me private message and i will give you a postal adress :) ... but i dont want to open a paypal account, collect money and buy the battery. No time to spend on that.
[XPERIA X1 Android Development] mudenza:
zargloub thanks for your work :)

I could send my battery which is a bit used but what are the chances of you getting the other things to work? Such as GPS, Front Facing Camera and Auto Focus etc?
[XPERIA X1 Android Development] zargloub:
Thanks for your proposal, Elibl allready proposed to buy me one (it cost no really much more than shipping costs).

To be honest, while i have a new perfectly working phone, there is not so much chances i work a lot for the x1 anymore. Maybe one day when i'll have less work.

libgps.so is part of Android compilation, and i work only on kernel.

For the front camera and autofocus i think it's part of kernel, but there is a little bit work to understand how it works ...
[XPERIA X1 Android Development] Brickpsp:
Little update for recovery (5.0.2.8) ,it not important
[XPERIA X1 Android Development] Elibl:
here's my self-compiled boot.img also no serious changes...

http://www.file-upload.net/download-4265559/boot.img.html

i only made right silver key to android search-key

i'll have a look at the warnings i had during compilation but i'm very unexperienced and don't think i can change something seriously in the kernel