yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] Elibl:
hhmm... where or how do you wanted to call start_gps_rpc()? it doesn't exist so i ran in compiation error maybe just:

void start_gps_rpc() {
return init_gps_rpc();
}

in gps-rpc.c???

(i didn't look very deep in you work around)
[XPERIA X1 Android Development] Feed_Rulz:
keep it up guys..

really appreciate what you are doing...

wish u all da very best on this project...
[XPERIA X1 Android Development] CoolrunnerII:
This is just getting stranger and stranger. I really have no idea how the xtra code came into the picture. Somehow some code from somewhere else got mixed into this. The only change I actively made was to remove the init. I think I will have the time this evening to figure out what code came from where.

The nice thing is that it seems to work just nicely :p
[XPERIA X1 Android Development] Elibl:
Ok i just can't await it. Cause i have some things to test which may solve the touchscreen issue...:p

Just revert your commit and push it, remove 'sourcepath'/.repo/projects/device/htc/kovsky/libs/hardware_xdandroid_gps.git, do a repo sync (it will newly download the gps repo... to be sure everything is clean), and redo your changes you wanted to make. This is the way i would do it. ;)

Gesendet von meinem U8160 mit Tapatalk
[XPERIA X1 Android Development] CoolrunnerII:
At least with the gps.kovsky.so file in the zip I released gps is workin as it is supposed to, exept for the touchscreen scaling bug.

The second error message is a segfault. From what I can see it looks like either the rpc driver or the gps library has a memory bug that causes a segfault. This may cause quite random behaviour. Alex did some malloc/free changes to the code as the last things he did. There may be something there.

I didn't test the build I did last night, but I can do that this evening. I wont flash everything, just the gps library. The X1 is my only working phone, and I need it working every day, so I can't take that many chances with it ;)

If we get different behavior with the same library that would point to some kind of buffer overflow or something.

Has anyone else tried the build and GPS?
[XPERIA X1 Android Development] Light_Sephiroth:
Uhh i didn't see the new release. I'm going to try it right after my phone is charged! :D
[XPERIA X1 Android Development] CoolrunnerII:
I think I have figured out a possible workaround for the touchscreen issue. The Touchscreen AD hardware has a 32-bit options register, and It changes after turning on the GPS. If I make sure it stays correct every time the msm_ts code is entered it may fix it. This is ofcause just band-aid. Figuring out why this is written to in error is really much better.

The last part is the options register:

Before GPS:

<7>[ 373.473754] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=3295, y=2274, z1=46, z2=196, status 22500, ctl d79, opn 43212a0a
<7>[ 373.491271] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=3293, y=2281, z1=61, z2=179, status 22500, ctl d79, opn 43212a0a
<7>[ 373.508789] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=3240, y=2263, z1=62, z2=176, status 22500, ctl d79, opn 43212a0a
<7>[ 373.526245] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=3160, y=2246, z1=62, z2=173, status 22500, ctl d79, opn 43212a0a
<7>[ 373.543762] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=3046, y=2232, z1=61, z2=170, status 22500, ctl d79, opn 43212a0a
<7>[ 373.561279] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=2905, y=2208, z1=59, z2=168, status 22500, ctl d79, opn 43212a0a

After GPS on:

<7>[ 461.653656] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=830, y=876, z1=345, z2=886, status 22500, ctl c7d, opn 43215f55
<7>[ 461.656951] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=828, y=875, z1=346, z2=885, status 22500, ctl d79, opn 43215f55
<7>[ 461.660217] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=827, y=876, z1=348, z2=884, status 22500, ctl d79, opn 43215f55
<7>[ 461.663513] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=824, y=877, z1=350, z2=883, status 22500, ctl d79, opn 43215f55
<7>[ 461.666809] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=822, y=876, z1=352, z2=882, status 22500, ctl d79, opn 43215f55
<7>[ 461.670074] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=821, y=876, z1=356, z2=881, status 22500, ctl d79, opn 43215f55

After GPS off and suspend:

<7>[ 528.788696] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=2196, y=2038, z1=55, z2=140, status 22500, ctl d79, opn 43212a0a
<7>[ 528.806182] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=2108, y=2039, z1=51, z2=142, status 22500, ctl d79, opn 43212a0a
<7>[ 528.823699] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=2110, y=2050, z1=51, z2=145, status 22500, ctl d79, opn 43212a0a
<7>[ 528.841156] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=1, x=2157, y=2067, z1=47, z2=154, status 22500, ctl d79, opn 43212a0a
<7>[ 528.846252] msm_touchscreen msm_touchscreen.0: msm_ts_irq: down=0, x=2157, y=2067, z1=47, z2=154, status 700, ctl 1579, opn 43212a0a
[XPERIA X1 Android Development] CoolrunnerII:
I just crated a fix in msm_ts.c. I noticed that the SW reset bit was set in the control register, and wrote four lines that check this bit and resets the core to the proper values when it is one.

By doing this I no longer get the touchscreen issue when I use GPS Status to start the gps.

Hoping for the best I fired up wlan and gps and google maps to see if I could get a fix and after a bit of waiting I got a crash.

Second try after it had booted I let GPS status stay on for a while outdoors until it finally got a fix. Then tried again with wlan and maps and there it was: working google maps with GPS ! :D

Here is a boot.img. Flash it like zargloub's kernels. Use with care: It does contain some other experiments, and may have the lost keys bug. (I haven't seen it in half an hour of use, but I am still not certain it isn't there) I will talk to zargloub about future of the kernel.
[XPERIA X1 Android Development] wallaceff:
Well done guys, nice to see this project still alive!

Any thoughts on what's once this is resolved?

WiFi signal and disconnection issues?

Video playback?

Battery life/performance tweaks?

Other?
[XPERIA X1 Android Development] Light_Sephiroth:
I was going to upload a logcat for the gps issue but i think it is of no use now :D

For the wi-fi, try and download "static ip" from the market, at home i use it and i never get disconnections even while navigating/downloading apps from the market!
[XPERIA X1 Android Development] pbfree:
Just a question : which gapps I have to use with this rom? I tried the cm7 default and the market don't work.

Inviato dal mio GT-I9100 con Tapatalk 2
[XPERIA X1 Android Development] CoolrunnerII:
Does anyone have high res pictures of the circuit boards?

My latest work has been to look into the one or two io extender chips used in the phone. They are connected to the i2c interface and control stuff like screen backlight and keyboard. After looking into most of the other stuff, and not finding anything that could account for the extra 10-15mA current draw in suspend I am starting to look at these.

What I can't figure out is what chips they really are. With a proper data sheet it would be much easier to figure out how they work.

So: If anyone has or are able to take some high res pictures of the circuit boards inside the phone that would help me tremendously. By high res I mean good enough to read the text on most of the IC's. The X1 is the only phone I have, and I cant afford a new one at the moment, so I don't dare to open it to have a look.
[XPERIA X1 Android Development] squallvai:
Hi there.. i don't have any pics

but maybe this can help you?

========

Content List :

# Schematic

# Component replacement Rev1 & Rev2 (electrical)

# Part list Rev1 (mechanical)

# Repair movies Rev1 (mechanical)

# Test and calibration Rev2 (electrical)

# Test instructions Rev2 & Rev3 (mechanical)

# Troubleshooting guide Rev1 & Rev2 & Rev3 (electrical & mechanical)

# Working instructions Rev1 (mechanical)

Download Links:

http://depositfiles.com/files/dovj940l7

or
http://extabit.com/file/27u5xcx12qc63
[XPERIA X1 Android Development] CoolrunnerII:
Thanks for the info.

I think I figured out the answer to the riddle I was trying to solve. According to the teardwon at ifixit.com. There is a ATMege48V in there. So what they did was to add all the io-extention stuff into that, and connect it to the main application processor.

That of cause makes it impossible to figure out how that behaves, as it is running some kind of software, and I dont have any documentation for it.

What I'll do next is try to get my hands on another X1 and open it up to have a look.
[XPERIA X1 Android Development] CoolrunnerII:
New zip up, now on 4shared. Have a look in the second post.

apgs seems to work, but is a bit unstable.
[XPERIA X1 Android Development] Elibl:
i only have the 3mp cam of my huawei ideos u8160 but also a broken x1 mainboard so which part i should take a picture of? or report the description on it...

for unstability maybe have a look at the commits at detules hardware_xdandroid_gps and the original hardware_xdandroid_gps
[XPERIA X1 Android Development] CoolrunnerII:
If you have access to a DSLR camera and even better a DSLR with a macro lens I would very much appreciate some photos of the main component side of the main-board. They need to be taken at about 10-20degress from straigth up and with lots of light coming from about 45 degrees. Also remember to remove the shielding boxes ;)

Aperture needs to be as small as possible so you get all the MPix, and not a big smudge.

I fixed the branch stuff in github, so now both the device and the gps is on gb-release-7.2 branch

sometimes using the gps seems to crash the phone. I havent had the time to look into it properly, but I fear there is a bug in the rpc handling in the kernel. I have had a look at the code and it is very complex.
[XPERIA X1 Android Development] Elibl:
at the weekend... maybe.

btw i already had a look at the components and the diagramm on ifixit describes it pretty good so i don't think you could find any more on a picture but i'm totally not experienced at this part and don't know how much are you ;)

:good: what kind of grap with android_prebuilt !!!!!!!!!!!!!!!?????????? i thought i was making something wrong... and my working directory is again messed up...

there are still some commits also referring to rpc in the two repos i mentioned earlier so don't bother to much cause of the complex rpc code ;)

(i also already had a look at it the time i was trying to port the battery driver from xperia x10, same battery and still a subject and possibility for me if i get more advanced:p)
[XPERIA X1 Android Development] CoolrunnerII:
I do design hardware for a living, so I have quite a lot of experience with it. But there are never any guarantees.

android_prebuild seems to have disappeared. I have no idea why.....

I'll see if I can find the code and have a look at the logs. Do you have a link?
[XPERIA X1 Android Development] CoolrunnerII:
I figured out the android_prebuilt thing. CyanogenMod have stopped having their own tools folders, and just link to aosp's project.

I copied the lines from ics branch on cyanogenmod/android/default.xml.

Just started a complilation now and it seems to run nicely.
[XPERIA X1 Android Development] CoolrunnerII:
Thanks for you feedback.

I am working on the various wifi issues at the moment. From my experience wifi has to be enabled in settings. Using the power management widget only works first time after a boot. With some luck i will happen on a solution to this when working my way down through the wpa_supplicant and driver.

Wifi uses enormous amounts of power when enabled. This causes the battery to get quite warm and to drain very fast. I dont remember the exact number, but i think it was almost 500mA compared to 250mA without wifi (and 30mA in suspend).

I dont have the old boot.img files. You will have to ask zargloub about them.
[XPERIA X1 Android Development] Reconfigured:
wich one is best???? icedriod v8 or cynogenmod 7.2???? coz im new and please suggest me some good kernel and link me... m finding it out from my side too... thanx...
[XPERIA X1 Android Development] CoolrunnerII:
That depends ;)

For me it would be best if you downloaded the zip in the second post in this thread. It has the newest kernel and everything. Then if you find something wrong that hasn't been reported before you can tell me about it, and maybe I can fix it.
[XPERIA X1 Android Development] Elibl:
https://gitorious.org/~detule/xdandroid/detules-hardware_xdandroid_gps

https://gitorious.org/xdandroid/hardware_xdandroid_gps
[XPERIA X1 Android Development] CoolrunnerII:
This looks promising. I'll try to use detules gps driver.

He has a commit where he talks about the arm9 crash I have seen a few times, so hopefully his patch fixed it.

By the way. If you have the time maybe you could look through the IcedroidV8 init scripts in /system/etc/init.d and see if there is something there that we should include in our rom. They go in framework/init/kovsky in the device repo.
[XPERIA X1 Android Development] Elibl:
you mean device/kovsky/configs/init/? if i renember right the arm9 crash commit is already applied but i may be wrong :p

i'll have a look at the init.d but i need to redownload the whole code and am in exams preparation^^...
[XPERIA X1 Android Development] CoolrunnerII:
Good news! I changed the android_prebuilt package to gingerbread and now it compiles again. I may have fould a way to let people connect to WEP and unsecured access points. I'll post a zip later this evening.

I also believe I have been able to turn on debugging in wpa_supplicant, so I can figure out why it won't connect sometimes, and why it wont report signal level.
[XPERIA X1 Android Development] Elibl:
i built a recovery 5.0.2.8 in which i fixed every bug i noticed (the reversed/multiple input events by the joystick, bigger fonts for those who are in need of glasses ;), ...) but i just saw that the file of my post is somehow down so i first have to find it again. didn't kerfoly posted my version in his nand guide thread?

or someone else has my recovery on his pc and could host it? or on his phone for extraction??? (the one with more buttons enabled, bigger fonts and fixed navigating)

i backed up the git with my bug fixes but i don't have the time at the moment to restore it and...
[XPERIA X1 Android Development] CoolrunnerII:
New zip in second post. I just found out about the wpa_supplicant.conf setting, but can't test it myself, as I dont have a WEP accesspoint available.

Sometimes it takes a couple of seconds to turn get to the suspend code that actually turns off the backlight. When it is properly in suspend the backlight is off.

I never tried Video Playback. What exactly did you try?

Batterydisplay is always wrong. Zargloub did a lot of work on it, but getting it right is actually quite difficult.

What exactly do you mean by torch?
[XPERIA X1 Android Development] Elibl:
i had it also somewhen don't renember with which rom for example youtube

the torch app that turns on flashlight i also already noticed that it doesn't work

sorry that i've got that less time at the moment :eek:

@brianxp7 thanks for testing
[XPERIA X1 Android Development] Elibl:
what do you mean with xperiod for linux? and keyboard blackscreen?
[XPERIA X1 Android Development] Elibl:
try to disable all screen animations (especially rotation animation in that case) if the screen is totally dead it may also be a common hardware problem referring to the flex cable/ connector of the screen

:o ah ok for the lazy ones... btw you don't need to compile android sdk. just download it, extract, export path directory and edit rules for htc to get fastboot to work but there are many guides out there for doing that...
[XPERIA X1 Android Development] Elibl:
i found ten with google at the first try... but be sure your summary of files will be very good for unadvanced users that don't want to get any further than just installing android on their phone ;) :good:

for the benchmark it's impressing to see^^
[XPERIA X1 Android Development] Elibl:
here you go in the attachment. just extract it and flash it via

fastboot flash recovery recovery.img
fastboot reboot
[XPERIA X1 Android Development] Reconfigured:
what are the steps for replacing current kernel with the one u attached in 2nd post???? in this link????

http://xdaforums.com/showthread.php?p=31860905#post31860905

i mean what are these code how does they wok??? m new so i dnt knw much bout it..
[XPERIA X1 Android Development] oakes:
Three questions!!

May I flash your last released kernel in IceDroid v8? In case I could, may I flash the boot.img straight with ADB (fastboot flash boot boot.img)?

Do you know if it's possible to do Wifi tethering or USB tethering with your rom? Which version of Wifi tether I have to install?

For the near future, do you think it will be posible to control the battery drain?

Best.
[XPERIA X1 Android Development] Elibl:
correct exactly like this... and if you copy the gps.kovsky.so from this rom to icedroid:

adb remount system
adb push gps.kovsky.so /system/lib/hw/gps.kovsky.so

you'll also have gps

coolrunnerii is looking at the battery drain at the moment i think...

for the best working indicator (it should be already pretty exact if your battery is not too old) fully charge your phone, reboot to recovery, go to advanced -> wipe battery stats, reboot, unplug, and let it discharge without recharging till the phone turns itself off.

btw: i think icedroid is at the moment still more stable than our rom but we're making progress...
[XPERIA X1 Android Development] oakes:
Many thanks you both.

Best.
[XPERIA X1 Android Development] Reconfigured:
so it wont affect any other thing right...

and the battery is not giving accurete reading...

even after installing

battery monitor

and

battery calibrator

what to do...

---------- Post added at 02:01 PM ---------- Previous post was at 01:44 PM ----------

does any fix for completely turn off or in led (4 lights each corner ) to turn on or off on my command ... coz its too annoying it always glows when battery is down and battery always doesnt give accurate reading... i'll try recovery today itself... let u know results soon but tell me how to turn off that led part... BrianXP7...

---------- Post added at 02:08 PM ---------- Previous post was at 02:01 PM ----------

once again....

any fix for memory card usb storage mount????

its showing the drive but when i double click on it... its shows please insert disk n all...

sometimes it doesnt shows drive too...

and (in mobile) when i slide down notification area for tapping it rolls back up and nothing happens...

the cable works fine...
[XPERIA X1 Android Development] taninos:
Hi,

This rom is an experimental project so many things have to be changed. Hence, if you want to have a daily nand rom try IceDroid v8 and follow jerrytan93 instructions. You can change the last zargloub boot.img included in IceDroid by the last coolrunnerII boot.img and replace the gps.kovsky.so following Elibl advices posted before.

Best.
[XPERIA X1 Android Development] oakes:
Hello,

Could we include the last coolrunnerII wpa_supplicant.conf changes in the IceDroid v8? Could anyone point it out?

Thanks in advance.
[XPERIA X1 Android Development] Reconfigured:
so... icedroid v8 has fixed up these problems????and what is gps.kovsky

i mean im new to all these.. so .. what to do with those files...
[XPERIA X1 Android Development] taninos:
Some of the problems you have mentioned will be mended with the combination of IceDroid_v8 and the last coolrunnerII kernel. The gps.kovsky.so module is necessary to have working the gps on your mobile and for avoiding the problems the old module triggers to nand roms.

Anyway, there are two important problems to solve: Battery Drain (it can be under control) and Wifi instability (difficult to control because the wifi signal instability cuts the connection).

Best.
[XPERIA X1 Android Development] CoolrunnerII:
Thats great! I updated the first post to link to it.

I also added a feature list to the fist post.

From my experience the battery meter needs a few charge/discharge cycles to get the % more or less correct. If it hasnt got there yet you can check the battery voltage yourself with the battery monitor widget or something.

fully charged is about 4.2V. The phone will turn of at about 3.6V. you have about half the mAh left when the battery is at 3.8V. This will vary from battery to battery.

I get about 30 hours from a fully charged battery, but my phone is mainly in suspend.
[XPERIA X1 Android Development] oakes:
I notice that the battery works pretty well using two different profiles in SetCPU, one for "screen on" (CPU: 528max. & 19min., Governor: ondemand and Scheduler: noop) and another for "screen off" (CPU: 128max. & 19min., Governor: ondemand, Scheduler: noop). (NOTE: I think that some SetCPU settings frequencies do not work properly because of the perflock driver, some of them overheat the battery, take care).

Now, I'm using the Zeam Launcher and I've uninstalled all CyanogenMod apps for better memory usage, so less battery consumption and more battery life.

On the other hand, the wifi is stable if you disable the "network notifications" before choosing a wifi signal and enable it after your wifi is connected.

Could we include the last coolrunnerII wpa_supplicant.conf changes in the IceDroid v8? Could anyone point it out?

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

I confirm you that there are no way to wifi tethering with your last kernel update and IceDroid. Instead, we can USB tethering with EasyTether app. Are the tether modules compiled in your rom?

I notice that IceDroid v8 is more stable than this rom. Is there a way to have jerrytan93 implementations in this rom? It should be great.

Thanks for continuing working on xperia x1. It is the only mobile I have and I love it.

Congrats to coolrunnerII for all his great kernel and rom updates.

-------------

EDIT: I confirm you also that the wifi is stable if you disable the "network notifications" before choosing a wifi signal and enable it after your wifi is connected. WEP is not working in an IceDroid with your last kernel.

How can we modify IceDroid v8 with your last wpa_supplicant.conf changes?
[XPERIA X1 Android Development] ady_95:
battery driver

Hey, Elibl, did you make any progress with this:

I asked because it seemed a good idea and no one else mentioned it in his/their progress...
[XPERIA X1 Android Development] Elibl:
I tried it the time i spoke of it but that time i was too unadvanced to succeed. I still think this is quite good possible and not that much work. But i have actually very less time. And i think bringing our git towards a stabile build is more important at the moment. I made a huge mistake when i accidently did a chmod of the whole kernel directory. I have it still backed up but it will need a lot of time to restore it or to redo the changes:eek: but be sure i will focus on that again in time...

Gesendet von meinem U8160 mit Tapatalk 2
[XPERIA X1 Android Development] CoolrunnerII:
If you have any crash reports I would very much like to hear under what circumstances you get instabilities.

For WEP I found this guide http://xdaforums.com/showthread.php?t=940126. It is for the rhodium, but I would guess it should work for our device also.

EDIT: I just set up a WEP access point at home, and can't get it to work. It gets to dhcp and then stops
[XPERIA X1 Android Development] CoolrunnerII:
That bug is just so strange, I haven't seen it, and I have all the animations turned off.

Do you see the same problem with IcedroidV8 rom installed?

Has anyone else seen this problem?
[XPERIA X1 Android Development] Elibl:
I saw it with the compilations i made the time my working directory was messed up. But there was also no bootanimation and no sim request so the builds were pretty messed up... but i saw it...

Gesendet von meinem U8160 mit Tapatalk 2