yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy Note II] MonsterBandit:
Clean rom 2.0 with stock kernel gcc version is 4.4.3
[AT&T Samsung Galaxy Note II] mjwhirly:
4.4.3 on stock lj2 kernel, just flashed to double check
[AT&T Samsung Galaxy Note II] madmack:
I believe I found the problem:

<4>[10869.503966] c0 usb usb1: root hub lost power or was reset
<4>[10869.672035] c0 usb usb2: root hub lost power or was reset

Whenever you see this in your kernel log while in deep sleep, radio crashes because sammy uses a usb hub to communicate with the modem and when this goes down, so does the modem/ril.

That also explains why when I have the phone connected to my usb port, ril never crashes. The USB hub has to stay on, so the modem survives.
[AT&T Samsung Galaxy Note II] Smittyzz:
Great! So what's left to be done so this is fixed?
[AT&T Samsung Galaxy Note II] madmack:
race conditions are super tricky to fix unfortunately. it might be a while. I just wanted to share the culprit so anyone who has the sources don't have to go through the same to find the problem.
[AT&T Samsung Galaxy Note II] Smittyzz:
I I had a screen in my aspire one I'd set that thing up for developing and help, I'm farmiliar with coding and all that crap, but I havent jumped into the android dev yet, when I get my laptop together is be glad to help!:)
[AT&T Samsung Galaxy Note II] madmack:
more updates:

compile with 4.4.3 and pretend to be samsung.. reboots.

compile with 4.6 and pretend to be CM10.. ril crashes.

not cool
[AT&T Samsung Galaxy Note II] mjwhirly:
Have you tried building with linaro 4.7 gcc and seeing what that brings along, I doubt it will do anything but it's worth a try I figure
[AT&T Samsung Galaxy Note II] madmack:
I tried that but got some more build errors so I stopped.
[AT&T Samsung Galaxy Note II] ShotSkydiver:
Hey, thanks for the feedback. I started out porting PA for my own personal use, as CM10 in its current state is good enough for me to be a daily driver. I posted the build I made here to share it with others who might want it, and to get feedback on the issues I was having that weren't occurring in your ROM.
[AT&T Samsung Galaxy Note II] Entropy512:
This is weird... why the **** doesn't HSIC instability affect the I9300?

It's been plaguing 4210 devices ever since I9100 Update7.

Edit: Bet you if you remove some profiling/debugging stuff and switch to GCC 4.4.3 for kernel builds, you'll see it get a lot better. And YES it's some annoying timing thing in the kernel.
[AT&T Samsung Galaxy Note II] ASimmons:
So was they delay a lazy way to fix the race conditions? Is the race condition a bug in the kernel or just specific to this build?
[AT&T Samsung Galaxy Note II] madmack:
1. managed to fix compilation errors so running a kernel compiled with linaro 4.7

2. moved the entire stock kernel except bits that correspond to video drivers. even changed some compilation flags to match stock values (remove mtune=cortex-a9)

3. ...

4. RIL STILL CRASHES.

:mad:
[AT&T Samsung Galaxy Note II] Entropy512:
Same **** we're dealing with on 4210 devices. BTW, I'm 90% certain the modem is on a different USB interface than the USB port. The CPU is a USB device as far as that USB port is concerned, the modem is hung off of an internal HSIC interface separate from the rest of the USB stuff.

However plugging in the device eliminates suspend/resume and also often changes other things like blocking some cpuidle states. Just having USB plugged in changes all sorts of timing.

Yeah. As in we've been messing with this on 4210 devices for months, and made progress but didn't completely fix it.

That's what we got until we cleaned up our defconfigs to remove a bunch of crap. Then 4.4.3 had reduced RIL crashes and no reboots. Look through 4210 kernel history.
[AT&T Samsung Galaxy Note II] madmack:
Ladies and gentlemen. I present to you the kitchen sink kernel. Please try it and let me know if the RIL crashes are

completely

GONE. :cool:
[AT&T Samsung Galaxy Note II] jug6ernaut:
Tentatively radio seems to be stable!

BUT, wifi is dead :P
[AT&T Samsung Galaxy Note II] cashyftw:
Jezz you move quick, will try out when I get home!

Sent from my JellyBean Galaxys3
[AT&T Samsung Galaxy Note II] madmack:
fret not my friend. redownload the file and you can kiss your wifi worries goodbye.

NEXT !
[AT&T Samsung Galaxy Note II] ManelScout4Life:
you are a beast!

downloading everything now!
[AT&T Samsung Galaxy Note II] ASimmons:
Please tell me that will be the official name!
[AT&T Samsung Galaxy Note II] jetrii:
Amazing work, madmack. This is really coming along!
[AT&T Samsung Galaxy Note II] otisman:
This is sick very stable radio boooyaaahh much alohas bradah

Sent from my SGH-I317 using Xparent Red Tapatalk 2
[AT&T Samsung Galaxy Note II] jug6ernaut:
Very stable, just did a 23m10s call with no issues at all, off charger.
[AT&T Samsung Galaxy Note II] otisman:
Rajadat my bradah can't stand TW asop is where its at :thumbup:

Sent from my SGH-I317 using Xparent Red Tapatalk 2
[AT&T Samsung Galaxy Note II] Mr. Droid:
Can we get a new update with the new fixes please :)
[AT&T Samsung Galaxy Note II] jug6ernaut:
No need, just flash in order, rom + ril fix + kernel.
[AT&T Samsung Galaxy Note II] Moose0704:
Which one is the rilfix?

Sent from my Samsung Galaxy Note II

---------- Post added at 10:05 PM ---------- Previous post was at 10:04 PM ----------

This one?

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] jug6ernaut:
Rom: http://xdaforums.com/showpost.php?p=34897588&postcount=1

RIL: http://xdaforums.com/showpost.php?p=35229078&postcount=176

Kernel: http://xdaforums.com/showpost.php?p=35287383&postcount=222
[AT&T Samsung Galaxy Note II] jug6ernaut:
Just heads up there are no settings to enable/disable NFC.
[AT&T Samsung Galaxy Note II] otisman:
I never had to flash rilfix don't have any red in graph so I'm super happy

Sent from my SGH-I317 using Xparent Red Tapatalk 2
[AT&T Samsung Galaxy Note II] dw9906:
Fyi, my spen is now working on T889.

See cursor in the screenshot.
[AT&T Samsung Galaxy Note II] madmack:
true. But the rilj fix gives more stability to the java implementation in ril. It reports and acts with rilc without errors so I'd recommend it.

I'm wondering whether I should fix the build to include the HAL audio + kitchen sink kernel files. It's not exactly clean. What I need to do is figure out what exactly fixed the ril crash and submit that as a patch to Gerrit.

Enjoy cm10 everybody. I can safely say that this can be called a daily driver now.

And a big thank you to all the guinea pigs :)
[AT&T Samsung Galaxy Note II] dw9906:
Anyone else have screen flickers on statusbar pulldown?
[AT&T Samsung Galaxy Note II] jetrii:
What's next to address with this ROM after reception/call problems are fixed? Performance? I realize that things like quadrant don't mean much, but I am getting 4.8k with this rom compared to 6.7+ with others.

Yeap, I am experiencing that.
[AT&T Samsung Galaxy Note II] madmack:
I'd put the priority on getting audio to work without the two call after a reboot dance.

Then abandoning HAL and going back to open source audio.

I'll start by disecting the kitchen sink first though to figure out what exactly did what. I mean I just literally through everything out there and it worked. Stock defconfig, stock mach-exynos and most of the kernel bits. Once I pin it, it'll probably help folks with the s2 who are suffering with these ril crashes as well.

At least I can now keep cm without flashing back and more importantly, not worry about leaving a broken ril modem reset itself multiple times over night next to my head :eek:
[AT&T Samsung Galaxy Note II] Moose0704:
WiFi is still not working for me. It will see the router but will not connect

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] Smittyzz:
So much for it being a while! Congrats and great job:)
[AT&T Samsung Galaxy Note II] Moose0704:
Just says saved...

View attachment 1553802

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] dw9906:
Wi-Fi working fine here.
[AT&T Samsung Galaxy Note II] madmack:
Wacom stylus is pressure sensitive and works fine. :D
[AT&T Samsung Galaxy Note II] madmack:
try wiping dalvik cache and reboot. Wifi wasn't working initially because the right module wasn't there. so you wouldn't even actually see your wifi AP. Given that your AP is visible, the wifi module is functioning just fine. Something else is the culprit and is most likely local if it used to work previously.
[AT&T Samsung Galaxy Note II] Moose0704:
Will try that now. But other than that this is running quite well so far! Great job!! Much appreciated! :D

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] Moose0704:
View attachment 1553813

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] mjwhirly:
What gapps package are you guys using to get working play store? With gapps 11/30 I get server error when trying to open play store or syncing
[AT&T Samsung Galaxy Note II] Moose0704:
I'm using 20121011

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] otisman:
I can't even get WiFi to turn on oh well unlimited data

Sent from my SGH-I317 using Xparent Red Tapatalk 2
[AT&T Samsung Galaxy Note II] Smittyzz:
Link please

Nvm google is my friend :)
[AT&T Samsung Galaxy Note II] mjwhirly:
Also played around with the rom a little, seems like the ril was pretty stable the whole time and calls worked after 3 call method yet the quality isn't the best. AOSP keyboard kept force closing so i diabled it, also seemed like there was some graphical glitches once in while. Also you can see the phone never went really went into deep sleep as it stayed awake the whole time, would have checked more but I need phone at 100% for tomorrow
[AT&T Samsung Galaxy Note II] Moose0704:
OK wiped and re-flashed ril and kernel and wiped again still won't connect to WiFi :(

Sent from my Samsung Galaxy Note II

---------- Post added at 11:34 PM ---------- Previous post was at 11:31 PM ----------

Bluetooth streaming doesn't work. Will connect to Bluetooth but won't play music

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] Smittyzz:
Well I absolutely love the Rom but a few issues, the camera is a bit iffy, and so isn't galery, no night tho, also, I'm pretty sure autobrightness isn't working other, other then that, everything's working smooth. Goes to sleep wifi connects, bbbuuuttttt my biggest issue is the cpu prettymuch locked on 1500 and sometimes cpu 1-2 don't wake up. And scaling governors have no effect at all.

Once the cpu is fixed this will be my daily driver!
[AT&T Samsung Galaxy Note II] ASimmons:
Last kernel fixed a few issues. GPS locks instantly now, ril crashes almost never, and stylus is working. Camera video isn't work and as stated previously cpu is still 1500 mhz and switching govs doesn't have any affect.

Big thanks to madmack great work! Seems its open season now for att and tmobile cm rooms now!
[AT&T Samsung Galaxy Note II] chrisaw:
It's good for you AT&T and T-Mobile folks, it's absolutely ASTOUNDING for us N7105 folks though! Absolutely *NO* reboots on this kernel, running for 4hrs, came in to work which is a 40min drive so switched between a lot of telephone masts, signal went up and down like it always does on my journey. Had uptime on this now for around 5hrs and it's still going strong.

Hate to clutter up your thread with my N7105 nonsense but really, I greatly appreciate all you have done on this madmack! You, sir, are a legend! :)

Will drop you a few $ shortly. :)
[AT&T Samsung Galaxy Note II] jug6ernaut:
Really? Like really? Out of the legitimate issues that plague this rom like cpu stepping, 3 call for audio or graphical issues your going to drop a quadrant score?

Mind = blown, forgive me everyone as I face palm into oblivion...
[AT&T Samsung Galaxy Note II] madmack:
anyone knows if stock TW I317 kernel scales appropriately with the pegasusq governor ?
[AT&T Samsung Galaxy Note II] BoOsT:
I believe it does. Not positive tho. I always use ondemand. Seems Perseus uses it as stock gov tho.
[AT&T Samsung Galaxy Note II] madmack:
stock gov in both TW and Perseus is pegasusq from the look of things in code. I'm looking into why scaling isn't working in the kitchen sink kernel. If I set it to userspace and set a max freq, it will lock to it. Any other gov and it'll hit max at all times. So basically the frequency table is functional, it's the scaling driver that is broken somehow.
[AT&T Samsung Galaxy Note II] BoOsT:
Sorry, I'm going to be no help with kernels lol not my thing.
[AT&T Samsung Galaxy Note II] madmack:
Scaling fixed

attached is for your flashing pleasures.
[AT&T Samsung Galaxy Note II] jug6ernaut:
literally minutes after i restored tw bc of no deep sleep!

Flashing asap :P
[AT&T Samsung Galaxy Note II] BoOsT:
HAHAHA touche ;) I am really enjoying this thread! Thank you!
[AT&T Samsung Galaxy Note II] madmack:
I'm trying to be as verbose as possible. lol. I certainly did wish for that when I was following some other porting threads. Most devs seem to like to keep their findings in confinement and only surprise us with the final working product. I think of this as a mini blog so it can help get more devs aboard and serves as an awesome show to the rest. :good:
[AT&T Samsung Galaxy Note II] BoOsT:
Well, your doing an amazing job:good: When i bought the note 2 this was actually my intention, to be the first to get cm10 up and running. HAHAHA That worked well for about the first day i worked on it. I just dont have the time. Wish i did.
[AT&T Samsung Galaxy Note II] jug6ernaut:
I think we can speak for all of us when i say Thank You very much for that!
[AT&T Samsung Galaxy Note II] MonsterBandit:
It truly is an amazing show...and a good learning experience for me...thanx...i think the next packaged update you publish it'll be my daily

---------- Post added at 09:58 AM ---------- Previous post was at 09:57 AM ----------

x eleventybillion
[AT&T Samsung Galaxy Note II] static416:
Been running this since last night. No major issues to mention, and I'm loving getting rid of TouchWiz.

I have a stupid question. Should I be able to get LTE on this ROM at this point? Doesn't really matter to me either way, just curious.
[AT&T Samsung Galaxy Note II] jug6ernaut:
If you go into settings/status you will see you are getting lte, i believe it shows as "4g" in the status bar.
[AT&T Samsung Galaxy Note II] jug6ernaut:
Stepping is fixed, and this may be an issue with me specifically bc i was able to go into deep sleep b4 but currently it steps down to 200mhz but does not go into Deep Sleep. BetteryBatteryStats is throwing out giberish but does show a 100% kernel and partial wakelock.
[AT&T Samsung Galaxy Note II] static416:
Ah ok. Yeah at some point I lost LTE in switching between ROMs. I'm only ever seeing 3G and H+ now. I'll have to flash back to Rogers stock and see if that fixes it.
[AT&T Samsung Galaxy Note II] :
Another thank you. I acknowledge my shortcomings in development so everything you've done is a post by post record I can go back and look at. I only have a couple wishes at this point:

One: I wish I could have helped more beyond the donation. I feel bad that this feels like this is the Madmack show, up to this point.

Two: If you could talk about what you use hardware and software? How much time have you put into this? Are you limited by the hardware? More behind the scenes would be interesting. How do you attack a problems? What's the best way you're found to test solutions.

Three: How much of your work can be transferred to the other Note versions? How much of what you have done can be applied to 10.1?

Again, I truly want to say thanks to everyone in this thread. It's not my intention to thread clutter, I generally am interested in learning.
[AT&T Samsung Galaxy Note II] BoOsT:
Mine is rocking deep sleep right now....:confused:
[AT&T Samsung Galaxy Note II] jug6ernaut:
Right on...i probably screwed something up somewhere, bc i was getting deep sleep b4 the stepping fix and lost it b4 stepping fix. So i got messed up somewhere it seems. Been flashing/restoring/etc havent doent a clean flash for like a week who knows lol.

Edit: i cleaned cache/vm cache and it now i have gone into deep sleep...for like 8 seconds! will investigate more lol.
[AT&T Samsung Galaxy Note II] BoOsT:
Might try a cache, dalvik cache wipe. Then fix permissions. See if it helps before you go through the trouble of a clean install.
[AT&T Samsung Galaxy Note II] jetrii:
Actually, my post was about performance, not simply quadrant for the sake of quadrant, but I suppose I could have been clearer. There's obviously a lot more than needs to be done, and fixing the iffy smoothness and poor performance is one of them. I know that there are a few things that come first, I guess I'm just eager to be able to use this as my daily rom:laugh:
[AT&T Samsung Galaxy Note II] Smittyzz:
Seems to me like it doesn't want to activate the fourth CPU after wake. Just my two cents. Now let's work on this damn camera!:)
[AT&T Samsung Galaxy Note II] Moose0704:
Keep it up we love it!! Its like Christmas every time you post lol :D

Sent from my Samsung Galaxy Note II
[AT&T Samsung Galaxy Note II] MonsterBandit:
Well it is Hanukkah...eight days of gifts lol

just saw this idk if it might help in the long run or not

http://www.androidpolice.com/2012/1...ii-lte-gt-7105-brings-a-slew-of-new-features/

seems to be more TW stuff, no hardware stuff...never mind
[AT&T Samsung Galaxy Note II] jug6ernaut:
I wiped System/Cache/Dalvik Cache and reflashed rom/ril fix/kernel and deep sleep is now working great!
[AT&T Samsung Galaxy Note II] mjwhirly:
yeah i've been keeping track of the cpu states with cpu spy and out of 40 mins running 25 mins have been in deep sleep, so I'd say it's working just fine for me as well

Definitely at daily driver status for me, everything works just fine except for having to do the three call for audio, which is a pain in the butt at first.

Besides that everything is moving pretty smooth that i've tested so far, running it at 240 dpi at the moment.

Madmack-if you want any logcats or /proc/last_kmsg with my current setup to see how everything is running let me know and i will extract them and upload for you. Great job so far man, still amazes me how fast everything is coming along, let's hope it stays this way.
[AT&T Samsung Galaxy Note II] madmack:
2.

My desktop sports an Intel I7 860. RAM is 8GB (nothing too fancy) and I got a whole tera for development.

OS of choice: Arch Linux. I customize this babe to my liking.

I'm quite familiar with linux given that it's actually my day to day OS. This helps tremendously when debugging and compiling for Android. Tools like grep and find are your best friends for this kind of environment.

To attack problems, I usually start looking for errors in the logs. No clear error? at least diff the changes with stock TW and see if the libs in question are doing something unusual for any reason. I use grep, strings and objdump to find out what lib is dumping what text and to find out all the dependencies.

3.

How much of my work can be transferred.. I think ALL of it. the LTE variants only vary by modem as far as I can tell. RIL binaries are so close that they can literally just take the cm10 files here and flash them on their device and things will work fine. I haven't looked into their specific defconfig changes but from what I can tell, they're so minor (if any) that they don't really matter. As to 10.1. Well, I currently have a system that is based on the N7100 source tree. That means as soon as N7100 hits 4.2, we'll get it too.

About the stutter in UI. Folks, if you've never had any samsung device before, then welcome to the closed source nature of hw composer. This is a known issue and won't get fixed overnight. There is an ongoing discussion and a lot of recent open source development so I'd wait until the dust settles to see if we'll eventually get buttery smooth UIs on an open source HW Composer. For now, we'll have to make do with these half broken closed source binaries.

In other news, the camera is pissing me off. Did you guys try to open the camera app, close it, then reopen it again? it just won't open the next time until you reboot. :eek:

For the devs out there. I forgo to mention what actually fixed the scaling issue. A stupid one liner in the ramfs that set the min_scale attribute to -1 after booting. yup. I'll obviously put all of this on my github once I clean that kitchen sink up.
[AT&T Samsung Galaxy Note II] the2rrell:
Downloading and trying it out now.....hopes to have the same luck as the rest of you ALMOST daily drivers...lol.
[AT&T Samsung Galaxy Note II] mjwhirly:
Yeah i just ran into the same problem when I saw your post, it's weird because I haven't restarted my phone and had previously opened camera, so in other words on the third time trying to open it I can get it to connect either
[AT&T Samsung Galaxy Note II] jug6ernaut:
I noticed i hadnt restored gapps, did so and now im unable to get wakelock again, i first did a 4.2 version then 4.1 still nothing, what version is everyone flashing?
[AT&T Samsung Galaxy Note II] mjwhirly:
went back to the 10/11 gapps version, everything seems to work fine with that
[AT&T Samsung Galaxy Note II] madmack:
Fixed the camera by downloading pudding camera from the play store. reopening the app doesn't crash the camera anymore.
[AT&T Samsung Galaxy Note II] mjwhirly:
I always found the app to be amazing fix to all camera issues, back when CM was first being complied for the skyrocket there was no camera support, but when I downloaded pudding camera all would work fine.....don't know what the guy adds to the code but it works magically:p
[AT&T Samsung Galaxy Note II] ASimmons:
My issue with the camera is only when switching to video. Once I switch the camera doesn't respond... Pudding didn't seem to reset it only a reboot lets me back in to take pictures so video is borked. Cpu 1 and 2 also don't come offline when coming out of deep sleep.
[AT&T Samsung Galaxy Note II] ManelScout4Life:
Spen works fine. Of course the spen touch wiz apps don't work but it works perfectly with papyrus.
[AT&T Samsung Galaxy Note II] mjwhirly:
That's weird because all my cores become responsive after coming out of deep sleep, and all scale to the same frequency. Maybe it's because i did a clean install of the rom, new rilj and new kernel this morning
[AT&T Samsung Galaxy Note II] ASimmons:
Hmmm only flashed the kernel... Last kernel want doing it. Let new try that and see. Thanks
[AT&T Samsung Galaxy Note II] madmack:
just avoid the stock camera like it's the plague. use camera mx for videos. works like a charm here.
[AT&T Samsung Galaxy Note II] ASimmons:
Right you are. Probably why I hit thanks before i even confirmed the fix...
[AT&T Samsung Galaxy Note II] MonsterBandit:
maybe thats the secret...if we can convince him to tell CM what he adds then the camera problems would be a thing of the past...just a thought lol
[AT&T Samsung Galaxy Note II] Entropy512:
Why not gerrit? It's perfect for something like this...

The key thing that's good about gerrit is - If you push to github, it's mortal sin to rebase/amend a commit you've pushed.

On gerrit, it's OK to do so - you can amend/rebase all you want until patches get merged.

Plus the other maintainers might be able to comment on the changes in the event that we recognize some of it, or some things might need rework before merging, and it handles the usual issue some developers have with test kernels. (I REALLY dislike when people put up kernels without source to review - in my case, I always either put out a kernel/build for which all related patches are on gerrit, OR I use git format-patch to generate properly formatted patch files for all of my changes. Either of these allow for test kernel GPL compliance without cluttering up a git history somewhere.)
[AT&T Samsung Galaxy Note II] drakeymcmb:
Great work madmack :D
[AT&T Samsung Galaxy Note II] Smittyzz:
Well, I found a few more bugs. Proximity sensor isn't working alot with autobrightness, and my download speeds are literally slower then dialup:(