yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] vdelf:
I left my fully charged x1 running android last night, and it lived for 8 hours (standby, active data connection, email check every 30min). Then the battery management restarted the phone because of low capacity. Back in WinMo, the capacity was at 50%. So android will last for 16 hours on "active standby". Nearly there! :D
[XPERIA X1 Android Development] linuxtux:
Yes, have noticed Android battery management isn't accurate and will reboot back into WinMo even though there is plenty battery capacity according to WinMo battery management.
[XPERIA X1 Android Development] drlucky:
Headphones

Hi,

Currently working on the headphone issue - I have corrected the headphone code, but it seems that the headphone plug is not monitored currently. The code snippets used for the raphael (HTC touch) are not in the kovsky (X1) sources. Maybe that's the problem.

Does anyone has any insights in the h2w layer and the differences between raphael and kovsky? I have found out the GPIO pins for insertiung/removing the headset, but have no clue on the other settings in the h2w struct.

Cross fingers - maybe my next build will work on the first try (although I wouldn't believe it ;))
[XPERIA X1 Android Development] _Sensible:
@drlucky....

Just looking through the headset code...is the h2w driver ever inited in Kovsky?
[XPERIA X1 Android Development] mouchla:
Just go to the market and download the new version of astro file manager.
[XPERIA X1 Android Development] drlucky:
Kovsky had no H2W code until now. I just copied the raphael code and try to get it working now.

dmesg says:

[ 1.789672] H2W: Registering H2W (headset) driver
[ 1.790649] h2w_init_cpld<4>h2w_config_cpld 2<4>h2w_config_cpld UART3<6>input: h2w headset as /devices/virtual/input/input0

Which means that my h2w initialization code seems to get called. Anything else is not quite clear by now.

Anybody knows, how I can display ALL the dmesg entries? My file always contains entries up to second 26 or so, anything else needs to be written to anotehr location inside android. And debugging using the terminal emulator and typing dmesg and scrollig isn't fun at all. It would be great to get the complete dmesg entries over USB PC connection. Anyone?
[XPERIA X1 Android Development] vdelf:
This is my try to activate headphone. Dont trust my GPIOs, they are pure guesses and/or wrong :o It even activates the backlight :rolleyes:

H2W-support is missing in main repos for kovsky. Android mentions something like that during boot. After adding this framework, the message was gone. Maybe it helps.
[XPERIA X1 Android Development] _Sensible:
Cool cool, can I ask what the code from raph is?

Cheers :)
[XPERIA X1 Android Development] jwte:
http://www.codeweblog.com/android-development-tools-used-by-adb/

I don't know if this tool work I only google it and find this.
[XPERIA X1 Android Development] _Sensible:
@vdelf,

If no one else gets around to it I'll check the patch in a couple of hours...
[XPERIA X1 Android Development] drlucky:
Hi,

My current work seems to look similar .. copied some h2w code from board-htcraphael.c and changed soem GPIOs I've recorded myself using haretconsole, but this doesn't work out of the box.

Currently I'm trying to figure out whats going on by inserting more printk's :)
[XPERIA X1 Android Development] cyberdesigner.net:
you could use ssh over wifi/usbnet to show the full dmesg output on your PC-Monitor. Have you tried that?

http://xdaforums.com/showthread.php?t=442754
[XPERIA X1 Android Development] drlucky:
Can't login, because I don't know the root password of my android ... :(
[XPERIA X1 Android Development] drlucky:
Keyboard layout ...

Hi,

Does anybody know how to enable virtual keyboard in the terminal emulator? Or how to change the keyboard layout?

I'm currently working on the kernel and need to grep on the dmesg, but cannot enter a pipe symbol ... very frustrating. I have a german keyboard layout, but the keys seem to be qwerty-mapped.

Since the terminal emulator seems to be the only solution for me to get access to my dmesg debug messages, I'm currently a bit stucked in the process of fixing the sound issues.
[XPERIA X1 Android Development] cyberdesigner.net:
Look at the 3rd or 4th page of the given thread... there you can read on how to setup a rooted user ;)
[XPERIA X1 Android Development] cyberdesigner.net:
in some cases you could make a simple textfile with all these characters in it and copy&paste then as you need ;) not as nice as it could but i used this in some situations ;)

anyways: if you get ssh to work you would have a even better solution ;)
[XPERIA X1 Android Development] linuxtux:
If you are really stuck, you could go into preferences of terminal emulator, select "Initial command" and type in the entire command line string to be executed when the app is started.
[XPERIA X1 Android Development] linuxtux:
Found pipe symbol using the following key sequence;

Press function key, followed by shift key, followed by commer key (right hand side of space bar)
[XPERIA X1 Android Development] vdelf:
For keylayout and keymapping in general, and to look for other keys mapped, take a look at this.
[XPERIA X1 Android Development] angusmcb:
"activates the backlight" - you mean this patch allows the microp-klt driver to probe() properly? :eek:
[XPERIA X1 Android Development] vdelf:
No, it activates the led-light on the back of the phone, the camera flashlight. I accidently used the GPIO for that led-light in my headphone-tests.
[XPERIA X1 Android Development] ahmedsalem89:
can any1 help me with the internet settings on android cuz i failed at setting a working connection

here r my setttings that works in windows
[XPERIA X1 Android Development] dexteral:
what i did

went in apn in android

in apn connect.mobilinkworld.com

in username connect.mobilinkworld.com

password i left blank

so am guessing for u

and just try

in apn internet.vodafone.net

in username internet.vodafone.net or internet

password leave blank
[XPERIA X1 Android Development] wess786:
Do I need to delete all the other 'modules' (kernels (I mean no zImage))?
[XPERIA X1 Android Development] drlucky:
Your great. Thanks a lot. This seems to be the solution, because I'm not able to login remote using telnetd (always asks for password and I cannot change the password or create a new user for login).
[XPERIA X1 Android Development] drlucky:
Sound is not completely working

Hi,

I have found out some things about the sound:

1) sound-patch is able to enable/disable the external speaker. You can test this by calling your mobile and switch the speaker on/off (using menu key during call). You can hear that the phone call is switched between the external speaker and the little speaker on top for phone-calls. Functions for enabling/disabling the speaker are called (checked with printk)

2) Android doesn't seem to disable the speaker after playing a sound. This may lead to some sounds during wifi etc (I personally haven't got the problem, but another user posted this). Before palying a sound, the speaker is enabled but never disabled again (same functions as in (1))

3) I was not able to enable the headphone - most likely because android currently doesn't recognize when I plug-in the headphone. I think I have found the function that enables the headphone amplifier, but this is never called. Maybe wrong GPIOs ... I think there's something wrong in the H2W code I have created (looks more or less identical to the patch vdelf posted earlier)

Trying to look into this further, If my wife lets me spent some more hours this weekend hacking on my computer :D

If anyone is interested, I have added the patch for my h2w changed in this post.
[XPERIA X1 Android Development] jwte:
I don't now if this helps you, but in system.sqsh I have find a file "/usr/keylayout/h2w_headset.kl" and inside that file it was only this line =

key 226 HEADSETHOOK WAKE
[XPERIA X1 Android Development] _Sensible:
@drlucky / vdelf

Interested in creating a gitorious branch or svn repo for kovsky dev?

I'm having issues with the patches...various hunks failing. :)
[XPERIA X1 Android Development] indy.89:
This is the proccess i followed to get my internet working in android:

In android, tap menu, settings, wireless & networks, mobile networks, access point names. Then press left soft key and select new APN.

then enter the settings from this site under "Vodafone GPRS Settings" - "Vodafone GPRS settings (Email/Web):".

copy the information from this site into the relevant fields on android. any information that android requires that is not on this site then just leave those blank.

once you have finished press the left soft key and hit save.

This the exact process i followed to get my GPRS/ 3G working. only difference is im on orange.
[XPERIA X1 Android Development] ahmedsalem89:
thanx so much indy.89 but I guess the prob. is that i don't live in the UK I live in Egypt

will it work???
[XPERIA X1 Android Development] n00b3r:
I'm not sure if anyone else is having this problem, but after I made the End call button do nothing in spare parts. I can no longer put it into standby (no keys that actually turn off the screen). I tried the right software key above the end key and it doesn't do anything either. I just have to wait until the phone turns the screen off itself after the timeout. However, when it goes to standby itself - the only key that can turn on the screen is the power button at the top of the Xperia - all other keys do not respond even after waking up until I reset Android. Does anyone else have this problem?

And I'm not talking about the backlight problem... I mean the actual screen itself not turning off.
[XPERIA X1 Android Development] dawen:
yes i have the exact same problem
[XPERIA X1 Android Development] n00b3r:
Glad I'm not alone. I suggest to people that read this not to change any settings for the 'End key' in spare parts.

I'm going to have to delete my data.img and start over again, but hey! it's fun stuff =)
[XPERIA X1 Android Development] wess786:
I'ma ask it again, do I have to delete all the other kernels (modules..)?
[XPERIA X1 Android Development] ahmedsalem89:
any1 knows how to add arabic to android? i have been searching a lot and all the guides were really hard to do as i'm very new to android

is there a more simplified way?
[XPERIA X1 Android Development] vdelf:
If you mean the the archive-files with the wlan-modules, then no, you do not need to delete them. But you can remove them after first boot. And for first boot, you need only the one matching kernel-version.
[XPERIA X1 Android Development] jwte:
I haven't touch the end button settings and I think it's after I have slide out the hardware keyboard all my hardware keys do not respond(not the power button) but I can still play with Android with the touchscreen but I can't exit a program without the back button.
[XPERIA X1 Android Development] Reversedhex:
or you could just change them settings back...
[XPERIA X1 Android Development] wess786:
Well vdelf, you mean if I let it boot for the first time the packages have to stay, second time I boot it I can delete them? If yes, why is Android freezing the first time I booted it?
[XPERIA X1 Android Development] drlucky:
Sure - I have created a fresh gitorious clone of the linux-msm project. I'm currently not sure how to add you as collaborators (so that we all can commit/push changes into the repo).

I will try to push my changes into this new project:

http://gitorious.org/~drlucky/linux-on-qualcomm-s-msm/linux-msm-xdadev

I need to dig a bit more into git, so that I understand how to merge the changes from the original linux-msm (because I think we should get them to improve the quality of the kernel even more).
[XPERIA X1 Android Development] _Sensible:
^Awesome,

I think you can add users with ssh keys?
[XPERIA X1 Android Development] dexteral:
IS THIS THE ADDRESS

http://gitorious.org/+kovsky-linux-msm/linux-on-qualcomm-s-msm/linux-msm-xdadev
[XPERIA X1 Android Development] ollep:
Well done but i have a wifi problem with both my x1 non works.

Even if i tried everything i can read, any idea´s ?
[XPERIA X1 Android Development] drlucky:
You are absolutely right, I sent the wrong address in my post (sorry). I have pushed my patches to the repository, so that everyone interested can use this. Some of vdelf's patches are already in, except the headphone ones, because I have done most of it already.

EDIT: Please don't send me your ssh public key, I've not fully understand gitorious. Please send me your gitoroius username (if you don't have one, sign up ... it's free).
[XPERIA X1 Android Development] ahmedsalem89:
can any1 plz upload the usb-drivers for android, i can't find them anywhere and i have to restart my phone and boot windows everytime i want to connect it to the computer
[XPERIA X1 Android Development] Viper89:
thank you:).
[XPERIA X1 Android Development] Viper89:
Question about Terminal Emulator and finding the SD card path? If I renamed my SDcard in my computer to a different name is that the name I have to type into Terminal Emulator to find my memory card path?
[XPERIA X1 Android Development] indy.89:
Ahh egypt, urm dont know if it will work, probly not.

Try these settings:

Name: Vodafone Internet

Username: Internet

Password: Internet

APN: internet.vodafone.net

Leave everything else blank.

And if these don't work, then either search google for the the settings, or while in android, ring Vodafone and ask them to send you the settings in a text...

hope this helps this time
[XPERIA X1 Android Development] samsamx:
development stopped?? no new versions anymore... good luck to fix all errors
[XPERIA X1 Android Development] jwte:
The last version/update was 4 days ago. So I don't know why you think development have stopped.

http://xdaforums.com/showpost.php?p=6124177&postcount=1163
[XPERIA X1 Android Development] _Sensible:
Just been looking at this, reading at offset 0x30 produces this:

[ 4.377197] microp-klt: Registering MicroP-LED driver
[ 4.409606] microp-klt: Initializing MicroP-LED chip driver at addr: 0x30
[ 4.473937] msm_i2c msm_i2c.0: error, status 43c8
[ 4.506744] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 4.590911] microp-klt : read retry
[ 4.623565] msm_i2c msm_i2c.0: error, status c8
[ 4.656372] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 4.741088] microp-klt : read retry
[ 4.774047] msm_i2c msm_i2c.0: error, status 43c8
[ 4.806976] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 4.891845] microp-klt : read retry
[ 4.925018] msm_i2c msm_i2c.0: error, status c8
[ 4.958435] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.044311] microp-klt : read retry
[ 5.077728] msm_i2c msm_i2c.0: error, status c8
[ 5.110931] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.196350] microp-klt : read retry
[ 5.229522] msm_i2c msm_i2c.0: error, status c8
[ 5.262603] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.347717] microp-klt : read retry
[ 5.381011] msm_i2c msm_i2c.0: error, status 43c8
[ 5.414459] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.501220] microp-klt : read retry
[ 5.535339] msm_i2c msm_i2c.0: error, status 43c8
[ 5.569610] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.657379] microp-klt : read retry
[ 5.691986] msm_i2c msm_i2c.0: error, status c8
[ 5.726470] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.814605] microp-klt : read retry
[ 5.848968] msm_i2c msm_i2c.0: error, status 43c8
[ 5.883331] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 5.970916] microp-klt : read retry
[ 6.005126] msm_i2c msm_i2c.0: error, status 43c8
[ 6.039367] msm_i2c msm_i2c.0: Error during data xfer (-5)
[ 6.127136] microp-klt : read retry
[ 6.161193] microp-klt 0-0030: i2c_read_block retry over 10
[ 6.228881] microp-klt : unable to read microp firmware version
[ 6.297515] microp-klt: probe of 0-0030 failed with error -5

Will have a look at the dll at somepoint to see if we can get any clues...
[XPERIA X1 Android Development] _Sensible:
@angusmcb

Like you I tried bypassing the error, however I included the raph experimental code regarding micro-klt state. See below:

[ 4.401123] microp-klt: Registering MicroP-LED driver
[ 4.434051] microp-klt: Initializing MicroP-LED chip driver at addr: 0x66
[ 4.499786] microp-klt : misc led status: 0x0 | 0x9
[ 4.598266] Registered led device: klt::home
[ 4.632171] Registered led device: klt::back
[ 4.665954] Registered led device: klt::end
[ 4.699554] Registered led device: klt::send
[ 4.732879] Registered led device: klt::action
[ 4.765869] Registered led device: lcd-backlight
[ 4.798828] Registered led device: button-backlight
[ 4.831176] microp-klt: Initialized MicroP-LED chip revision v0000

Do you have any idea what status: '0x0 | 0x9' is?
[XPERIA X1 Android Development] _Sensible:
After looking through some old irc logs i came across this from xperia. Its a Haret log which may contain correct address for microp-klt...

http://pastebin.com/f1e8d6158
[XPERIA X1 Android Development] angusmcb:
I can't understand how the address could be wrong: if you look at this code from microp.dll:

.text:100078D8 MOV R0, #0x30 <-- microp version register
.text:100078DC BL KLTReadByIndex

and this ...

.text:10007520 MOV R0, #0xCC <-- I2C bus address (7- bit address in linux is 0xCC>>1 == 0x66

.text:10007524 BL I2CMgr_ReadMultiBytes

Now this code obviously works in windows, maybe there's just some gpio problem that we need to sort out.
[XPERIA X1 Android Development] neock:
type "ls" to see if there exists "sdcard" in blue color. if not, type "cd ..".

repeat this until you see "sdcard" while using "ls"

then "cd /sdcard"

"/" = Fn(blue square") -> shift -> ?
[XPERIA X1 Android Development] n00b3r:
I'm not sure if this post will help people edit fatsal's Android build, not just the kernel, but also the files... but this is in regards from another post regarding keymapping, I posted this in this thread (http://xdaforums.com/showthread.php?t=663214):

I basically extracted and changed the file and recreated the sqsh, but it was in squash-4.0 which is not backwards compatible with 3.1 which the android kernel doesn't support. I'm going to install a lower kernel than 2.6.29- and install mksquashfs that does support making 3.1 sqfs'.

Edit: Got squash-tools 3.4.1 installed on CentOS 5.3. Changed qwerty.kl into the Xperia keymap (http://aiv-dev.info/opensource/xperiax1/x1.keymap). Remade squash file and booted up Haret. Kernel boots up squashfs fine. Time to try if the keys actually work like it should.

Edit2: Keys do not work with this key layout than original qwerty. I looked at the both files and they look hugely different in format. Also, its no point opening up and recompiling the sqsh, qwerty.kl is symlinked to /etc/keylayout/qwerty.kl while Android is running, which is in /init.etc/keymaps/ in the rootfs.img.

How to uncompress/remake squashfs. You need squash-tools 3.4.1 to make a squashfs 3.1 filesystem needed for Fatsal's android kernel (assuming root access).

Make sure you do not forget the -le flag, the -le flag was also used in the original file. Check the flags used in the compression of the original sqsh file for reference by going:

# unsquashfs -s system.sqsh

Here's how to mount rootfs.img and location of the keymap that's being called by a symlink in system.sqsh (qwerty.kl) (assuming root access):

rootfs.img is writeable after mounting, so you can make changes and then unmount and copy the new img onto your sd card.

Here's the qwerty.kl included with fatsal's android build, if someone would be kind enough to look at this and modify this one according to it?

Edit 3: Actually, I think we need to actually edit the kcm's along with the keylayouts.

Hope this helps...
[XPERIA X1 Android Development] n00b3r:
So I mounted and went through aiv's old Android 1.6 build to look at the keylayout that he used, and his method is completely different that the current Android's.

He uses /usr/bin/loadkeys to load the keys, which explains why the format is different. I added loadkeys into /bin, as it isn't part of busybox, in the rootfs.img and changed init to run the command - however, loadkeys cannot be executed due to missing libraries. There's also a loadkmap in busybox, that takes in a keymap binary created by dumpkmap - not sure if it's revelant in our case.

I also figured out that we will actually need to also edit the kcm files, as well as the kl files. However, the kcm's are compiled to .bin's using Android's developer tools, so I can't open it up to see what they originally were so I can modify them. If anyone have the 'original' (not the ones that came with Android, the modified one if it is...) files, please post them here.
[XPERIA X1 Android Development] vdelf:
Yeah! That did it! Just tried that version and it worked perfect!

A quick search offered no debian package of the squashfs-tools 3.4-1, thats why i never hit the right version. And debian package 3.3-something fu.. up with uid/gid. But converting a fedora-package worked. I attached both packages.

My big thanks to n00b3r! :D

Now i am quite sure that this will also fix the problem i had booting from sd-card-partition. But i am to tired to try that now ;)
[XPERIA X1 Android Development] n00b3r:
No problem, glad I could help. Since vdelf uploaded the rpm's for FC. Here's the rpm (i386) that works for CentOS 5 (fixed the glibc 2.7 dependency required for most squash-tools-3.4.1 rpm's made for FC10+)

I also have 5 finals coming up next week, so I'll play around with this after.
[XPERIA X1 Android Development] Mic159:
Hmm I just tried it then, and still the same. I used your deb version on ubuntu.

Where im extracting it to is owned by root, is that the issue? should i chown the files to some other userID? becuse the files made from android when booting seem to be owned by either root or something like userid 1002...

If we could get the logs saved to any of the partitions it would be good to see what errors are actually occurring rather than stabbing in the dark.

Or, is there a way to turn off the startup animation and just show the terminal? so we can read it on the screen.
[XPERIA X1 Android Development] Viper89:
thank you for your reply, I type cd in and get Home not set? What does that mean? Sigh....... I hope I can solve this problem so I can use swap:(.
[XPERIA X1 Android Development] n00b3r:
Try this:

Do

to check if it actually worked.

Try it, but I think you need to be logged in as root to do that, if not already.

(not sure about the root password though - someone will need to post it, If not, I can upload a new rootfs.img with a new root password stored in shadow only if no one knows the existing one.)
[XPERIA X1 Android Development] Viper89:
@n00b3r I think I got it to work somehow. How much swap are we supposed to have? My Swap total says: 131,064.@Anybody my friend has the Droid and they got their update for 2.1 awhile ago, I noticed they have the Live wallpaper with the water and the leaves( The one the Nexus one has), I can't find it in the app store does anybody have this Live Wallpaper?
[XPERIA X1 Android Development] n00b3r:
It's how much you defined it to be. Or if you used Fatsal's swap file, that seems to be right.

As to livewallpapers, I suggest you not use them as it'll slow down your Xperia; but if you really want to try it, http://xdaforums.com/showpost.php?p=6013154&postcount=104.
[XPERIA X1 Android Development] Viper89:
Can you explain in detail how to define the number of swap we want? Also my question was not how to use the Live wallpaper because I'm currently using them now( Fireworks one:) ) my question is how to get the The water and leave one like the Nexus one has because it's not in the Android Market;).