yashsingh1/xdaforums huggingface dataset:
[Motorola Droid 4] lucize:
antutu is reporting greater performance

exfat is included

the sources are here:

https://github.com/lucize/android_kernel_motorola_omap4-common

maintained tree

https://github.com/lucize/android_kernel_motorola_omap4-common/commits/cm-11-dss

please understand that this is work in progress

use Safe Strap 3.65+ or overwrite the files in the full rom image

09.03.2015: more dss update, i2c update, almost all asoc update

04.03.2015: bfq update, minor dss update

02.03.2015: update to CM + latest gpu drivers for cm11 (the kernel with dss it needs supported hwcomposer.maserati.so)

24.07.2014: update to CM + more DSS merge

24.06.2014: update to latest vulnerability fixes from CM

19.03.2014: hdmi from 3.4, should work on the rest of displays and avr

18.03.2014: HDMI working (720p for me over HDMI), 1080P over DVI, movies 1080p over HDMI. glad I didn't wasted last months on nothing :eek:

17.03.2014: WIP HDMI, for me is working (negative colors) only with DVI adapter (philips monitor), please test on other model, + more 3.0.31 merges.

18.02.2014 - disabled HDMI, enabled SmartRelfex3, improves standby, hopefully also fixes no sound issue.

14.02.2014 - added latest fixes from stargo's git, hoping usb update will fix data connectivity.

Regards

XDA:DevDB Information

[Kernel][3.0.31]+, Kernel for the Motorola Droid 4

Contributors

lucize

Kernel Special Features:

Version Information

Status: Stable

Created 2014-07-24

Last Updated 2015-03-09
[Motorola Droid 4] leobg:
Which rom is it compatible with? Stock, CM11?
[Motorola Droid 4] lucize:
Should be any compatible with any cm version.
[Motorola Droid 4] rblanca:
Hi lucize! It's possible that this kernel+cm11 bring a working HDMI?. Thanks!
[Motorola Droid 4] lucize:
Didn't had a micro hdmi cable to test, the modem problem seems to be introduced in the 3.0.8 by the latest changes so maybe this would not be a problem after some reverts
[Motorola Droid 4] stargo:
Hi,

thanks for your great work!

If you pulled in my changes, then yes, I'm guilty. I think I've now fixed this problem again, just get my last change to drivers/usb/host/ehci-omap.c and it should work again.

About hdmi: It's not so simple :(

The moto HDMI-stuff needs to be migrated into the OMAP HDMI-driver to get it working without (missing) proprietary userspace parts (parts of the hardware-composer which call libhdmi).

I think I'll take a look at your kernel-changes on the weekend.

Regards,

Michael
[Motorola Droid 4] sm4rty:
in my opinion it would be the best to focus on HDMI.

Im waiting for a custom rom with HDMI. stock rom is slow but HDMI is working and I use it really often for watching TV shows with CineX serien and the lapdock would be usable.

Please focus on HDMI :D
[Motorola Droid 4] lucize:
I got a micro hdmi cable, i'll try to do my best, currently is starting but I don't have video neither on hdmi neither on the phone display and I can't seem to make my adb shell working.

Regards
[Motorola Droid 4] sm4rty:
if you get HDMI working you should setup a donation link :D

it would be so great using kitkat and the webtop. I would be so happy. sadly im no developer and dont have any glue on how to do this :/
[Motorola Droid 4] lucize:
for the moment this is all we got

http://xdaforums.com/showpost.php?p=50109877&postcount=4554

acording to [MENTION=4287139]dtrail1[/MENTION] after some combined work the kernel is good

now that I got the cable of course I will try, at the moment I try to understand what is missing

Regards
[Motorola Droid 4] X_Files:
Battery life on this Kernel is great but 3G internet stopped working every time when I use it for a while. :(
[Motorola Droid 4] lucize:
I'll update it some moments, right now I'm testing a merge of stargo and dtrail1 work, it has multiple options (overclocking and underclocking) and is very stable, but I have a crash in dmesg (not afecting performance or stability, only visual discomfort) that is not happening on razr (spyder).

Regards
[Motorola Droid 4] lucize:
try with the new upload, I'm testing it right now, hopefully usb changes fixes the modem problem

Regards
[Motorola Droid 4] beflythis:
what's the correct way to install these? tried flashing both in SS 3.11 and got black screen; return to menu.

ended up copying the kernel.zip files into the signed CM11 nightly .zip and flashing, which appears to have worked... except I'm not seeing the lower 100mhz clock speed or higher (above 307) GPU setting when I enter trickster mod.

recos?

lastly, what's the difference between kernel.zip and kernel_jbx.zip?

thanks!
[Motorola Droid 4] lucize:
jbx is the over/under clocked kernel, you have to install it in ss, I only tested them on cm11 and I have ss 3.65, maybe I'll try to see why is not flashing correctly under ss 3.11

the kernel.zip is the clean 3.0.31 but is not 100% 3.0.31.

I'll update it with some new changes, hdmi disabled everywhere because I see that I got very good battery without it.

Regards
[Motorola Droid 4] lucize:
I'm happy to say that latest kernel has great standby and so far I had no crash on nothing and also updated the jbx kernel

Regards

Lucian
[Motorola Droid 4] sm4rty:
i would be glad to know if you have made any achievements on hdmi?

or is it impossible to get it working?
[Motorola Droid 4] rblanca:
I believe that with the older version of lucize's kernel (newest dont because it seems to be disabled by default) + this hack http://xdaforums.com/showthread.php?t=2082827 meaby get some buggy thing working...but I don't be sure... stargos tested time ago and work but it had wrong resolution...but , again, it will be a bugged thing...
[Motorola Droid 4] lucize:
first time I what it to be stable and after that we will work on hdmi too, so far so good, I have excellent standby and no crashes

there are hdmi things that can be ported from 3.4, I saw panel init and stuff like that missing from this kernel so I think it should be doable

and a picture with current battery status, I must say that this is the first time I see something like this, and in the middle of the week.

Regards
[Motorola Droid 4] maisdoiscorregos:
Thanks for great work
[Motorola Droid 4] IndiaBhai:
Hey there lucize, thanks so much for this kernel. Loving the standby battery life!

I have some feedback/issue I was wondering if you could address

ROM: CM11 Official 2/21/14 nightly on Verizon Wireless

1) occasionally upon turning on WiFi, the connection will forget the network password and take longer than usual to connect. Sometimes the phone will not scan/pickup on new WiFi signals (including ones it has stored) when I move away from the WiFi it had been on for some time.

2) Bluetooth usage becomes weak and spotty when WiFi is turned on and in use. Ex: with my pebble watch, it will disconnect and reconnect every 10-15 seconds.

3) if I leave the phone on standby for a while and then turn on my WiFi/data, battery drops by 30-50% immediately

Thanks once again, and I'm willing to test any changes!
[Motorola Droid 4] male6363@hotmail.com:
Does Bluetooth Mouse Work?

I did try some ROM but bluetooth mouse did NOT work... Is this Kernel issue? Or ROM issue? I mean if i put your kernel... Does it fix it? Or NOT?

Thanks a LOT!
[Motorola Droid 4] lucize:
didn't test it, but input devices are enabled in kernel, as I recall.
[Motorola Droid 4] lucize:
I have wifi issues too, but with all cmX roms, I think when hostapd or wpa supplicant was the TI version it was working well it shouldn't be a kernel issue. the last nightly has some wifi fixes.

I modified only a very small portion of bluetooth, didn't touch the drivers only the stack, it shouldn't affect the functionality. is that a ble device, are you using the jbx kernel ?

I had battery drops too with my old battery.

Regards
[Motorola Droid 4] IndiaBhai:
Ok I'll definitely have to check out the newest nightly. I was coming from the unofficial Roms without having used your kernel, so maybe my timing was just coincidental with a bad ROM! The device should be BLE enabled and yes I was using the kernel. I'll flash the latest nightly and edit my post to reflect any changes

- Ayush
[Motorola Droid 4] male6363@hotmail.com:
Is there any possibilities to check? I want to try but i dont want to have trouble... I did try many times in the past official CM... Did NOT work ever...
[Motorola Droid 4] 3diord:
How do you get such good standby with this? What am I doing wrong?
[Motorola Droid 4] lucize:
I'm using 2g most of the times as here there is free wifi almost everywhere, I didn't test it with 3g and see if some app is preventing the phone to enter in deep sleep.

for me the 02/24 nightly will keep the device awake because of wifi changes. usually wen you have ~7-8 h of standby the device is not entering in deep sleep, this kernel is good for standby, I'll try to see if lowering the cpu to 100mhz is stable.

regards
[Motorola Droid 4] 3diord:
So maybe it's because I always have LTE enabled? Is it bad that the phone apparently wakes up when the screen isn't on?
[Motorola Droid 4] Khiraji:
I flashed the jbx kernel last night, and this morning it wrecked my battery life - after unplugging my phone around 8am, by noon I was at 60% (whereas normally I'm down to maybe 85% by then). Flashed the non-jbx kernel after lunch, and my battery life seems better but now WiFi doesn't work. Can't see any WiFi networks, can't connect to any. Running the 2/12 nightly of Stargo's CM11. Total borkage. What do?
[Motorola Droid 4] lucize:
try:

wifical.sh

off/on the wifi

clean cache/dalvik

Edit:

Wifi drivers are from external source, they are the same for every kernel

regards
[Motorola Droid 4] Khiraji:
Thanks! Will give this a shot.
[Motorola Droid 4] lucize:
updating from 22 to 25 would keep the device always on, but I installed a clean 26 in a new slot and now everything is working well (as I could test) so maybe something is bad int the adroid part of things.
[Motorola Droid 4] rblanca:
Hi! Any chance to port lastest jbx kernel?
[Motorola Droid 4] rblanca:
Any news?
[Motorola Droid 4] Adamyno:
When I set maximum CPU freq. to 1300MHz, (from 1000) after a short time it will be 1000MHz again.

Anybody can help me?

(CM11)
[Motorola Droid 4] lucize:
now I'm working on something related to video, after a quick look on jbx kernel it seems that I need to make more modifications but now I want to finish with vanilla 3.0.31

Regards
[Motorola Droid 4] rblanca:
Something related to video ?? HDMI? hahahaha just kidding. Thanks dude 4 your work!
[Motorola Droid 4] lucize:
who knows :)

omapdss HDMI: ENTER hdmi_display_enable

omapdss HDMI error: Failed to get hdmi_vref regulator

omapdss error: failed to power on

Regards
[Motorola Droid 4] rblanca:
Awesome!! Thanks dude!!! I hope some day we have HDMI working on non-stock roms!! thanks for everything you do!
[Motorola Droid 4] lucize:
omapdss HDMI: ENTER hdmi_display_enable

omapdss HDMI: Set c-state constraint for HDMI

HDCP: invalid AKSV

omapdss HDMI error: *** INVALID AKSV: 0 Do not perform HDCP AUTHENTICATION

PVR_K:(Error): BridgedDispatchKM: Initialisation failed. Driver unusable. [0, ]

in hpd work 2, state=1

edid[000] = 00 ff ff ff ff ff ff 00 1e 6d ba 56 be d0 07 00

edid[010] = 05 13 01 03 ea 31 20 78 ea ae c5 a2 57 4a 9c 25

edid[020] = 12 50 54 a7 6b 80 95 00 81 80 81 40 71 4f 01 01

edid[030] = 01 01 01 01 01 01 7c 2e 90 a0 60 1a 1e 40 30 20

edid[040] = 36 00 da 28 11 00 00 1a 21 39 90 30 62 1a 27 40

edid[050] = 68 b0 36 00 da 28 11 00 00 1c 00 00 00 fd 00 38

edid[060] = 4b 1c 53 0f 00 0a 20 20 20 20 20 20 00 00 00 fc

edid[070] = 00 57 32 32 37 31 0a 20 20 20 20 20 20 20 00 8f

edid[080] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[090] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[0a0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[0b0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[0c0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[0d0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[0e0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[0f0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[100] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[110] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[120] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[130] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[140] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[150] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[160] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[170] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[180] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[190] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[1a0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[1b0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[1c0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[1d0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[1e0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

edid[1f0] = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

panel size 49 by 32

I think that I'm on the right track, I have white image on the display, but the bad thing is that lcd panel is not working anymore :)
[Motorola Droid 4] rblanca:
Sadly to hear that your lcd get broken :S...but once more time thanks for all your work put into this! Cheers lucize!!
[Motorola Droid 4] lucize:
the panel is fine, but for now I have some problems to make both hdmi and lcd working and for hdmi to work ok I have to make the lcd to start

I wasted too much time to let it go :)

regards
[Motorola Droid 4] lucize:
so I have it working, for now only on hdmi to dvi cable and with the reversed colors

regards
[Motorola Droid 4] X_Files:
I can say only GOOD WORK :good:
[Motorola Droid 4] lucize:
please report if you have image with native HDMI cable, for me only HDMI to DVI is working.

colors are reversed.

Regards
[Motorola Droid 4] sm4rty:
very good.

made a small donation to you. it will not be my last donation :D

I hope you will make a huge step forward in enabling HDMI in custom roms.

Will test it tomorrow with native HDMI cable.
[Motorola Droid 4] kwood129:
I can try it with a lapdock to see if it will display tonight.
[Motorola Droid 4] lucize:
thanks :)

I don't have a tv, only the monitor and a sony receiver, for now the driver can see and read the edid from the monitor (also have one lg, but only with dvi), in dmesg you sould see that it reads the timing correctly from the monitor even with hdmi cable, but right now I don't see where is the problem.

the sony receiver is not detected for now (maybe the cable is not ok)

regards
[Motorola Droid 4] stargo:
Hi,

great work :)

Are you using the mapphone panel together with the omap hdmi driver?

No luck for me. Tested it with a sony tv (hdmi cable) and an eizo TFT (DVI).

It seems the phone doesn't even recognize both displays.

Do I need to do something else to enable it? Write something to sysfs?

Regards,

Michael
[Motorola Droid 4] stargo:
I don't have any lines like this in dmesg. (Attached is my dmesg when booting with the eizo connected)

I'm using this adapter: http://www.amazon.de/DELOCK-Adapterkabel-micro-HDMI-D-HDMI-A/dp/B009CCHXNO/

and hdmi male/male and hdmi male/dvi cables.

No, nothing. The display doesn't even leave power-saving state.

Without seeing it: i would say that the r and b channels are swapped. probably some moto stuff which can be fixed in the kernel.

Regards,

Michael
[Motorola Droid 4] lucize:
this is what it looks like

i'll test more with my receiver hpd (hot plug detection) is not working on it neither
[Motorola Droid 4] stargo:
Ok, no switched channels then...

Hmm, try playing with the deep_color stuff, this might (or might not) have any effect.

It's possible that the panel-mapphone-hdmi.c / panel-mapphone-hdmi_panel.c is doing the initialization slightly different to fix the colors...

Do you have the sources up somewhere? In another branch on github?

Regards,

Michael
[Motorola Droid 4] lucize:
only last night(this morning :laugh: ) I managed to make scaling and edid work cleanly so no upload, and maybe you can tell me how to make another branch :o (PM)
[Motorola Droid 4] lucize:
life is beautiful in colors :)

it was in hdmi_ti_4xxx_ip.c too
[Motorola Droid 4] rblanca:
Thanks dude i'm already order my hdmi cable to test!!
[Motorola Droid 4] lucize:
should be in nightlies asap, stargo fixed the remaining things, as I recall somewhere in time I had it working in 1080p everywhere, now (for me) is working in 720p and only on ful hd movies it switches to 1080p. surround sound should be the next important step

Regards
[Motorola Droid 4] rblanca:
Congratz lucize... Many many thanks!..you bring back a long missed freature in our Droid 4. Both of you (stargos and you) are giving to Droid 4 a new life!!. Thanks!
[Motorola Droid 4] doener:
HDMI, Multichannel Audio, CEC Support! Yay! They just created a really nice replacement for my raspberry pi, I think I need another Droid 4!

Thanks! You both are sooooo awesome!
[Motorola Droid 4] herbmillerjr:
My day has just been made.
[Motorola Droid 4] crzayalex:
Lapdock

Hi all,

Thank you lucize for your work! However, I am having trouble getting the lapdock to work with this. After flashing the kernel, when the lapdock is plugged in, a mouse appears on the droid 4 screen but the screen of the lapdock does not actually turn on. I have not tried using the hdmi to display on my tv since I do not own a connector. Am I doing something wrong?
[Motorola Droid 4] Khiraji:
I check out for a few days, and come back to this! Holy poop on a stick, this is amazing. Will test tomorrow! :good::good::good::good:
[Motorola Droid 4] sm4rty:
is this actually working with KitKat builds?
[Motorola Droid 4] herbmillerjr:
Yeah, I'm running this kernel with the CM-11 nightly as we speak and it's working like a charm.
[Motorola Droid 4] lucize:
should work with all builds, I have to update the hdmi in my kernel, the new version has better compatibility
[Motorola Droid 4] lucize:
try the new version, I forgot to upload it, it has hdmi from 3.4 with better compatibility.
[Motorola Droid 4] lucize:
I think over scan is enabled in your tv, and image is croped

regards
[Motorola Droid 4] IndiaBhai:
Hey lucize congrats on the amazing work with the HDMI work! I was wondering if this might lead to dock support?
[Motorola Droid 4] lucize:
Don't have one, so I can't test..
[Motorola Droid 4] crzayalex:
I tried, unfortunately it doesn't work. I flashed the updated kernel and still the same result. Mouse on the phone screen, the lapdock's screen doesn't display anything
[Motorola Droid 4] Shobai:
A shame! I'm dearly looking forward to this! The touchscreen on my original Droid 4 no longer works, but it's entirely useable with the Lapdock on stock ROM.
[Motorola Droid 4] stargo:
Hi,

can you please install syslog and send me the logs (kernel and main) shortly after plugging in the device to the lapdock when the mouse-pointer appears? I think the hardwarecomposer in userspace is not finding a useable resolution for you but it should at least log the decoded edid information.

Thanks & Regards,

Michael
[Motorola Droid 4] crzayalex:
Of course, I will do that when I have time. I will install the newest cm 11 nightly with the kernel and the PA gapps, unless there's another configuration that you think I should try instead.
[Motorola Droid 4] Shobai:
G'day Michael,

I'd love to, but I can't use SS because there don't seem to be key inputs for navigating =/ Do we have access to a recovery which uses keys as well as or instead of touch?
[Motorola Droid 4] sm4rty:
does the kernel have loop support?

I want to try my laptock with archlinux but I cant get linux to work.

complete linux installer does nothing when clicking on "Start".
[Motorola Droid 4] lucize:
cat mapphone_mmi_defconfig | grep LOOP

CONFIG_BLK_DEV_LOOP=y
[Motorola Droid 4] herbmillerjr:
Are you still working on this separate from the nightly? Does the 3.0.8 kernel in the nightly have more recent changes than your 3.0.31? I still have your manifest in my checkout, but if that's not up-to-date, I should probably just do the nightlies.
[Motorola Droid 4] lucize:
for the moment I'm working to see if I can make multichannel output for movies on HDMI, bitstream or decoded lpcm (lpcm is working with decoded tracks in tinyplay upto 192khz/16bit, 24bit has static noise) and I'm a bit busy with life but as it looks kernel 3.4 has way more fixes and I don't know which way to go, keep merging to 3.0.31 or updating stuff from 3.4

anyway I'm still working on it, much of it is local because depending on my mood I do random stuff and I push only the finished/working changes. and quite a lot is waste of time with testing/building/etc.

Regards
[Motorola Droid 4] sharptv:
Definitely go for the 3.4 if you can. Looking forward to your next release and thanks for all the efforts.
[Motorola Droid 4] Semseddin:
You're a long waited miracle for moto Omap4 kernel development, just wanted to tell you.

XT1033 cihazımdan Tapatalk kullanılarak gönderildi
[Motorola Droid 4] lucize:
ha ha, please address this to the TI engineers

Regards
[Motorola Droid 4] herbmillerjr:
Whichever you'll stay passionate about the longest. I love keeping this phone relevant, and I appreciate the work you do.
[Motorola Droid 4] lucize:
I'll work on until I'll get a droid 5 :))

I was in vacation abroad so couldn't work anything and for now I should make pause on this because I have some important things to finish until June/July but it keeps calling me back :))

Regards
[Motorola Droid 4] sharptv:
I just ordered myself two droid 4s just in case, it seems that droid 5 isn't appearing anytime soon. Personally I would love to see a 3.4 kernel for the droid 4.
[Motorola Droid 4] lucize:
multichannel on DTS for now, a hack with some hardcoded values. ac3 crashes, but on the right track

https://plus.google.com/+LucianCristian/posts/iwkPxZagifV

Regards
[Motorola Droid 4] sharptv:
So pleased to hear an update from you!

p.s thanks for suggesting the jbx kernel, I am looking forward to your next release.
[Motorola Droid 4] rblanca:
Awesome!!!!!!! Thanks Lucize!!!
[Motorola Droid 4] fgfgfg0923:
I have strange freezes+reboots(few times without boot indeed) when im trying to set up freq to stock 1.2ghz from "stock 1ghz", or changing gorvenor or smth like this *using Trickster mod
[Motorola Droid 4] lucize:
you can use an updated version from dtrail, I din't work on kernel from some time.
[Motorola Droid 4] fgfgfg0923:
for droid razr 910? without any compatibility problems?
[Motorola Droid 4] lucize:
bump
[Motorola Droid 4] Shobai:
G'day Lucize,

could you please confirm fgfgfg0923's question? Is dtrail's RAZR 910 JBX kernel the one to use? Does it include the HDMI work that you've done?

As for this, I haven't made any progress yet, I ended up buying a NIB D4 to replace my dodgy one. I've just installed SS 3.73 to the dodgy one, since it has USB-OTG mouse support in recovery, which works! I've flashed SlimKat Build 6 to it, and when I drop it into the Atrix Lapdock the display doesn't light up. The Lapdock's resolution is 1366 x 768, but i'll try and install SysLog over the weekend and get those logs.
[Motorola Droid 4] lucize:
the hdmi base code is from me and stargo, his hardware is a bit diffrent but the kernel should work.

this is the source code

https://github.com/RAZR-K-Devs/android_kernel_motorola_omap4-common you can see hdmi related stuff there.

Regards
[Motorola Droid 4] rblanca:
Hi lucize can I ask whats is the difference with those 2 kernel from your post and wich one you recomended?. Thanks!
[Motorola Droid 4] lucize:
please read more carefully the OP is stated right there,I recommend the simple one.

Regards
[Motorola Droid 4] rblanca:
Hi lucize... do you have plans to release a newer version of your kernel? Last commits seems awesome :)
[Motorola Droid 4] lucize:
I for the moment write back is not of help, I can't compile the Miraclecast http://www.freedesktop.org/wiki/Software/miracle/ to start testing with mirroring, but I want to update as much as possible on video driver, You can build yourself the kernel :P

Regards