yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] Elibl:
You wiped every partition before you installed icedroid? That's very strange! For me it was gone after installing a proper rom...

Gesendet von meinem U8160 mit Tapatalk 2
[XPERIA X1 Android Development] taninos:
I followed the guide in IceDroid and it happened the same, the system catched the WEP signal but after getting to dhcp it stopped.

Best.
[XPERIA X1 Android Development] Elibl:
try to format boot in recovery. full wipe script only formats data and system. i don't think that it's hardware related...

but as i said very strange... the last thing will be task29 but i also wouldn't do that too often (bad blocks)

i never saw this with icedroid nor heard of it...
[XPERIA X1 Android Development] CoolrunnerII:
I finally found out why we don't have any signal level reading for wifi. We are using wpa_supplicant_6 as all the other gingerbreads are using, only we are the only ones using the nl80211 driver in there, and that driver doesn't have any driver_cmd function. All the other ones that have the same ti wifi chipset as us are using some sort of proprietary driver. The ones having broadcom wifi are using the wext driver. driver_cmd handles signal level and power saving modes and stuff like that.

I'll have a go at implementing the driver_cmd function. When I have the time to figure out what ioctl calls to use I may get the signal level up from the kernel space driver into wpa_supplicant and from there up to the libwifi module and all the way up to android gui. :P

I'm trying to get hold of another X1 to open up and connect to a logic analyzer. I'll leave the power consumption issues until I do. If I can boot a phone in windows mobile and measure the voltages and current then I may have a better idea what do do to extend out battery life. Also getting the i2c bus transactions would be very helpful.
[XPERIA X1 Android Development] oakes:
Maybe we'll be able to test your "driver_cmd" with insmod or modprobe on boot, won't we?

Many thanks for working on xperia x1.
[XPERIA X1 Android Development] Elibl:
i hope this helps...
[XPERIA X1 Android Development] najjen:
hi sorry im noob..

can some1 post the zip file on this 1..i really dont know how to get the codes..

bad english sorry ..

thanks in advance
[XPERIA X1 Android Development] CoolrunnerII:
I have seen that too, I think it is because suspend is blocked because a bunch of background processes need to complete before it can suspend all the way. After a while everything is done and it goes all the way down to power collapse (lowest power save mode).
[XPERIA X1 Android Development] CoolrunnerII:
I just uploaded a new zip to the google code project.

It has WIFI SIGNAL METER !

It may show a bit low signal, but it is easy to add some to the number I read. What do you tink?

the only file changed is wpa_supplicant. I found out that I could read the signal level from /proc/net/wireless and create a reply for the android libraries.
[XPERIA X1 Android Development] Elibl:
Great job :thumbup:

Gesendet von meinem NexusHD2 mit Tapatalk 2
[XPERIA X1 Android Development] kuskro:
Congrats my friend. You'd done what nobody was able in a short period of time. Many thanks.

Let me ask you something, why don't you try to build a CM 6.2? I think that it is the best option for our xperia x1.

Best.
[XPERIA X1 Android Development] ryo2456:
Nice job!!

hope to see the fully work ROM on X1
[XPERIA X1 Android Development] CoolrunnerII:
I fixed the download link now. Sorry for that :P

I don't think I'll start work on a CM 6.2 build. If anyone want to try it feel free, I can give out write permisions for the repos so you can start you own branch.

I think the wifi meter was a bit low, so I'll add some on it in the next release. I may be able to include power save modes also, I'm looking into it.

The good news is that I just won an ebay auction on a X1 with a broken headset plug. When I get it I'll start some proper power supply measurement and open it up and see if I can figure out what i2c commands are sendt under windows mobile.
[XPERIA X1 Android Development] WarmYster:
restarts...

Hi thank you for breathing life in my old X1 :) . I loaded your mod and its been working great :victory:. Battery is working good after Batt stat reset:good: and WiFi is working well too :good: . I have found that WiFi doesn't automatically reconnect after restart or when returning to the WiFi zone (its a remembered network) :confused: and when I install some applications from play store the device reboots (not completely cyanogenMOD load screen) loads and have to unlock the sim again:eek: .
[XPERIA X1 Android Development] CoolrunnerII:
Thanks for the feedback.

I am working with the wifi-system at the moment. I would actually recommend only turning on wifi when you plan to use it. Connecting is a bit flaky at times, but I am working on it and I have some leads to go on.

If you able to install ADB and run "adb logcat" when the crash happens we may be able to figure out why it does.
[XPERIA X1 Android Development] oakes:
Hi BrianXP7, I saw in googlecode that you left an issue about the "USB connection overheat the device".

You can control that with SetCPU, setting the scheduler on deadline mode with a profile for charging mode. I think that this rom when the cell is charging it sets the i/o scheduler on noop or cfg mode, and that the reason why it overheats the device.

If you don't want to use SetCPU, we need the next init.d tweak (created by Einherjar Development Team) to set the deadline scheduler by default on boot (I've attached the tweak to be located in /system/etc/init.d/).

Anyway, I prefer SetCPU option because I'm no sure whether this tweaks works properly with coolrunnerII kernel. In my case, I remove CyanogenMod apps from the rom, install Zeam Launcher and I control the CPU with the last SetCPU version. With this settings my battery last almost 30 hours in normal conditions.

# Remount all partitions with noatime
for k in $(busybox mount | grep relatime | cut -d " " -f3) ; do
sync
busybox mount -o remount,noatime $k
done

# One-time tweaks to apply on every boot
STL=`ls -d /sys/block/stl*`
BML=`ls -d /sys/block/bml*`
MMC=`ls -d /sys/block/mmc*`

# Tweak deadline io scheduler
for i in $STL $BML $MMC $TFSR; do
echo 0 > $i/queue/rotational
echo 1 > $i/queue/iosched/low_latency
echo 1 > $i/queue/iosched/back_seek_penalty
echo 1000000000 > $i/queue/iosched/back_seek_max
echo 3 > $i/queue/iosched/slice_idle
echo 16 > $i/queue/iosched/quantum
echo 1 > $i/queue/iosched/fifo_batch
echo deadline > $i/queue/scheduler
done

# Tweak kernel VM management
echo 0 > /proc/sys/vm/swappiness
echo 10 > /proc/sys/vm/dirty_ratio
echo 4096 > /proc/sys/vm/min_free_kbytes

# Tweak kernel scheduler, less aggressive settings
echo 20000000 > /proc/sys/kernel/sched_latency_ns
echo 2500000 > /proc/sys/kernel/sched_wakeup_granularity_ns
echo 1000000 > /proc/sys/kernel/sched_min_granularity_ns

# Misc tweaks for battery life
echo "2000" > /proc/sys/vm/dirty_writeback_centisecs
echo "1000" > /proc/sys/vm/dirty_expire_centisecs

#;
fi

# 55

busybox mount -o remount,rw -t rootfs /
sh /system/bin/userinit.sh

Best.
[XPERIA X1 Android Development] naklar:
broken link

Link to download for cm-7-20121002 is broken.
[XPERIA X1 Android Development] oakes:
Hi, the rom is pretty stable when we set CPU frequency on: 576max.-19min. (ondemand and deadline scheduler). If the CPU frequency are set on 614max and 19min, it's unstable and some apps are quitted automatically by the system.

Best.

---------- Post added at 12:32 PM ---------- Previous post was at 12:25 PM ----------

CoolrunnerII, do you know the way to implement Wifi-Tether on your ROM? I'm able to USB-Tether but I can't Wifi-Tether because it is necessary to add some modules that I don't know which they are.

Best.
[XPERIA X1 Android Development] kuskro:
Hello CoolrunnerII, just a question.

May I release a new ZeamDroid using your rom with minor optimization changes?

Thanks in advance.

Best.
[XPERIA X1 Android Development] CoolrunnerII:
No problem. It's Open Source!
[XPERIA X1 Android Development] Elibl:
I'll have a look at init.d scripts, sheduler and so on the next days...

Gesendet von meinem NexusHD2 mit Tapatalk 2
[XPERIA X1 Android Development] CoolrunnerII:
You get that message because it is a microSD card and not a full size SD card. On the full size SD connector there is a write protect switch. With microSD there is no way to write protect the card, so the kernel warns about this because it has no way of knowing it is a micro card and not a big one.
[XPERIA X1 Android Development] Taranis:
We should focus on Android issues rather than installer. There're many bugs to fix.
[XPERIA X1 Android Development] ady_95:
market?

Am I the only one with market problems? (on both wi-fi and HSDPA).

mention: Gapps were installed after booting the system once..
[XPERIA X1 Android Development] ady_95:
it crashes when choosing the desired application (it lets me browse through the apps, but it wouldn't even let me to see the details)
[XPERIA X1 Android Development] Saulis:
I replaced Vending.apk file in /system/app with new from gapps-ics-20120317 package with 'adb push '. It now works, but sometimes FC happens. But I can download and install apps as usual
[XPERIA X1 Android Development] kuskro:
It's a problem not only with vending.apk but also with vending updater. You have to replace both with a proper ones.
[XPERIA X1 Android Development] ady_95:
What if I use "swapper" app for more "memory"?
[XPERIA X1 Android Development] Elibl:
her is a new kernel ramdisk:

i changed a lot in *.rc files. i totally newly adjusted memory management/priority, set tweaked iosched (deadline), wifi speed could be improved as hspa speed, and a lot of more things...

one big improvement is new adbd mangement from htc leo. so we can now even take logcats from suspend...

all this needs to be tested so attached the boot.img just flash it via 'fastboot flash boot boot.img'

it's pretty experimental as i changed a lot but for me it runs without problems so far
[XPERIA X1 Android Development] Elibl:
what kind of crash report?

please test the new boot.img

don't know how swapper app works and if we're able to use it from system/kernel side
[XPERIA X1 Android Development] ady_95:
Officially I'm back in testing (" I'm back in black ") so, my first report for this ROM is that it's a bit unstable (I installed it correctly, obviously). The market problem isn't quite a problem for me because I synchronized it with my google account and I can choose apps directly from google play website.

The new boot.img is a small improvement in performance (or I'm just having a placebo). It seems (at least for the moment) the same thing, but I will keep testing...

First thing to mention is that it's not heating anymore on USB... (I will come back with later improvements)
[XPERIA X1 Android Development] oakes:
First of all thanks a lot for the kernel.

I've tried it and it overheated a bit the cell and took more time for connecting with my home wifi.

Best.
[XPERIA X1 Android Development] taninos:
Hi folks,

Do you know the way to force the mobile to stay always in 3G mode? Do you know the way to disable 2G (edge and gprs) forever?

Thanks in advance.
[XPERIA X1 Android Development] pbfree:
I have had same problem with market too, a workaround for me was to clear the cache and delete data, but still it's not stable.
[XPERIA X1 Android Development] Elibl:
For wifi i only increased the buffer size. So the connection procedure shouldn't be affected. Don't expect too much i only applied tweaks. The main advantages should be no more overheating from usb, vm management improvement (huge lags should be avoid now i hope, no more need of Setcpu or so) and of course the possibility to debug in suspend (no more reconnects in suspend while plugged in pc) maybe some permission fixes...

For play store: i had very often different Problems with it in several Roms and devices... clear Cache unistall Updates and often just wait...

Gesendet von meinem NexusHD2 mit Tapatalk 2
[XPERIA X1 Android Development] oakes:
I just installed ZeamDroid v7 which uses the last coolrunnerII kernel and I don't have either usb overheating problem or battery overheating. So, I think that cyanogenmod cpu controller could be overheating the device.

On the other hand, ZeamDroid is free of google play problems.

Thanks anyway for kernel job you've done.
[XPERIA X1 Android Development] Saulis:
I installed provided kernel. At home, Asus latop computer M50VM with win7 keeps toggle'ing several times at ~1s rate and then fails to identify device the it goes to suspend. At work PC with win7 and nvidia chipset keeps connection steady (no connects/disconnects) and adb ir working.
[XPERIA X1 Android Development] CoolrunnerII:
When it stopps in "obtaining IP address" it is because it has problem with dhcp. I have been working quite a lot on this the last couple of weeks, but haven't found a fix yet. As far as I have figured out we have wifi powersave eneabled by default, and that is a good idea. But when doing dhcp it is a bad idea. Powersave has to be turned off before doing dhcp and then back on afterwards. Android tries to do this by issuing a "DRIVER POWERSAVE" command to the wpa_supplicant. I have written the code that receives this, but haven't figured out how to signal down to the wifi driver in the kernel. The linux wifi driver system is incredibly complex, so figuring out why the method I tried first doesn't work is a bit hard.

I really enjoy seeing the activity lately! BrianXP7 has been sending pull requests on github, so his changes will show up in later releases. If anyone else has changes they want to include you can either do that or PM me and ask for write permissions on my repos. As we are using git any changes that came out wrong can easily be reverted.

For me it isn't very important to keep this a strict CM7.2 build. My only concern is that anyone should be able to download the source, compile it and get the same images we are posting.
[XPERIA X1 Android Development] Saulis:
Latest experience with new kernel is somewhat weird. First I noticed that after deep sleep device wakes up a bit slower, after unlock, home screen is shown normally, but then trying to perform task usually message pops that launcher is not responding. Tried to change to Holo launcher, but the problem still remains.

Revised: Found out that my kids by playing executed setcpu and lowered max frequency to 354MHz and this led to FC mentioned above.

P.S. I'm trying to compile from source with Cygwin. Poussevin's kernel branch I've managed to load with eclipse and to compile with success (htcdev.com provides kernel source images for similar devices, e.g. bluetooth, fmradio (Htc legend) implementations are there. I'm now trying to compile ROM. Following wiki guidance found suitable pakages for cygwin, installed repo, performed sync. Then the build part comes it fails of course. I've set JAVA_HOME variable to skip internal checking for the path, tried to follow script and makefile include paths to some degree as buid as bash is not providing information where it fails (i think in parsing makefiles). In current situation it produces "No private recovery resources for TARGET_DEVICE kovsky" and then stops. Maybe there is some sort of argument to give extended information on batch?

Also in cyanogen_kovsky.mk there is:

# Broadcom FM radio
$(call inherit-product, vendor/cyanogen/products/bcm_fm_radio.mk)

I think it should be replaced with following one because FM radio is in TI Bluetooth chip.

# TI FM radio
$(call inherit-product, vendor/cyanogen/products/ti_fm_radio.mk)
[XPERIA X1 Android Development] ady_95:
Yes, it's working :good:

Waiting for the new release...
[XPERIA X1 Android Development] Saulis:
I'm still stuck at finding a way to build under cygwin environment. Not sure why the only way is to build under normal linux. I've found out that java misinterprets paths in wrong way then called from fygwin, but as I understand there are ways to otyhercome it with cygpath cmd, also i'm not sure how "shell" command behaves in cygwin (probably its not found), as there are a lot of it in make files. Then, checking for java cmds seems to work if I exclude "shell" from command list... Still more to check. :D
[XPERIA X1 Android Development] CoolrunnerII:
I just received a old, and slightly broken xperia X1 in the mail from Germany :)

I have just started doing measurements on it, and the first measurements are quite interesting.

When running WM6.1 without a sim card the lowest it draws in suspend is about 1mA. The number for our Android is about 25mA. This translates to 1 week standby compared to 1 day.

Just as our android the current jumps up about once each second or 1.5 seconds for very short period. In wm it jumps to about 35mA and in our it is about 45 to 50 mA.

I haven't got that much time to do anything with this at the moment, but I'll do it in between.

I just compiled a zip with the latest changes from BrianXP. When I have had the time to test it I'll upload it to the google code page.
[XPERIA X1 Android Development] oakes:
You are right but some of them are ready for daily use. The current coolrunnerII's rom is not stable but his/her last kernel is great. Kuskro blended Icedroid and coolrunnerII's kernel with small modifications and his/her rom is the most stable nowadays, you only have to be patient with the screen locker and wifi and follow his/her advices.
[XPERIA X1 Android Development] ady_95:
As there is no good news from you in last few days, I have one... A modded ROM more precisely. The first version was a success, now I removed some ****ty stuff and included some tweaks so I hope tomorrow (or today, because it's already 12 AM here, in Romania) I will post it... Do not expect something great because this is my first this kind of thing and even though I plan it to be as good as possible, I'm almost sure it won't be...
[XPERIA X1 Android Development] kuskro:
Hi CoolrunnerII, let me ask you about wifi tether. Do you know the way to make it work on kovsky? Even when we activate it through the kitchen it doesn't work. I tried to add the wlan and nat modules via init.d but it doesn't work, too. We need your help with this issue.

Best.
[XPERIA X1 Android Development] CoolrunnerII:
I haven't tried wifi tether, but I noticed that zargloub added some modules to his boot.img that to be related to wifi tethering.

I think you need to load all 48 of them to make tethering work. They include all the ipv4 tunnenling stuff used for packet routing in servers.
[XPERIA X1 Android Development] timkeeper:
Hi,

No update on this great project.

You're working on il or it is canceled ?

Thanks

Timkeeper
[XPERIA X1 Android Development] CoolrunnerII:
I have been too busy with my day job lately.The next step for me is a bit experimental. I plan on sniffing the i2c bus on a phone running windows and try to figure out why the windows system can get to 1mA suspend current. I don't see any obvious other kernel/system things to work on now.

If I get something out of the logic analyzer I'll post it in the wiki, and maybe others can help with the mircop driver effort.

CRII
[XPERIA X1 Android Development] CoolrunnerII:
I'm actually moving towards auto brightness now :)

I have started pushing commits to github, but I don't guarantee a working tree at all times, so if anyone plan on building just at the moment be a bit careful.

The only easy way to implement auto brightess is to turn off software auto brightness (That isn't working anyway). That means the power management button for screen brightness wont display "auto" anymore, but when you unlock the phone it will allways start in auto mode, and then you can adjust the screen brightness with the powermanagement app afterwards if you need to change it. (Screen lock and unlock will have you back in auto mode again)

I'll make the parameters used in the screen brightness calculations available as parameter files in /sys/module, so others can tune it easily.
[XPERIA X1 Android Development] CoolrunnerII:
Yes, you have to disable all the animations. I don't know how to do that in the code, and I don't think I'll have time to look into it just now.

I am testing auto brightness on my phone now, and have found a small bug that needs fixing. The code has been committed to gitorious.
[XPERIA X1 Android Development] milaq:
can be done in the framework via overlay

https://github.com/CoolRunnerII/dev...rameworks/base/core/res/res/values/config.xml

iirc

config_animateScreenLights

does the job here.

plus you can allow userspace control of the crt animations with

config_enableScreenOnAnimation

and

config_enableScreenOffAnimation
[XPERIA X1 Android Development] milaq:
this should work just fine

no need to insert those values at a specific point in the config.xml as long as you use the correct xml syntax.

the file overloads

frameworks/base/core/res/res/values/config.xml

you can have a look there for more framework control parameters.

cheers
[XPERIA X1 Android Development] CoolrunnerII:
There is also a suspend bug caused by the wifi. It has been there all along and Alex did quite a lot of work on it without getting to the bottom of it.

I allways turn of wifi when before putting it in suspend.
[XPERIA X1 Android Development] CoolrunnerII:
I may have broken something. I'll try to fix it before tomorrow.
[XPERIA X1 Android Development] CoolrunnerII:
OK, I wrapped it up now :)

I will upload a ota package tomorrow morning with auto brightness and BrianXP's fix with the animations.

This will also include my microp-keyboard fix that may fix the lost keys bug.
[XPERIA X1 Android Development] Marcintosh:
Sorry for disturbing you guys but is it normal for my phone to only last less than a day? I don't even use it much. I bought another battery and it runs the same. It runs out of juice so fast that I can't even last a day. I think it lasts less than 12 hours. I only use it for SMS. It's usually at idle state. Even so, I still have to charge it. It's not on the battery stats. It actually just shuts down on its own. The CPU is clocked to minimum 19MHz and maximum 528 MHz. I tried windows mobile 6.5 and I was able to last 2 days with it. I once left the phone idle for the whole day and it didn't even drain a single percent. I'm sure the phone goes to sleep because of CPU Spy. If only Microsoft didn't shutdown the WM Market...

Anyway, what can I do with the battery life?
[XPERIA X1 Android Development] CoolrunnerII:
New package up at http://code.google.com/p/cyanogenmod-kovsky/downloads/list

I would like some feedback about how it behaves and if it should start lower or higher or increase faster.
[XPERIA X1 Android Development] Saulis:
I've noticed almost the same situation, there properly formatted SD card, after some use becomes corrupt and I need to restore first sectors again.

P.S. Does someone noticed A huge charging time? Battery monitor widget reports max 12%/h charging, thus a very long time to charge? Previously reported values where in range of 40 - 60%/h in sleep mode.
[XPERIA X1 Android Development] CoolrunnerII:
Never trust the % numbers. you can look at the voltage and how long time it has been at max voltage. It takes about an hour at full voltage to charge the battery as far as it goes. I noticed the same the first recharge after the last kernel
[XPERIA X1 Android Development] Saulis:
Today started charging at 14% (voltage ~3615mV) at 17:45. At the time of writing (22:24), 3916mV shows 54%. Why, any clues?

kernel 2.6.35.7-92869-g3461e2d

Os CyanogenMod-7-20120905-UNOFFICIAL

kernel boot.img replaced in fastboot everything else there left intact.
[XPERIA X1 Android Development] CoolrunnerII:
That is really quite strange. Maybe the backlight doesn't turn off if you use the latest kernel with the 20120905-rom. Check if you can see some light from the screen even if it's black. You could try to flash the latest OTA package (Just use the "install zip from sd-card" in recovery without wiping anything first)