yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] CoolrunnerII:
You have to flash the .zip file first. Then you use fastboot to flash the boot.img file.

There is a boot.img file inside the .zip-file so it will overwrite whatever kernel you have install previously.

The auto-brightness fix is also in the LCD power .img file. (the difference between the two is the addition of "//" on one line in board-htkovsky-panel.c)

I guess I will release a new cm-7.zip ota package with the new kernel when I have tested it some more.
[XPERIA X1 Android Development] wallaceff:
Can I just put a boot.IMG inside a zip file and flash it from recovery like on other phones? Could you start packaging the kernals that way and renaming them some custom zip name with the date (just to keep things consistent)?
[XPERIA X1 Android Development] CoolrunnerII:
The zip-files are called a OTA (Over the Air) package. They contain a binary program than reads a setup script that copies the files to the correct place. So just putting the kernel in a zip wont work.

Of cause when I have tested it a bit more I will push the kernel to github and compile a new OTA package that contains the entire android system and the new kernel.

To write boot.img you have to reboot your phone while holding down the power button, connect the USB cable and then run:

sudo fastboot flash boot.img boot
sudo fastboot reboot

(In windows you dont need sudo)
[XPERIA X1 Android Development] attisa:
Every update.zip can flash boot.img alongside of system and data partition! we may delete system folder and also delete the ralative scripts on the updater-script to make a flashable boot.img zipped package!

I make it and it works!
[XPERIA X1 Android Development] wallaceff:
That's more what I'm thinking. What files did you leave intact inside the zip?
[XPERIA X1 Android Development] Marcintosh:
You mean flash the new .zip release? Can't I just use my current ROM, rename the .img file to boot.img, place it in the fastboot folder, and flash the new kernel?
[XPERIA X1 Android Development] kuskro:
You are great, congrats. Next step the wifi drivers :D
[XPERIA X1 Android Development] attisa:
Use this zip! You can flash it via recovery! It only delete the old boot.img from the boot partition and replace the new boot.img. It does'nt affect

system and data partitions.

Also you can extract the zip and replace any other boot.img and repack it (even without pc by using xplore (for example))!

http://www.4shared.com/zip/Ki4DarIF/flashable_bootimg_crii_2013010.html
[XPERIA X1 Android Development] Marcintosh:
I just reflashed the ROM and auto brightness doesn't seem to work. I flashed the LCD power kernel. Should I flash the auto brightness fix kernel instead?
[XPERIA X1 Android Development] CoolrunnerII:
I have tested the new kernel now. For the first time charging the battery fully and then discharging.

The results are positive, but not spectacular. With light use you would get about 30 hours with the old kernel.

Now I just passed 30 hours and still the battery is at 3750 mV. The phone dies at about 3650, and with some luck I may get 40 hours.

So I found one cause of battery drain, and probably still have one or two more to find. :P
[XPERIA X1 Android Development] CoolrunnerII:
When the phone had been on for about 46 hours the 3g modem turned off, so I guess that is the usable battery time.

Almost two days is really great compared to 30 hours we got previously.
[XPERIA X1 Android Development] blackie333:
That is very good news, you are X1 kernel magician :highfive:
[XPERIA X1 Android Development] wallaceff:
What's next on your list?
[XPERIA X1 Android Development] SDogo:
Wow.... you are doing a really good job with the kernel.
[XPERIA X1 Android Development] CoolrunnerII:
First I have to finnish with the pannel driver. It looks like it was worked on intensively for a while, and then just dropped when it started behaving more or less.

It actually freezes the cpu for more than a second after pressing the power button. So that is one of the reasons it takes 3-4 seconds before getting a picture. Sometimes it even takes so long time to get the picture on the screen that it goes back to suspend before showing the unlock-screen.

I am also going to connect the phone to an external power supply and measure what the battery drain in suspend is now. Depending on that I'll know what areas may increase the battery life even more.
[XPERIA X1 Android Development] kuskro:
Hi, just tell you that I disabled suspend (wakelock) with a script for init.d and the wifi works without problems with your last stable kernel (neither misconnections nor disconnections). Also, I think that the current suspend process drains the battery because when I disabled it the phone consumed less battery. Maybe a temporary solution is disable suspend from the kernel.

Best.
[XPERIA X1 Android Development] kuskro:
Well, I was testing your last kernel (the one with LCD power off) on ZeamDroid and it works pretty well (screen artifacts aren't important). I got some wifi disconnections but it's dued to the suspend problem, as soon as I disabled the wakelock the wifi problems disappeared. I could not give you feedbacks about screen brightness because I disabled it via modifying the framework but I think I can manually turn it on again (I will try it later).

I going to do minor changes over the last ZeamDroid version to have this kernel working on it. I think it can help you to get more feedback about it, so today I'll release a new version of ZeamDroid with your new kernel.

I making some tests about the battery duration with and without suspend process. I will tell you something about later.

Many thanks for your work, you are the only one that can give light to our old xperia x1. Please, I beg you help to solve wifi problems to have wifi-tether working.

PD: I think that the hw key bugs that people mentioned over your rom are because of the default lockscreen and the animations. Disabling the animations is ok but not enough, you need to disable the lockscreen, also.
[XPERIA X1 Android Development] CoolrunnerII:
Hi

I haven't looked into wifi tethering at all. Maybe you could summarize what the problems are? and what steps you would expect to do to get wifi tethering and where it goes wrong.

If tethering needs ipv4 routing you at least have to load all the networking modules that are included in the boot.img files I have uploaded. (They are not included in the ota package)

I have a feeling you may have to turn off power saving in the wifi-card to get it working. That is something I have looked into before, but never figured out. It should be possible to do a ugly work-around to make it work anyway, but I hope to avoid that.
[XPERIA X1 Android Development] kuskro:
I lack experience, too. But I'm sure that part of the problems aren't in the kernel, I think that the problem is in iptables, wpa_suplicant and tiwlan.ini and maybe we need to boot a new wlan.ko module through init.d. Does the kernel support netfilter (CONFIG_NETFILTER, CONFIG_IP_NF_IPTABLES and CONFIG_NETFILTER_XT_MATCH_MAC)?

Now, I'm overwhelmed because of my job and I can find time to modify the rom. Sorry.
[XPERIA X1 Android Development] neoofoox:
In the first post the file: update.zip is a android ROM you just install it via CWM like you said first. (install via SD-Card....) That is the latest version from zargloub
[XPERIA X1 Android Development] neoofoox:
Which multiupload link?
[XPERIA X1 Android Development] Elibl:
missed call reboots of course!

i can't get usb storage and adb to work. on firstboot usb storage works (no adb and get no debugging notification in status bar). on secondboot after installing gapps neither usb storage nor adb is working any more (get only usb connected notification in status bar but when selecting it pops up and closes immediately again) and without sdcard i don't get any usb connected notification.
[XPERIA X1 Android Development] aseteo:
It would seem as though the USB problem would be an OS problem and not a kernel problem, if it works before installation of google apps, just saying

also, was still having screen hangs, camera still wasnt working, and now the music player was hanging the screen.

Task 29'd my phone and starting over from scratch with the latest update, hope this works!
[XPERIA X1 Android Development] ryo2456:
hey, I forgot you can go to setting > call setting to enable the In-call touch UI

then you can end the call by touch the screen
[XPERIA X1 Android Development] Pete Rask:
Hmm, just noticed I had a missed call without a reboot. Strange?!

Btw, it's nice that some important things have started working alright. LCD is waking up without touching the screen and no more buttons stop working :)
[XPERIA X1 Android Development] ryo2456:
Um, I got the missed call issue too.

But only in ring mode, not in silent mode.
[XPERIA X1 Android Development] wallaceff:
Is anyone here using Viber with this rom? I'm using it for the free messaging and not the voice component. I'm having bit issues in that when I send a message, the message sends (successfully to the recipient) then the phone reboots. Is anyone else having that problem?
[XPERIA X1 Android Development] ashwin1234:
http://webcache.googleusercontent.com/search?q=cache:http://www.multiupload.com/LCFVIYC7ZH

That is the link to the cached version. I have tried googling for the file and only find multiupload(which is dead), filebulk (which is dead), and uploadhere which is also dead. There is no way for me to obtain it now. Could someone please upload the LK bootloader?

The name should be : XPEROID fastboot.zip (15.44 MB)
[XPERIA X1 Android Development] Pete Rask:
Here ya go!

XPEROID+fastboot - Mediafire

XPEROID+fastboot - 4shared
[XPERIA X1 Android Development] Elibl:
I packed my Xperoid Fastboot folder with lk and KovskyAdvancedRUU put in and boot.img from latest Zargloub kernel in fastboot folder:

http://www.file-upload.net/download-4105559/XPEROID-fastboot.zip.html

EDIT: oh damn to late my site wasn't updated
[XPERIA X1 Android Development] ashwin1234:
Thanks guys. Going to flash it in a few hours. I have one last question, is the google Apps included in the build or do I flash the one from the NAND Beta thread?
[XPERIA X1 Android Development] Elibl:
not included flash the one in thread
[XPERIA X1 Android Development] ashwin1234:
I am seeing much worse wake-up stability than the 19th november ROM. This one wakes up instantly sometimes or does not wake up at all, requiring a battery pull. Tried experimenting with widget locker and same thing happens, phone screen just does not wake up. At least in the 19th Nov ROM, could just touch the screen to wake up. This one I can interact with it but the screen is just blank.

Already tried reinstalling twice after task29's.
[XPERIA X1 Android Development] Elibl:
@ashwin1234 the adw launcher ex causes this problem you just need to install another launcher. till it is installed connecting usb sometimes helps to wake up

i'm using adw launcher 1.3.6 stand alone and it works flawless...

my indicator was stucked too at 100% with 8th february kernel flashed boot.img from 10th february kernel and i noticed something strange: the phone wasn't booting again with usb plugged in only without usb and inserting it after the linux text appears. flashed sundreams boot.img booted indicator -> 1% flashed boot.img from latest kernel -> indicator back.

@zargloub i don't understand much of the datasheat but it looks like there are now much better possibilities to modify kernel for battery calibration... nice work zargloub!!!!!!!!!!!!

EDIT: with latest kernel the indicator goes immediately at 100% while charging...
[XPERIA X1 Android Development] ashwin1234:
Will check out ADW without EX. Will the default lockscreen work the same if I replace the ring style with any other style?

I seem to have an app in some chinese writing and the icon is orange in the shape of a phone with a lightning bolt on it. No idea how to use it as it is in chinese. Using system app remover, it is listed as phoneEX.apk . What is this and is it safe to remove?
[XPERIA X1 Android Development] yuyamin901002:
Is that kernal still in developing?

Great work 4 the new kernal. Many problems have just been solved. I wanna know if this item is still developing

---------- Post added at 12:41 PM ---------- Previous post was at 12:33 PM ----------

The orange Chinese app is called'Liuding Call' which can solve the problem of restarting. If u have that app, in a normal mode(with ur ringtone on), the phone won't restart when a missed call comes.
[XPERIA X1 Android Development] ashwin1234:
I have noticed 2 problems so far:

-the phone screen NEVER comes on when playing music once the screen is locked, must do a battery pull

-there are still window animations even though it is disabled through settings and also using spare parts.
[XPERIA X1 Android Development] wallaceff:
I use Zeam launcher. Wakeup is fine
[XPERIA X1 Android Development] ashwin1234:
Try playing a song using the Music app, press home button to minimise it, and lock the phone. There is no way to wake the phone up anymore. I can feel the phone vibrate as I touch the unlock slider. I am using the sliding tab lockscreen style.

The only way is to remove the memory card so the music stops, only then the lockscreen will appear when waking up.

Edit: I have tested with other music players, and the screen never wakes up when a song is playing. I have already disabled the lock screen music controls in CM settings and also in the music player apps. This problem was never here in the 19th NOV build. I used to be able to pause and skip tracks in my lockscreen itself in the 19th NOV build.
[XPERIA X1 Android Development] yuyamin901002:
How to add the Zeam Lanucher to the new kernal?
[XPERIA X1 Android Development] wallaceff:
Just downloaded it and chose it as default.
[XPERIA X1 Android Development] Pete Rask:
Zeam Launcher is a home screen replacement for ex. the already installed ADW launcher, and has nothing to do with kernel :p Search for it in market. Download and install.
[XPERIA X1 Android Development] wallaceff:
Can somebody please test viber for me and see if it crashes after sending a message?
[XPERIA X1 Android Development] attisa:
Hi there! And thanks for your great work!

Can anyone make a mirror for the latest update.zip in the another server?:D:D

Thanks alot! I can't download from this server!!:mad:
[XPERIA X1 Android Development] yuyamin901002:
http://115.com/file/bex0bbde

This is a Chinese mirror link. I don't know if it works in ur network.
[XPERIA X1 Android Development] attisa:
Thanks! This link solved my problem! Downloading...!:D

I am using the 20 november build for about one month and was great! now I am Curious to see new builds!!:D:D
[XPERIA X1 Android Development] aseteo:
Okay fixed the camera problem i was having, where the camera would enter the program, but as you try to take a photo, it crashes, it happens that the phone crashed while taking a picture, and that corrupted pic as trying to load in the camera gallery, and was crashing the camera, deleting the file solved it, the camera quality is poor on this build, a previous version, (cant remember which one), the autofocus and stuff worked and the pics came out nice, but i see that zargloub has put that on the to-do list, thanks

I took the good pic on the 9th of january, so i believe it was the previous version of Android, the one that crashed upon missed call had the camera properly working,

Idk if that helps,
[XPERIA X1 Android Development] yuyamin901002:
it still crashes when missed call comes, however, in silent mode, all problems can be solved. In silent mode, u just have to choose a ringtone in sound setting, it could still ring but not vibe and not crash.

---------- Post added at 09:03 AM ---------- Previous post was at 09:01 AM ----------

The new build solve lots of problems. Try it now!
[XPERIA X1 Android Development] ryo2456:
Actually I think the volume in call is too high. can it be lower?
[XPERIA X1 Android Development] Elibl:
this is how the latest kernel behaves for me:

battery level went normally from 100% to 80%. a few min before dying it jumped up and down between 1,2,3% and 80% then the phone went off immediately without shutting down

recharged from 80% to 100% in half an hour

battery life was good so far

going to try wipe battery stats in cwm after full recharge...
[XPERIA X1 Android Development] ryo2456:
I have wipe before I flash the new kernel, the % was drop slowly and the drop of voltage look like same as usual.......
[XPERIA X1 Android Development] Elibl:
yep after the wipe it looks pretty good for me.

you're doing a great job zargloub!!
[XPERIA X1 Android Development] yuyamin901002:
what did u mean 4 the new kernel that preforms well? boot.img or update.zip?
[XPERIA X1 Android Development] Elibl:
the kernel is packed to boot.img or am i wrong? so the update.zip contains rom and kernel... i ment the latest kernel (boot.img) flashed it via fastboot. the rom is still 20th november sun dream rom
[XPERIA X1 Android Development] yuyamin901002:
:DI got what u mean,Thx~Maybe i was wrong. 4 making sure, do u mean that packing the latest boot.img into update.zip(to replace the boot inside) and install update.zip in recovery can directly update the kernel?:D
[XPERIA X1 Android Development] Elibl:
yes that would be a possibility...

but you can also directly update the kernel without new install. just via fastboot:

-plug in usb

-reboot in bootloader or turn phone on while keeping power pressed

-put the boot.img in your fastboot folder

-type in cmd/terminal:

cd "path of boot.img or fastboot" (or simply open the command prompt by: rightclick + shift in fastboot folder -> open command prompt here, then you can skip this step)

fastboot flash boot boot.img

fastboot reboot

and that's it. pretty fast ;)
[XPERIA X1 Android Development] yuyamin901002:
u r so patient;)Thx~~
[XPERIA X1 Android Development] ryo2456:
yeah, the performance looks better. the voltage is 3840 mV at 95% after 7:3X:XX.
[XPERIA X1 Android Development] ashwin1234:
Is it me or does nobody else here ever play music on their phones? The screen never wakes up when any music is played, regardless of the app used.

To those that actually managed to get the screen to come on when music is playing, how do you do it?
[XPERIA X1 Android Development] skrzypens:
Have U turned out animations? After doing that I have no problems with screen wake up.

Also when u put a pin code it used to not turn on. Without animations does well.
[XPERIA X1 Android Development] Elibl:
boah damn using the headset is life-endangering for the ears just tried it.

for me the screen wake up behaves normally while music plays with standard app and agile lock...

but its right screen wake up isn't yet okay sometimes i've BSOD yesterday for example in call couldn't even hang up (using endcall button)
[XPERIA X1 Android Development] wallaceff:
I know it's on the Rodin list, but my problem with wifi ruins my experience, everytime my screen turns off and i'm connected to wifi, when I turn back on, it cannot re-associate. It will scan etc etc, but not find anything to connect to. It might be my router not liking the lack of mac address, I don't know. Even tried setting a fixed ip address which does connect the first time, but same problem occurs. The int answer is to turn wifi on and off again. I've tried changing the sleep policies, but that seems to lock up my phone after an hour. Anyone else sinister problems?
[XPERIA X1 Android Development] Elibl:
exactly the same here... and data isn't also that stable especially in market... maybe the switching between green and white in status bar has something to do with?!

btw has someone the same issues with adb and usb storage not working? (adb even no notification) tried a lot different installation ways/orders but can't get them to work
[XPERIA X1 Android Development] ashwin1234:
All animations are turned off. I tried using the default Music app and also Mort player, but both have the same problem. I also tried disabling the lock-screen controls, but that did not help at all

I guess I will have to try out Agile lock then, because the default lockscreen does not wake up for me when music is playing. But the problem is still there when I disable the lockscreen using No Lock
[XPERIA X1 Android Development] Elibl:
also animations in cyanogenmod settings? which launcher are u using?
[XPERIA X1 Android Development] yuyamin901002:
Thx 4 ur help about flashing boot.img. There r still several problems with my battery. After updating the boot.img(gc1c1691), i charge the battery to 4189mv(the percentage keep indicating 100%, so i look at the mv 4 accurate battery).Than in recovery i wipe the battery. However, it seems not work cause the percentage has not decrease and keep 100% while the voltage decrease. That i still can't got the real percentage 4 my battery. That problem made me crazy. Do u have some suggestions?:)
[XPERIA X1 Android Development] zargloub:
I'm testing too the gc1c1691, it's strange that accum value does not decrease. What value do you see in dmesg (connect with "adb shell" then type "dmesg")

The lines interresting are :

<7>[ 5054.047149] ds2746 debug : Battery 876, accum value *792*, current accum capacity=1020 BIAS -25 0

for example, here the percentage of my battery is 792/1020 , indicator is 78%

On this build, i tried to modify BIAS value to control accum value (this should, in theory, permits to modify increase and decrease steps), but it seems to be not very fiable, specialy when full charge finished ...

So i'm coming back to more basic control, directly modifying accum value when low voltage or high voltage. That was not possible before, because accum value changes made Android reboot :) (bug with bad register used for temperature, then when you change accum value, Android read temperature of 47730294 °C, so shut down immediatly !)
[XPERIA X1 Android Development] ashwin1234:
Yeah, disabled all animations under display and also using Spare Parts. Is there an animation setting under CM settings? Had no idea. Am using Zeam Launcher because Launcher Pro has a buggy menu when opening speed is set to max. Also, I used the sliding tab lockscreen, because the ring one takes time for the animation

What launcher and music app combo are you using? Zeam+default music+Agile lock?
[XPERIA X1 Android Development] Elibl:
@yuyamin901002: flash boot.img from old 20th november rom -> let battery discharge -> flash latest boot.img again and your indicator will be okay after a full cycle (but first answer zargloubs questions;))

(had the same issue too with some others and for us this was the only way to get it back)

@ashwin1234: i'm using adw launcher standalone + agile lock but i've problems with adb and usb storage don't know if its launcher related...
[XPERIA X1 Android Development] ashwin1234:
How do I get the 20th nov kernel? I can see the links to the latest kernels, not the original one. I have the XPEROID zip from the NAND thread. That one was the 19th NOV build. Is the boot.img the same as the 20th?

Also, when you use ADW+Agile lock, can you play your music and have the screen wake up while the music is playing?
[XPERIA X1 Android Development] Elibl:
is your battery level also stucked?

should be the same if not doesn't matter using one of the first kernels from this thread should also work i think. (it's only to let the level decrease)

but first look via adb shell for dmesg... like zargloub said

wake up is fine while music is playin... but adw standalone not ex!
[XPERIA X1 Android Development] yuyamin901002:
i give u two dmsg:

<7>[13384.975646]ds2746 debug: Battery 1381, accum value *4294964093*, current accum capacity BIAS -25 0

<7>[13384.976776]ds2746 debug: level 100 voltage 3796<max=4256>

i use the same kernel as u did, however the percentage keep 100%. or if i use the wrong way to calibrate the battery?