yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy Note II] Wordlywisewiz:
I just hope modding any of this doesn't disable the power or volume keys... so anyone doesn't end up bricking their device..

I can't wait to get my hands on one im sick of this nexus..

And to be honest now that I'm a little older (almost 18 ) I'm not flashing as many Roms and customizing as much as I was a few years ago. Partly because I need my phone to be stable and keep my text messages.. so having a non nexus wouldn't be much of an issue..
[Sprint Samsung Galaxy Note II] :
Anyone able to make this a flashable mod?
[Sprint Samsung Galaxy Note II] housered:
Is there any fix for the camera shutter being blocked by the nav bar? Yes i can use other camera apps but the samsung one is the best.
[Sprint Samsung Galaxy Note II] TirithXiato:
You can set the volume buttons to be the shutter....

~swyped from my galaxy note 2 on the now network
[Sprint Samsung Galaxy Note II] viniciusrsouza:
Guys, what means "have to chmod 644"?

I'm afraid of messing up things here, but don't know what's that and, so, what I would need to do if I disable all buttons here by accident.
[Sprint Samsung Galaxy Note II] viniciusrsouza:
Guys, please help me!

I added "qemu.hw.mainkeys=0" line on my build.prop file and now, after rebooting, my device does not start up. It remains in the loading Omega animation forever, does not finish loading.

What I need to do? I can't make a factory reset, I will lose a lot of things! =/
[Sprint Samsung Galaxy Note II] sparytrainor:
Always make a backup in recovery b4 trying anything like this.. If u don't have a backup u will most likely have to start from scratch. You never know what might happen when u change something and a backup will always be your friend!! May be able to get by with wiping cache and dalvik in recovery and dirty flash whichever rom u were running right over it. The should replace the modified build.prop with the original..
[Xperia Arc General] tinyXperia:
Because we need a new kernel and there were no relevant source to be found, it will probably be inpossible or too time consuming to fix this. If you want to continue this, feel free to contact a moderator to assign yourself the first post and reopen the thread.

Update 2012/12/13 official response from Sony:

About this thread

HDMI has never worked on CM9 and CM10. In this thread, I'm asking everyone to gather information, and contribute code, ideas and time for testing. It won't be working within a few weeks, but hopefully we can get it working sometime before all the Arc's and Neo's are gathering dust in our drawers.

In this first post, I'll try to add all relevant information people helped me to find.

This is not a one man project, collaboration is needed for this to succeed.

Before testing

Change this line in build.prop:

com.qc.hdmi_out=false

com.qc.hdmi_out=true

Documentation

https://groups.google.com/forum/?fromgroups=#!topic/android-porting/_Bny-_TeZ7c

http://developer.mips.com/2012/04/11/learning-about-android-graphics-subsystem/

https://groups.google.com/forum/#!msg/android-platform/qL4Jfq3-YhI/Z88hFbQ831YJ

CM10 kernel on Github

Championswimmer's kernel (AOKP)

HDMI issue in LegacyXperia bug tracker

https://github.com/mikeNG/kernel_htc_msm/commits/replicant-2.3/drivers/video/msm

Attachments

Mirror of zdzihu's files

Original CM10 libs in case you or I mess it up

kernel/drivers/video/msm/hdmi_sii9024a.c for SO-01c (Docomo Xperia Arc)
[Xperia Arc General] tinyXperia:
Work so far for Xperia Arc

Arc S required files http://www.mediafire.com/?7dn3x4yw1c9i7g0

> Not working
[Xperia Arc General] tinyXperia:
Work so far for Xperia Neo and Pro

Since the Pro's inner hardware is identical to the Neo's, the same packages should work. You should be careful flashing test packages anyway

For those wondering if there's some progress:

cmgonzalez has found opensource HDMI libs, and is trying to compile a kernel with those libs. If those libs work, it will be a relatively easy job.
[Xperia Arc General] kac222:
You can do it for ARC S full CM10;)
[Xperia Arc General] n1kolaa:
First of all you need to eable it coz it dicable in kernel :)
[Xperia Arc General] kac222:
You mean this:
[Xperia Arc General] cmgonzalez:
Technically, the pro have the same hdmi hardware, can this work on this device?
[Xperia Arc General] tinyXperia:
I'm terribly sorry, I forgot the Pro also has a HDMI port. Since the Pro is more related to the Neo, I'll add it there.

I will commence testing this weekend btw
[Xperia Arc General] kac222:
HDMI does not work on CM10 FXP 146:crying:
[Xperia Arc General] cmgonzalez:
I wish you can make it.... you're my only hope obi wan.

Enviado desde mi MK16i usando Tapatalk 2
[Xperia Arc General] tinyXperia:
meh :( I just tested it, and there isn't even sound...

I'm keeping this project on a hold.
[Xperia Arc General] kac222:
And what about the CM10, HDMI will do something or not?:crying:
[Xperia Arc General] tinyXperia:
That's on CM10, don't use CM9.
[Xperia Arc General] kac222:
I have used this CM10_Arc_HDMI_lite-safe.zip and not working on CM10 FXP 146.
[Xperia Arc General] tinyXperia:
Yes, no output for me too.
[Xperia Arc General] cmgonzalez:
F**K Sony...CM9 - CM10 works greats, but HDMI is a must.
[Xperia Arc General] cmgonzalez:
I was playing a little with it, and the hdmid daemon don't get running so the semchdmicontrolservice (the apk) can't connect to it...

You will get a lot of socket errors on localhost port 25000, if someone can make the daemon run maybe...
[Xperia Arc General] josie87:
I got an Xperia P. CM9 is already working. Can I support you by testing?
[Xperia Arc General] tinyXperia:
I don´t see how, but I can take a look at which files FXP used for the P.
[Xperia Arc General] tinyXperia:
How did you log that? Just logcat?
[Xperia Arc General] tinyXperia:
Thanks, maybe we camn make some progress.
[Xperia Arc General] cmgonzalez:
Yes I got it via logcat, I anyway the /sys/class/graphics/fb1 isn't created on cm9 and other devices that the hdmid daemon have hardcoded inside.

Enviado desde mi MK16i usando Tapatalk 2
[Xperia Arc General] josie87:
Which specific file do you mean? I assume that I should insert it before compiling? Got a working build environment for 9.1 and nypon.
[Xperia Arc General] tinyXperia:
Oh, I read your previous comment wrong, I thought you meant that HDMI was already working on CM9 for the P, so maybe I could use that files.

Currently I only work on the mogami phones (Arc, (Ray), Pro, Neo), and the P has entire different internals.

I think you can just use the files for a stock ROM of the Xperia P, these files won't work for you.
[Xperia Arc General] cmgonzalez:
Buy 2012 they works... ;)

I think that asking it on the blog its the only way to push sony.

Enviado desde mi Xperia Pro usando Tapatalk 2
[Xperia Arc General] tinyXperia:
I was surprised to found that they replied there.
[Xperia Arc General] scholbert:
Hi sdk16420!

It's a very good idea to get things rolling on this issue, because the HDMI is a neat feature.

Would be nice to point out even more clearer, what exactely is missing to make it work.

Is the kernel driver complete or not?

Which parts are exactly missing in CM10?

I guess you refer to hdmid, libhdmidisplay.so and so on...

Anyway, it's obvious that the sources of these tools/libs are covered by NDA and as far as there's nothing leaking, someone would have to reverse engineer this stuff or write something from scratch.

As for the kernel side there's a 2.6.32 branch for HTC devices which obviously use a another api:

http://gitorious.org/htc-msm-2-6-32...d45ae3881d014ce0e17679/drivers/video/msm/hdmi

(recently gitorious seems to have some trouble with their servers, so find the hdmi part as attachment)

Considering the Android side i got no clue where to start right now...

Regards,

scholbert
[Xperia Arc General] littlejoelgriffo:
Sorry to be so negative but i think the WIP should be removed from this threads title. Unless Sony release the sources, we're pretty unlikely to get HDMI working.

If this was a popular Samsung phone, there'd probably be super smart and devoted developers that COULD write hdmi from scratch (or next to).

All we can realistically do is make a petition for Sony to provide sources for HDMI.

Again, sorry to be negative, I'm trying to be realistic is all.
[Xperia Arc General] presola:
Sorry to break it to you, but that's just not true. We, smdk4210 users, also have super smart and devoted developers (codeworkx, entropy512, espenfjo, etc.) and our HDMI was, is, and probably will never work due to Samsung never releasing useful source code.
[Xperia Arc General] tinyXperia:
Will request close thread
[Xperia Arc General] scholbert:
I understand your decision...

From what i found out reading some statements from Sony developer's,

main parts of HDMI sources had been licensed by Ericsson, that's why Sony could not simply put it as GPL after they split.

So it seems there will be no gift for us.

Anyway, nobody had ever pointed out what in fact is missing.

Elementary driver parts could be found in the kernel, but what is exactly covered by this code?

I know there's a propietary deamon in Android OS (e.g. hdmid) and essential libs as well.

Wouldn't it be possible to get hands on some code snippets from SI?

How about using other code bases driving the same chips but with better license situation?

Maybe there's another more freaky way to try...

However, thanks a lot for open up this thread and roll out some discussion on this issue.

EDIT:

This thread points to the official situation as well and ther'd been some movement:

http://xdaforums.com/showthread.php?p=36410015

I assume FXP team already got this binary blob then...

BTW, do you know this datasheet... not of much help but anyway, i thought to put it done here, before the thread get's closed.

EDIT2:

O.K. something more to add...

I did it the freaky way and found some interesting stuff, though we might need some experts to have a look at it.

Still no userland code, but the most comprehensive kernel code for HDMI using a Sil9022 ("big brother" of Sil9024) i found so far.

Kernel is 2.6.32.9 as well and was provided to support a tablet called Sylvania.

See this forum thread as a reference:

http://www.androidtablets.net/forum/sylvania-tablets/18733-source-code.html

Seems that this code got not removed from the kernel by accident.

So copyrighted by Silicon Image no GPL code...

Anyway i'd like you to know... if it's against rules i'm gonna remove it!

EDIT3:

Seems that the Si9022 got integrated as IP-core in one of these SoC's.

http://www.infotmic.com/en/products_iMAPx820.asp

So this code could be useful as a reference... but would require extensive rework of the internal interface API.

Best regards,

scholbert
[Xperia Arc General] cmgonzalez:
Technically what is missing to get hdmi on cm10?
[Xperia Arc General] M66B:
Information, libraries, source code.
[Xperia Arc General] cmgonzalez:
http://www.viaembedded.com/en/eDM/20130102/VIA ARMTiGO A800_datasheet_v130123.pdf

it uses a Silicon image SiI9024A HDMI transmitter, maybe there is some source to work..but i can't find any info.

edit: i found this maybe it helps our devs (with a nice nda :P ):

http://www.viaembedded.com/en/downloads/EvaluationKit.jsp

There's a lot of via devices using this chip.
[Xperia Arc General] scholbert:
Hi cmgonzalez!

I just wanted to give a short comment to this VIA platform and point you to another source i found in one of the replicant kernels.

Unfortunately the VIA sources are not of much use, because most things are closely related to functions of i.MX platform which is used on this hardware.

It seems to be to far away for our devices...

Anyway i did further research weeks ago already and just wanted to post it here for completeness.

There'd been some code for the Sil902x series in one of the branches for the replicant project:

http://gitorious.org/replicant/kernel_htc_msm/commit/d66d2a0c695b503ca2607c4b0502c5d7c93840f3/diffs

This driver implementation is more complete and differs from the Sony solution.

Don't know about the requirements on higher level though and if there's support in CM for it.

The main difference is that this driver handles initialization and management of external monitors at kernel level.

Sony did it another way:

They made only rudimentary init processes at kernel level and then used proprietary hdmi daemon and libraries to set everything up at system level.

Anyway, could be that i got lost in the sources and/or do not understand the process correctly, but if there's a chance to circumvent proprietary files, this might be the way.

So please leave a comment or correct me if i'm wrong :p

EDIT:

Could someone please give some details about this code:

https://github.com/dzo/frameworks_base/blob/master/cmds/hdmid/HDMIDaemon.cpp

Which platform makes use of this code?

EDIT2:

Anyone any clue?

Is this HDMIDeamon used as a reference for emulator only??

Regards,

scholbert
[Xperia Arc General] TodorSRB:
Still nothing about HDMI? Can you try porting it from 2012 or 2011 stock ICS on CM10.1 or 10.2

EDIT: http://developer.sonymobile.com/kno...roid_tutorial/how-to-use-the-hidden-hdmi-api/

Can this be of any help?
[Xperia Arc General] tinyXperia:
I'm not by any means a developer, but the article you linked is a about an API, which is app level stuff , whilst the problem here is that HDMI is not supported on kernel level IIRC. The reason why we can't use 2012 HDMI sources is both lack of those sources and differences in hardware.
[Xperia Arc General] TodorSRB:
And there is no way of using like HDMI app from ICS, like any other app porting, I know it's not that simple, but hey they say anything is possible if you really want it. But I'm no developer, but I wish that I could help in any way, I really want HDMI and I don't wanna go to sh*tty stock ICS. I don't know if it will work using MHL adapter?

EDIT: I just saw again what that Sonys dev replied, he said it is Kernel implementation, why can't we use stock kernel on CM? Like SGS+ for example would it be doable then?
[Xperia Arc General] tinyXperia:
For CM10 and up, there's no stock kernel for the corresponding Android version. For CM7 and CM9, you can try using stock kernel with CM ramdisk (unpacking ramdisk is fairly easy), but I don't know what problems that could give (likely not bootable).
[Xperia Arc General] TodorSRB:
I don't wanna risk bricking my phone just for HDMI, I thought it would be cool to use Sixaxis and HDMI.
[Xperia Arc General] tinyXperia:
It won't brick your phone, but it's probably a waste of time to try...
[Xperia Arc General] TodorSRB:
Damn Sony :/
[Xperia Arc General] scholbert:
... starting a new attempt???

Hey, nice to see that there's some action here... :D

Yeah it's a waste of time.

I did some further research, because i'd really like to crack the HDMI nut for Xperia 2011 some day.

To sum it up again:

On stock ICS most of the HDMI setup is handled in userspace and we'll never get the sources for these daemons.

So this way would be a no go.

Unfortunately it's not completely clear (at least for me :eek:) how the API to Android should look like, to match the standard CM codebase or the implementation used by Qualcomm (qcom external libraries).

In other words, what needs to be handled at kernel level and what needs to be implemented at OS level.

Anyway it's getting clearer every day and it would best to cover most parts in the kernel driver itself, to avoid specific daemons.

I found some code bases in one of the freescale BSP kernels, but it's a pure linux kernel, so it might be harder to hook on that.

The parts of mxcfb had to be replaced anyway. Let's leave this out for now...

Two weeks ago i found something promising, which could give us the opportunity to write our own driver code from scratch.

Have a look here:

https://github.com/gripped/MK808-he...ster/drivers/video/display/hdmi/chips/sii902x

This seems to be the original reference driver from Silicon Image which got integrated to work with the RK3066 chip and its framebuffer.

Some parts are very clear and could be found in a similar form in several other drivers as well.

Anyway my guess is that these sources are the best reference code for SII902x right now.

The way the rockchip programmers created their kernel API is very platform specific, at least from what i got out of it :p

Maybe some parts could be used at least as a reference, but i guess it would be required to follow the qcom path and integrate the driver code to match the MSM chips.

We could use the reference code for ADV7520 (HDMI transceiver used on the QC eval boards) as a skeleton driver and replace all low-level routines first, to match the register setup of Sil902x.

Then we jump into the higher level routines and replace them piece by piece ;)

ADV7520 reference driver:

https://github.com/LegacyXperia/msm7x30-3.4.x-nAa/blob/cm-10.1/drivers/video/msm/adv7520.c

Furthermore we'll have to tweak the CM config files and qcom/semc libraries to compile in the HDMI parts... and i guess we'll need some app in the end to handle external displays.

This may depend on the features we'd like to support.

Whatever, i just wanted to share this idea and as i just wrote down on another thread it's summer time right now and less time to hack on driver code.

I wish that some skilled hacker's might join in or leave a comment here.

Anyway feel free to tell me your thoughts or call me crazy or both :angel:

Cheers,

scholbert
[Xperia Arc General] cmgonzalez:
[MENTION=557802]scholbert[/MENTION] nice work, you should tell to mikeng, he is the talented hacker :P
[Xperia Arc General] tinyXperia:
I really have a hard time understanding all this lower level stuff, but here's SemcHDMIControlService.apk from an ICS ROM, the zip has the decompiled files. I was just curious how it works :).
[Xperia Arc General] scholbert:
Hey cmgonzalez!

Thanks for appreciation!

As i tried to sort out, i really think this way may be the most promising.

If you step into qcom reference code you'll see that all HDMI related stuff (newer chips with integrated transceiver use msm_hdmi.c) uses external common which seems the API to the external qcom libs for OS level.

You'll find similar structures in the qcom/semc sources at CM repo's.

Refer to this header of libexternal:

https://github.com/arco/android_hardware_qcom_display-legacy/blob/cm-10.1/libexternal/external.h

So again, my guess is, that this will give us a solid basement to hack on.

For the Xperia 2011 series, we need to keep track of proper chip setup on low level (mostly done with I2C) and this could be done by the kernel driver (the original Sony solution did this via sysfs from userland with proprietary code).

In the official qcom external libs HPD seem to be handled through event system at OS level parsed to kernel via external common structure and then initiates all further actions.

I'm a little confused though, because it seems that we need an interrupt (for HPD) from the kernel driver as well...

If someone likes to correct me, you're welcome :o

---------- Post added at 04:50 PM ---------- Previous post was at 04:47 PM ----------

Hey sdk16420!

Yeah thanks for that... i did a decompile myself some time ago... maybe some commands could help us though.

AFAIK would be better to leave the Sony way... and walk CM :laugh:

Best regards,

scholbert
[Xperia Arc General] Boomscud72:
Thank

Thank for working
[Xperia Arc General] :
Well don't know about HDMI, but Mike just fixed Camera in LegacyXperiaProject!!

https://plus.google.com/app/basic/stream/z12yi13joz3yt1xw404cctb4lkylwrswkio
[Xperia Arc General] EAGLEBOOY:
Hi please some one take a look at this about hdmi

http://xdaforums.com/showthread.php?t=2596910

because nexus Q is on android 4.0 and also have hdmi

but if it success with hdmi on cm11 so we also can get success to have hdmi on our devices on jb and kitkat
[Xperia Arc General] skaveelicious:
As far as I know the problem with HDMI on the Xperia 2011 is that there is no real documentation about the HDMI chip that those devices use. Normally a chip manufacturer (here Silicon Image) provides a manual with details about how to access this chips functions via software. Normally what you do is write a a binary "data" into a specific part (address) on the HDMI chip, which is a keyword for performing a specific task like sending a message, data, power on, power off, etc.

[MENTION=557802]scholbert[/MENTION] has included some nice documentation that could serve as a basis. I'm much interested into getting HDMI to work on the Xperia 2011 and have been setting up the Android IDE the past few days, to familiarize myself with the Android enviroment. I have lot's of knowledge about programming Microcontroler hardware and their peripherals. But this is 1 level higher and will take some time. Additionally I still need to learn proper steps for testing code because this is not a pice of hardware you can connect via JTAG and press a flash button and later press buttons and step through the program code looking for bugs.

From what I have seen in the code the keyword is understanding the HDMI chip registers and getting a clean list with addresses and meaning of each bit in those registers. If that is clear we could pretty much copy the code from other providers and after resolving each event having them call the functions that will write the necesary data into the Silicon Image HDMI chip registers.
[Xperia Arc General] willianmp:
Someone has worked in kitkat?
[Xperia Arc General] willianmp:
Thank you...
[Xperia Arc General] gouster3:
CM10_Neo_HDMI_lite-safe.zip

Is there working both audio and video?
[Xperia Arc General] gouster3:
which cm10 rom suport CM10_Neo_HDMI_lite-safe.zip?
[Xperia Arc General] mirhl:
I'd like to re-heat the discussion starting with this nice brainstorm

In addition, the scene quite much evolved in the last years.

Along with all the 'classical' repos and nice ideas [MENTION=557802]scholbert[/MENTION] referred to in this and other threads, we now effectively HAVE a complete fully fledged

mainline sii902x driver

.

Also, some implementations on the Analog Devices front are there too.

I'm actually a bit confused between which is right to our case (see comments here for how different "wirings" are possible), but whatever. It ain't a black box anymore.

Last but not least, I'm not sure how useful this could be, but you can definitively check out the variety of ways over time HDMI on Xperia S has been tried.

From the initial attempts with mako blobs, to (I guess?) ~100% CAF as it is today.
[Xperia Arc General] gouster3:
So, is is possible now to get working HDMI on Xperia Neo in CM13?
[Xperia Arc General] mirhl:
It never really was about possibility tbh.

If electrons could be commanded some proper way in stock rom, no reason they could not in cm.

Only, it's more or less difficult, depending on how much whell reinventing you have to do.

A [I think major] part of the work was now magically done by samsung devs. Then idk how much is left, but you'd certainly need some dev to with the time and will to work on this before everything.
[AT&T Samsung Galaxy S II SGH-I777] trigga_b:
I know that there are different version of the galaxy s II, but I wanted to know if the lcd displays are interchangeable from the different versions?
[AT&T Samsung Galaxy S II SGH-I777] Nick281051:
Depends on what versions you're talking about.

Sent from Team Pirate! Using Tapatalk 2
[AT&T Samsung Galaxy S II SGH-I777] votinh:
If you can fit the 4.52" screen into the 4.3" frame (and vice versa), then it should be interchangable.
[AT&T Samsung Galaxy S II SGH-I777] djluis48:
Maybe, JUST maybe between the i9100 and the i777 because they are pretty similar.
[AT&T Samsung Galaxy S II SGH-I777] trigga_b:
yeah the i777and i9100
[AT&T Samsung Galaxy S II SGH-I777] Jack_R1:
No, they're not.

i9100 has 2 touch buttons and 1 physical button, with a hole for it in the relevant place.

i777 has 4 touch buttons.

The connectors are most probably different, and even if they aren't - you need a custom-compiled kernel to run such a thing. And if you're on i777, you'll need a button to fit in the relevant place.
[AT&T Samsung Galaxy S II SGH-I777] Phalanx7621:
Hey I was just wondering if this here iphone 5 case will fit my i777. They are both phones after all! ;)