yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] seandean:
New Kernel - v3a

I have a new kernel and modules package for everyone to start using. This is version “v3a” and it’s faster and more stable than v2c.

I’ve also created a permanent workaround script (using a free market application to help) for end-users and distribution creators (e.g. Neopeek) that loads the keyboard modules and applies publicly tested tweaks to Android. The script assumes you’re using an EXT2 partition on your SD card, which is faster and more stable then file-based options. Please read the complete post before doing anything, this will hopefully reduce any confusion and errors.

Change log:

+ CFS kernel scheduler

+ CFQ I/O scheduler now default (CONFIG_IOSCHED_CFQ)

+ CPU frequency adjusting optimization (CONFIG_CPU_FREQ_MIN_TICKS=1 was 10) and (CONFIG_CPU_FREQ_SAMPLING_LATENCY_MULTIPLIER=500 was 1000)

+ Kernel debugging and certain associated options for stability (CONFIG_DEBUG_KERNEL)

- BFS kernel scheduler, now using CFS again (CONFIG_SCHED_BFS)

- System V IPC not needed (CONFIG_SYSVIPC)

- ARM V6K extensions not needed (CONFIG_CPU_32v6K)

- No firmware compiled in kernel, if it ever was (CONFIG_FIRMWARE_IN_KERNEL)

- No core dumps, saves us some memory (CONFIG_ELF_CORE)

Modules installation information:

If you’re booting into Android for the first time using HaRET and you’re using this version of kernel and modules you’re ready to go off the bat. If you’re replacing the kernel and modules however, you will be required to remove your existing modules BEFORE shutting down and installing this in Windows Mobile. Please follow the below steps to do this;

1.	Get into a root shell, whichever way you see fit

2.	Type: umount /system/lib/modules

3.	Type: cd /lib/modules

4.	Type: rm -f *.ko

5.	Type: sync

6.	Shutdown or reboot into Windows Mobile

Permanent workaround script installation information:

These procedures should be done before kernel and modules installation (if you’re using an existing system) or after booting into your new system (after finishing the Android setup wizard). Please follow the below steps:

1.	Get into a root shell, whichever way you see fit

2.	Type: mkdir /data/opt

3.	Get the attached script (autostart.sh) into that directory, whichever way you see fit

4.	Type: chmod 777 /data/opt/autostart.sh

5.	Install the free application “Autostart (Root)” from the Market

6.	Restart Android (via Windows Mobile) and moments after seeing your home or lock screen the keyboard will start functioning
[XPERIA X1 Android Development] zyotty:
why when i write mkdir/data/opt it wrote that mkdir/data/opt not found?i do this in terminal emulator.
[XPERIA X1 Android Development] daduy:
testing out soon! thanks SeanDean :D
[XPERIA X1 Android Development] cyberdesigner.net:
not "mkdir/data/opt"... it should be "mkdir /data/opt"

btw no need to fullquote SeanDeans post....
[XPERIA X1 Android Development] Oggy972:
Okay,

After 18Hours, every button works ! That means, when you change the behaviour of end-button to nothing (right after the first install, without using it ) U can use the buttons after several hours.

About the battery : 20% on android, 1% on Windows oO :D

Kernel tested : v2c of seandean.
[XPERIA X1 Android Development] zyotty:
sorry.i was in hurry that time.
[XPERIA X1 Android Development] chris-dt:
Hey, first of all I want to thank you and all another guys for great work of porting Android (even 2.2) for ours Xperia X1s!

And of course, I have a question :D - can you explain how to copy the autostart.sh file to /data/opt directory (may be with terminal?) - I tried with SuperFroyo's integrated file manager but it gives me an error - perhaps it can not copy files from FAT32 partition to ext32 partition.

All in all the kernel seems stable for me with the latest SuperFroyo -

- WiFi works stable with several times turn on and off (with latest sp3dev3 kernels it works only the first time for me)

- Battery meter and charging also works in Android. I experienced little problem with battery meter in Android - when battery was nearly low, I got message "Battery low" and immediately the Android starts to shutting down. When I booted to WM the battery shows 10%.

Only problem for me is that I haven't done with this autostart.sh file.
[XPERIA X1 Android Development] Snow82:
when i type mkdir /data/opt, i have "permission denied"

Then how can copy startup in that directory?

Thank You
[XPERIA X1 Android Development] Oggy972:
Ok guys,

You have to use the terminal emulator.

You need to be as root user, so before typing anything, type "su" in order to have privileges enough !!
[XPERIA X1 Android Development] chris-dt:
Ok, creating the directory is no problem, but both of us don't know how to copy the autostart.sh file to the created directory and that's what we asking about? Thanx! :)
[XPERIA X1 Android Development] Oggy972:
Ah okay !

I didn't do it but I guess you can do it by this way :

copy the autostart.sh to your sdcard.

go in terminal emulator and :

su
mkdir /data/opt
cp /sdcard/autostart.sh /data/opt/
chmod 777 /data/opt/autostart.sh

Try it :)
[XPERIA X1 Android Development] chris-dt:
Well done, it works! Thanx again! :cool:
[XPERIA X1 Android Development] denyboy:
Any way to disable android shutdown when battery is reported low????
[XPERIA X1 Android Development] mkbm:
Hi,

my hardware keys stopped working right now.

And I have never used the End-Key to turn the display off.

After that I have tried to reload the 2 modules (mircop-ksc and microp-keypad) and the keys started working again.

So I think that this is a good solution for this problem. So we dont need to restart the system.

Thanks @seandean
[XPERIA X1 Android Development] Oggy972:
[Off Topic]

I'm assuming that you used ADB to reload the modules...

Could u explain me how to get ADB working ? I'm using super froyo of neopeek, and Windows asks me for XDA driver and something like that. So windows doesn't recognize properly my phone for ADB !

[/Off Topic]
[XPERIA X1 Android Development] man_genius91:
help please....

hi!

im newbie here..

i was wondering if u can do tutorial in the video..

really appreciate it..

sumone help me to install the kernel please..

what software to use..what to do.and so on...

help!:(:(:(:confused::confused::confused:
[XPERIA X1 Android Development] astearon:
Tried the kernel. made the autostart and installed the app and got the keys working...Problems still occur: random restarts plus the camera button acts as power button and also i managed to get the screen stuck in landscape once i entered gmail app.
[XPERIA X1 Android Development] neock:
problem remains, i got my hardware key mysterious dead without any notice. only when i try to wake the device up. it seems has something to do with how many times you'd waken up your device before it locked down its keys, not related to the device's sleeping time.

neopeek's FRG83 superfroyo 2.2.1 shell + v2c for initial installation. manually update kernel to v3a for the testing. always running SetCPU with "screen off" profile which controls speed from min with 128mhz to max 256mhz, also with

Advanced task killer in background, and some other common program running at background. hope the infomation would help./

BTW, the new kernel v3a got a sigificant performance improvement. :cool:
[XPERIA X1 Android Development] esfin:
there still problem in phone call..

My environment is Super Froyo + v3a

It seemed to fix hardware key problem but, call process still has a problem.

When I called someone, it suddenly died. So I tried to make a phone call then

call->end iterated. Is there anyone has a same problem?? Is there something to

do for fix this?

Anyway I always appreciate to develop android for X1. ty~
[XPERIA X1 Android Development] matejdro:
Wow, and people are complaining that EXT2 is too hard. Now try typing commands into console :D

More simple guide to permament workaround:

Place autostart.sh to your SD card

Open "Terminal Emulator"

Type "su" (everything without quotes from now on). Press enter. Symbol on the left should change to #.

Type "mkdir /data/opt". Press enter after that and any of the folowing commands.

Type "mv /sdcard/autostart.sh /data/opt"

Type "chmod 777 /data/opt/autostart.sh"

Go into the market and search for "Autostart (ROOT)". Install that application

That's it!

Also, check commands twice before pressing enter. X1 keyboard is too sensitive in android and sometimes you end up typing 2 characters at once.

That's how i done it.

@Linux_experts is that way fine?
[XPERIA X1 Android Development] neopeek:
nice to see how you guys with kernl-dev-skills push this forward! As I am always in a re-formatting and re-partitioning loop on my HTC Diamond + Kovsky (yes, android porting requires this) I couldn't test any of those latest kernels on my own. I even don't use my smartphone - neither @work nor @home. Sometimes I won't even get a call in a timeframe of 2weeks :D

Now back to topic:

I will include v3a into next updates (right now I am recompiling CyanogenMod-Barebone-Edition from scratch). Though I make no promises to you on how this will act with the latest kernels. there have been so much committ's lately on CM's Github. It's also rumored that RC2 is close to be released. Thus what I have heard off and read lately you kerneld-devs are doing great job. Thanx for that!
[XPERIA X1 Android Development] viper.:
... my keys have just stopped working. I am using superfroyo and v3a.. Is it just me or what? I did everything(on start) what was needed to be done to get keys to work.

Does it matter if i have pressed the right soft key under the screen?
[XPERIA X1 Android Development] daduy:
I am using Neopeek CM Barebone + SeanDean v3a kernel and here is my report:

- Performance is very nice and speedy

- Front key works but will eventually stop working (happens to me after couple of hours idle, and after i receive a calls, the calls itself is fine)

- SOD (sleep of death)

- Some random freeze/hangs (but rarely happens)

- Other than that everything works beautiful, 3G, Wifi, Market, Calls, headphone, no problem at all

Keep up the good work! :D
[XPERIA X1 Android Development] arriesaja:
i think the steps is very easy to understand, coz im newbie too, just try it first and then report later

i didint experience it, im using v2c first and then update the kernel using the step above,, i can receive and make out going call without problems,,

but i have a heat temp above 33' in Battery Indicator Pro, in that time im only using GPRS connection,,
[XPERIA X1 Android Development] seandean:
New Kernel - v3b

I have another kernel and modules package; it’s basically a further optimized version of the v3a with removal of some unneeded (not required) debugging code. This is version “v3b” and probably the last for some time, unless any development “breakthroughs” are made – more on that below. I would recommend anyone using my builds to switch to this, as such I’ve included “known issues” below also.

Change log:

+ Build environment updated to GCC 4.5.1 (from 4.4.1)

- Non-required debugging options resulting in smaller kernel size, more free memory

Known Issues:

1. To be able to use USB/AC charging you must boot into Android while connected to either a computer or AC adapter using the USB connection.

2. WIFI and 2/3G data is working, if it doesn’t for you it’s because of your setup or OS build choice.

3. The keyboard and front-facing buttons are known to stop working randomly. I have tried to work around this using modules for those components, some say it’s working but others not.

4. Your device may report 0% battery when in range of 20-30% free. It tries to gracefully shutdown, and most of the time it’s successful but I have had a few times where it “corrupts” one or more of my sqlite databases (possible workaround further down the post).

5. I run at stock speed (528 MHz) for best stability and battery life. Overclocking is cool, but when your device freezes or kernel panics under certain conditions this is usually the culprit – but not always.

6. The camera doesn’t work and I can’t fix it either.

Further Development:

At boot total “available” memory is 199988kB, which is the highest of any of the kernels I have provided so far. I will see if it can be pushed anymore but we look to be at the top of the scale.

I’m looking at three things to further increase performance and stability;

1. Patch sp3dev’s source code to 2.6.27.56 from 2.6.27.46. Last time reviewing the patch only a few files applicable to our device would be changed, so this might not be worth the effort but it’s something that can be done.

2. Try using EXT4 partitions instead of EXT2 for stability purposes - journaling. I can’t tell you how many times I’ve “killed” my Android OS when the kernel panics or some forced low-power shutdown occurs (read further up the post).

3. Port Kovsky kernel changes to 2.6.29 (Donut kernel) or 2.6.32 (Froyo kernel). This would most likely generate huge performance and stability gains, along with better compatibility with OS builds. This is also extremely difficult, and without a perfect 2.6.27 kernel might be pointless.
[XPERIA X1 Android Development] mkbm:
I had very strange problems since your kernel version v3a.

I am using Neopeeks SuperFroyo and everytime the phone goes in standby I can not wake it up anymore. If I push power the backlight is enabled but no image.

I have tried v3b but same problems for me.

I also tried to delete the partitions and create everything new but nothing changed.
[XPERIA X1 Android Development] seandean:
This sometimes happens, if you touch the screen after pressing the power button (e.g. swipe your finger across) it should start displaying the image.

If its still not working try to see if your able to pull up a shell via ADB, if your able to its probably one of your running applications that’s causing some sort of conflict.

I use Neopeeks builds almost exclusively for my testing.
[XPERIA X1 Android Development] matejdro:
v3b still needs all that modules installation and stuff?
[XPERIA X1 Android Development] seandean:
Technically it will work with the v3a modules package, but for the most optimal experience you should upgrade your modules when you get the chance. You would end up saving a small amount of memory, and possibly some CPU cycles if you use WIFI a lot.

It does still require the autostart.sh script to activate the keyboard and buttons, unless you have automated that using your own methods.
[XPERIA X1 Android Development] neopeek:
Ok guys! I am going to package v3b up in the next hours with a new Barebone-CM61. I will have to read some sites back here to implement that autostart (if needed). Though I am at work now and have now X1 ready to test on my own. So stay tuned!
[XPERIA X1 Android Development] neopeek:
Modules in v3b have CRC error!?? Can you re-check this?
[XPERIA X1 Android Development] daduy:
Hi Neopeek, i can extract all of the files without any problem, maybe your file is corrupted? :confused:
[XPERIA X1 Android Development] esfin:
I installed CM 6.1

It still has few problems. is it v3b right? anyway...

1st. Application launch is unstable. Installing is success, but some kinds of App didn't work. for example, alarm clock, background, and so fourth(there are downloaded from google market.)

2st. Hardware Key down. So I did a solution that using autostart.sh. However, few hours later, while using, it broke down again.

I always appreciate that your effort for android porting on X1. :D fighting!!
[XPERIA X1 Android Development] viper.:
Use the v3a kernel if you want to have working hardware keys.
[XPERIA X1 Android Development] matus201:
Even with v3a and autostart.sh the keys sometimes break after longer use. It's not very common, like once a day, but it does happen..
[XPERIA X1 Android Development] gaurav_v:
devs plz have look

http://xdaforums.com/showthread.php?t=850847
[XPERIA X1 Android Development] seandean:
I don’t speak for all the developers but if you’re asking for a stable, native 2.6.32 kernel for the X1 your better off buying a Desire Z or Galaxy S. It’s just not going to happen anytime soon, and as time goes by it becomes even more irrelevant and less likely.

The latest and greatest kernel source code for the X1 (Kovsky) is available over at Gitorious. Go take a look, play around with it, learn it, fix or improve something for us. I’ve spent a lot of time with it lately and was only able to make minor improvements to speed and stability. I know others have made larger contributions, but they don’t come frequently – they have other things to do.

If you would like to take a leadership role in terms of organizing everything I will stand with you, but don’t expect or demand others to also. If they choose to make any contributions they should be thanked, but if they don’t they should still be acknowledged for their excellent previous work.

It’s in your court now, make the first move.
[XPERIA X1 Android Development] kerfooly:
and this thread :D

http://xdaforums.com/showthread.php?t=852608
[XPERIA X1 Android Development] kerfooly:
i did i made a page like it and together united we shall increase the speed of development :)

http://xdaforums.com/showthread.php?t=852608
[XPERIA X1 Android Development] gaurav_v:
@ seandean....

i just want to speed up the rate of development and nothing elso this is not just for me or i only am not demanding .... While u may know who are indulged in the development so u can help us bring together . We are not demenders be we want to get this project to success let it take time we can also ask people at hd 2 section to help us once we have got ...... what we need to work and status of work , where we lag....
[XPERIA X1 Android Development] seandean:
New Kernel - v3c

I have another kernel and (optional but recommended) modules package; it’s basically a further optimized version of the v3b with some very minor bug fixes but interesting clock adjustments. This is version “v3c” and tested running on EXT2 partition distributions.

Change log:

+ Upgraded to GIT commit d8a9ed9b2f2616ccfeed46bd6a831e8ec6fbf4f8

+ Minor feature tweaks, more available memory (now at 200428kB)

+ Keyboard and front-facing buttons support in-kernel; it was too complicated for the majority of users as modules

+ Lowest “officially supported” on-demand speed of 19.2MHz to save power while idle

+ Highest “overclocked” speed of 595.2MHz which I’ve deemed stable (this is obviously subjective)

Processor clock notes:

The lower idle frequency is completely built into the kernel, this is now standard and you don’t need to do anything to activate it (if your using SetCPU you might need to make minor adjustments). The overclock however is still done via your STARTUP.TXT file; this will hopefully change when I figure out how to port major changes into the source regarding processor clocks.

I have attached my STARTUP.TXT file for reference, the string activating the overclock is “acpuclock.oc_freq_khz=595200”. You may remove this to use the “officially supported” maximum speed or your own overclock speed (but consider yourself warned when it comes to stability).

Testing and your “constructive” feedback are appreciated.
[XPERIA X1 Android Development] tikilou:
BIG up for you, and Neopeek for this works !!!!!!

This release works correctly for me, the smartphone is not very hot, he is fast, te wifi is slow, but works correctly, the battery is better ^^

I'm sorry for my english, but... Just thank you, just APN don't work :)

Soon a rom Androïd? ;p
[XPERIA X1 Android Development] naklar:
The new kernel is working very well for me so far. Great work.

I would like to play a more active role in the Xperoid development. Do you have a git repo which I can clone?
[XPERIA X1 Android Development] calvinfoo:
Umm sounds great but unable to test, as this modules need an ext partition like neopeeks. Any chance to remake the kernel for those who do not use a partition? If possible? thks
[XPERIA X1 Android Development] Devaster:
so far so good. i am testing any kernel to now, and this is very good ....
[XPERIA X1 Android Development] Boeliez:
i was using the version of http://xdaforums.com/showthread.php?t=844033 and i updated the kernel with this one... no ext2 partition needed as it is booting.... will report back on my findings but so far so good an a fast boot!

[edit]

seems to be working fine just doing some basic tests and wanna know if angry birds is running on it haha

[edit2]

after some testing i find this rom VERRY fast and stable sorry to say angr birds is not working properly (lines and lag) and also i cant use this startup because of the ext2 partition i think? i did however just use your line of the overclock sorry to say that this made my device slower :\ dont know why so i changed it back but other then that its verry fast!
[XPERIA X1 Android Development] tikilou:
After test, i have problems

The bluetooth don't work correctly (multiples erros of sync with my laptop)

No notification sound (maybe it's the last neopeek release?)

And when i mount the SD-card on computer, and unmount , the smartphone indicate the sd-card is empty.

:)

Edit : New error, now the wifi have error, after want obtain the IP, this is deconnected, i have reboot, and i have the same problem :(

Edit2 : I have found the problem with the wifi, the system don't work correctly with DHCP (can't obtain IP?), with a IP fixe, it's ok, wifi work.
[XPERIA X1 Android Development] Boeliez:
tst

well after a full day of testing i got a couple of things..

after a while my hardware keys didnt work after a reboot it was fixed..

gps is having a hard time fixing my location

and it didnt stay on overnight while when i booted it up the batt was @ 25% so it just went off (so my alarm didnt go off and i was almost late for work haha but no worry's it comes with the territory of testing!)
[XPERIA X1 Android Development] saobang3886:
Testing V3C, the hardware key stop when run in 2 hours ^^!
[XPERIA X1 Android Development] chester0:
seandean you are the man! :D

First impresions using this kernel:

- super fast

- stable @ 633mhz

- battery charging and meter is correct (except in SetCPU)

- native bench in SetCPU ~3040ms (~3200ms with previous kernel 26/11)

- love the 19mhz scaling

so far so good! (Using CM6.1)

I was wondering, is there any optimizations for the GPU to be done?

will report back when i have more info.

Thanks!

You should really try the ones with the ext2 partition, in my experience its hell of alot faster.
[XPERIA X1 Android Development] seandean:
Thanks,

At the moment Alex (sp3dev) is working on porting the 2.6.35 FB and HW3D into our .27 source code. This would provide some optimization, but what it really does is bring us on par (source code wise) with other devices that have already begun to play around with HW3D clocks.

It’s been done on Windows Mobile based devices already, specifically the HTC Vogue. Keeping in mind the hardware on that device is considerably inferior to the X1 they have managed to reach up to 36.5 FPS on Neocore. In comparison the best I can do at the moment is about 16.2 FPS, and that’s with a CPU overclock!

We have a lot of room for improvement, but it comes down to development time and resources. We have some really amazing developers working on the X1, but some of the other devices (even older ones) have more development resources at this point. In any case, I think everyone is enjoying running Android on the X1 and finally being able to use a speedy, modern smartphone OS – I can tell you WM6.x was not.

You’re absolutely correct; the overhead from running EXT2 “files” on FAT32 partitions is considerable, it’s also less stable.
[XPERIA X1 Android Development] chester0:
Thanks for the info seandean, good to know there is room for improvement :)

About the new kernel:

i tried to enable wifi and it just gave me error; after playing around i found out that modules-2.6.27.46-dirty.zip (wifi modules right?) contained "modules-2.6.27.46-dirty.gz" after renaming it to "modules-2.6.27.46-dirty.tar.gz" (added the .gz like older modules) wifi now works fine.

is it a typo or i did something wrong?