yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] polobunny:
Instructions for Windows

In a terminal (terminal emulator on play store) or via adb shell

cat /proc/last_kmsg > /sdcard/last_kmsg.txt

This will create a last_kmsg text file you can upload here or paste the contents to pastebin.com and give the link to bedalus. Do not post the contents of this file here, this file has chances to be pretty long and it's going to clutter.

If you want to transfer the file from your phone to your PC via adb, make sure to exit adb shell

adb pull /sdcard/last_kmsg.txt C:\last_kmsg.txt

This will create a file named last_kmsg.txt at the root of your C: drive. :)

Talking about last_kmsg, got something very weird happening that made me think of the UI quitting we had earlier with marmite, while browsing 9gag using an app. Screen became black except for the status bar, home key was unresponsive (didn't bring me to launcher). Couldn't press the power button to turn screen off.

I could pull the status bar down and I pressed my screen off shortcut, that worked. I woke my phone up using the volume keys and I saw my wallpaper this time instead of black but no icons and softkeys still weren't responsive. I held the power key to bring the power menu and rebooted.

This is the last_kmsg I pulled after:

https://docs.google.com/open?id=0B3qECctHgezNMkhxdmNHakZyYlU

Rom bug? I hope. :<

---------- Post added at 06:16 PM ---------- Previous post was at 06:13 PM ----------

That seems more like it. :)
[Nexus S Android Development] dimiar:
Running cm7.1 on cm10 stable ,all run good smooth and flawless . Gr8 job
[Nexus S Android Development] rockerblood:
after playing online games, multi tasking fb, tapatalk, messaging no more soft or hard reboot until this time :) test is ongoing this day again...

Sent from my Nexus S™ i9020A
[Nexus S Android Development] :
If you haven't already done so, can you manually reboot, and send me your last_kmsg please? Thanks!

edit: oh i can see you did that already. Cool. Thanks! I'm looking at it now.
[Nexus S Android Development] :
Cheers polobunny for fielding so many questions today. I'm taking a look at your last_kmsg too. Thanks for that. I may end up reverting the .35 mainline patch again. That particular bug is proving difficult to pin down.
[Nexus S Android Development] CrackerTeg:
Seems to be working just fine for me. I almost hate to move on though after what this little phone has been through. I know that's off topic and I apologize.
[Nexus S Android Development] polobunny:
I might try to run the default cm kernel for a while and see how that goes, although I don't really want to.

The problem is that I had issues back in cm7.2 (caused by the rom), Nexus S stable cm7.2 wasn't even actually really stable so it's not because it's cm approved that it's necessarily good. If it crashes even with the default cm kernel it might still mean it's a kernel issue though, by logic that both kernels could be problematic. If it doesn't crash however, then I guess it points to only marmite being trouble.

I still had a blast with that first test version you whipped up for me, that went on forever without crashing or behaving strangely. That was pretty sweet. :p
[Nexus S Android Development] :
Are you getting a new device?
[Nexus S Android Development] polobunny:
From using my mind power, I'd say a Galaxy S3.

What do I win? :silly:
[Nexus S Android Development] :
That's a good test. Thanks for being so generous with your time testing things. :)
[Nexus S Android Development] stojshic:
I was browsing xda trough stock browser, and then my screen just started getting dimmer, and after a few seconds it rebooted. i9023, latest rasbean + marmite v7. BTW, this is clean instalation (did full wipe + sd-card wipe just about 3 days ago) , with only 10-15 apps installed from market (cause I really want to investigate my soft reboots)

Here's last-kmsg http://db.tt/yamSuJm3
[Nexus S Android Development] :
Are you using any memory management apps or scripts?
[Nexus S Android Development] polobunny:
Still with the PVR error. You've been dragging this one for a while. :S
[Nexus S Android Development] alen1901:
No problems with 7.0.3. Guys consider upgrading to that version or 7.1 and see if it gets any better. I would recommend 7.0.3 because its damn stable on me, and super fast but it has 411/412mb of RAM which might cause problems to some roms.

Sent from SpeedMachine i9023
[Nexus S Android Development] stojshic:
PVR? Can I do anything about it?
[Nexus S Android Development] polobunny:
Not likely. It's a driver crash.
[Nexus S Android Development] CrackerTeg:
I am. Couldn't pass up the deal I got for it either.

That's some serious mind power. You win the satisfaction of knowing what I picked up. If that even counts as a prize. :silly:
[Nexus S Android Development] N@th_OC:
No, it's not working, still bootlooping. Something else is messing up the JB rom.

Do you have other tweaks or patches who have something to do with GPU rendering?
[Nexus S Android Development] original21:
I will try to flash it on this rom http://xdaforums.com/showthread.php?t=1781327 in a few mins

EDIT......

It didn't work with this rom either.
[Nexus S Android Development] :
I'm replacing the link to the old v1.4 stable with v1.4b: http://d-h.st/l7X

It's code is now reorganised as thalamus suggested. If anyone has had an issue with DI fixed at 800, try downloading this new one.

As usual, any problems, please try to collect a last_kmsg.
[Nexus S Android Development] Blackcrx:
Bedalus: the crash I had earlier was from the "stable 1.4" in the main page. If I recall it was the 800mhz DI build. Regardless I will test your new kernel once it is ready.

To confirm, for me to pull a proper last_kmsg I would have to wait for a crash, battery pull and boot normally, using root explorer (or whatever you choose), go to proc/last_kmsg. is that correct or should it be proc/kmsg?
[Nexus S Android Development] N@th_OC:
It's better to use terminal emulator.

type:

su

cat /proc/last_kmsg > /sdcard/last_kmsg.txt
[Nexus S Android Development] xjerlzx:
thanks! and i just dlded 1.4b

oh and it doesn't go to 100mhz in romsettings of rremix as well as in Nstools =[
[Nexus S Android Development] Blackcrx:
This kernel just crashed on me. A little over an hour in to my work out. Only music player app running, rebooted and stuck on boot logo for 2mins. Had to do a battery pull. No last_kmsg available, is that odd?
[Nexus S Android Development] Blackcrx:
Just rebooted on me again mid text message. This time no music app running.

Rebooted normally this time, no battery pull needed. Here is the last_kmsg
[Nexus S Android Development] :
Battery pull, reboot, use root explorer to open last_kmsg. If the third line has "kalimochoaz" in it, then unfortunately the system wasn't able to copy the current kmsg log when the crash happened. If the third line has "bedalus" in it, please upload! Thanks again for your help!
[Nexus S Android Development] :
Ohhh dear.... That's definitely my code that's caused that. Sorry! I will try to figure out why. But having the message is very handy! Thanks!
[Nexus S Android Development] xjerlzx:
been 15hrs charge till100%, 2hrs screen on. 5hrs phone wake. no crashes nothing v1.4b..

played tap tap revenge for abt an hr also
[Nexus S Android Development] sdhanjal15:
I really want this on my jelly bean rom
[Nexus S Android Development] :
I think when the proprietary drivers are released, I'll start from scratch with a stock base.
[Nexus S Android Development] sdhanjal15:
Take your time!
[Nexus S Android Development] :
v1.4b has a bug in it, so link pulled. I wasn't careful enough when i split the new code into a function.
[Nexus S Android Development] xjerlzx:
alright I shall revert to v1.4 =[
[Nexus S Android Development] KrisMurdrum:
Now you tell us! ;-þ

flashed that one about two hours prior to you pulling the link. Oh well, I think I'll keep it until my phone goes nuclear on me or Peter Alfonso publishes JB Bugless Beast for the NS, and whichever happens first.
[Nexus S Android Development] :
Well, it's not crashed on me so far... but I think there must be a mistake in my code, I'm just looking for it.
[Nexus S Android Development] xjerlzx:
no problem! but I'm going back to matrix till the next version is released. take ur time, I will support u =] after all ur researches has helped me a lot for saving battery life while getting desirable performance
[Nexus S Android Development] Blackcrx:
Just crashed on me again. No last_kmsg again too.

Was using instagram with wifi on. No connection with the other 2 reboots that I can think of. This time the phone shut off, all buttons locked, had to do a battery pull again.

Going back to matrix for now since I need this phone as my wake up alarm for work.

Am I the only one with problems? 3 crashes since install in about 12hrs. Starting to think it's user error. Haha

That or I'm the only one that really uses their phone. Haha
[Nexus S Android Development] :
http://www.google.co.uk/url?sa=t&so...r4GgBg&usg=AFQjCNGBrauqV-ZiGAapyyV-uKWDHIQt1A

This is the sort of thing we're likely dealing with here with the soft reboots.
[Nexus S Android Development] ScOULaris:
Can a kernel cause wake locks, or is that pretty much always a ROM issue?

I ask because I have noticed much worse battery life since switching to 7.1 from 6.10. When I look at my battery stats, it shows a lot of awake time when my screen is off.
[Nexus S Android Development] polobunny:
Not sure what you're trying to say there, other than the issue being difficult to crash. If you're pointing at the ROM (which could be possible) it's good to know my latest very clean install wasn't long ago, right before the CM10 stable release.

Next time I update my rom, I won't flash marmite (WHAT??) and we'll see where that brings me. It's at least a step towards something.
[Nexus S Android Development] xxxMADxxx:
Hi all..ive some problem here..when i idle my phone more than 10 minute and unlock my phone i got delay to wake up..using smartassv2 200mhz min on miuiv4 with marmite v7.1..in default kernel i never got it..
[Nexus S Android Development] granets:
just got a reboot. it was rather strange, my phone just rebooted as I was listening to music. I am OCing but just a little bit. I am down to 1096/200 smartassV2 and i think it wasn't an OC reboot, because it usually freezes the phone for 30 secs and then reboots, but this was a straight up reboot with no freezing or anything. I'll try and pull a last_kmsg

https://docs.google.com/open?id=0B163fQ5qe1q9aHR6QkFtdnJVWk0
[Nexus S Android Development] caliban2:
Following this thread one could get the impression marmite is FUBAR. :sly:

I'm at 40:30h uptime with cm10-nightly 1119 & marmite 7.0.6 (411mb) and counting. Just to show what's possible as well...
[Nexus S Android Development] granets:
kernel is great, users are the problem in most cases. i've used most of the available kernels and there is nothing close to this one imho
[Nexus S Android Development] rip_noob:
No, I'm setting bln through nstools if that matters but leaving the rest options stock.
[Nexus S Android Development] capoooro:
7.1

Strawberry

No OC

No sod

No reboot

Stabile band smooth

Tnx

PS I'm playing Ingress... The Google game and my small nexus s with your kernel rocks :)
[Nexus S Android Development] stojshic:
Yup, users are problem. As I'm such a n00b, and clean install is nuclear science, there must be something that I do.... And also, that thing with OC, that some phones can handle it, and some can't, it ain't about hardware, it's users, also... I'm really getting tired of all the "smart" users in here, so I will probably continue to use marmite, but that last kmsg that I posted will be my last try to help, and this will be my last post....
[Nexus S Android Development] caliban2:
Crap. Don't think I wanted to thank you for that useless rant. That was a misunderstanding between tapatalk and my finger..
[Nexus S Android Development] :
I encourage people to post their issues. Plenty of people always drop in just to say something nice, which is always encouraging, but I'd rather hear about the issues. I'll get bored if I've nothing left to fix. Ah, I suppose I could always break something again :p
[Nexus S Android Development] caliban2:
I said nothing against that. And it's normal that there are less positive remarks than negative. But you know what I mean, if it's always the same plot with the same cast...

But if you insist - no more positive feedback. Nothing said is praise enough. :p ;)
[Nexus S Android Development] :
Looks like OC caused it to me, all the stacktrace is full of corruption.
[Nexus S Android Development] rockerblood:
i got reboot a while ago when uninstalling Holoweb, but the rest are okay, maybe i still observe one more day.

multi tasking are smooth btw.

heres my last log

u0_a39@android:/ $

st_kmsg.txt < <

/system/bin/sh: syntax error: 'newline' unexpected

1|u0_a39@android:/ $ u0_a39@android:/ $

/system/bin/sh: u0_a39@android:/: not found

127|u0_a39@android:/ $ u0_a39@android:/ $

is this right?

Sent from my Nexus S™ i9020A
[Nexus S Android Development] :
I've always appreciated your feedback. Feel free to post as much or as little as you like.
[Nexus S Android Development] :
Are you using the kernel with 4.2 compatibility?

EDIT: Wait what am I looking at here? Are you trying to get a last_kmsg for me? The way I do it is to use root explorer. Go to /proc, can copy last_kmsg to your sdcard partition, then upload it somewhere for me.

Or you can do cat /proc/last_kmsg > /sdcard in terminal emulator, or via adb.
[Nexus S Android Development] rockerblood:
im using v7.1 btw the green highlighted one

im still using PA 2.54 but i add some apps from 4.2 such as camera galery (working no bug) google map, gmail, (recently installed) one more thing is activating my link2sd and freeze some unused apps such ad email (outlook) news and weather, google search. yesterday during my test the link2sd are deactivated nd no apps frozen. what do u think sir?

games issue:

i played wild blood so laggy than before then suddenly get me back to my desktop.

Sent from my Nexus S™ i9020A
[Nexus S Android Development] Basche:
How is it, I wanted to try it. I have already submitted my email, hopefully I can get to try it out myself :cyclops:
[Nexus S Android Development] :
I think link2sd is for devices with an SD slot. You don't need that on your nexus. I would titanium backup everything, re-install your ROM, and restore apps. Forget about scripts.
[Nexus S Android Development] :
New test version:removed

Just some updates to wifi stuff from android/common-3.0

I'd be quite interested in whether GPS works as expected in both 4.1.2 and 4.2 ROMs. Report back if you're a regular GPS user as to whether the experience matches up to what you would normally expect. Please allow for atmospheric conditions etc...!

EDIT: oops, wrong ramdisk. see next page for new link
[Nexus S Android Development] yabdali:
My experience!

Hi,

First of all thanks to your efforts and work, I have been using your kernel since the JB release and I am I feel that its one of the most stable kernels I have come across. My only concern, I am not sure if its something specific to me, is the battery life as I can hardly go beyond 7 hours of full batter (5 screen-off, 2 of internet and messaging). I tried to use NSTools to select the governor but keep getting no choice even if I reboot no governor is available to be selected. The other issue when trying to use the init.d script is that I cant find the folder under /etc!!! So I ended up using the configuration provided below. I would appreciate your kind inputs and feedback in this regard.

Nexus S (GSM) JB 4.1.2 Stock

Kernel: marmite 7.1

CPU Master is AnTuTu

Governor: ondemand

CPU: 100-1000

CPU(Screen-off):100-800

Sync: Gmail, Hotmail (Exchange Service), Whatsapp
[Nexus S Android Development] leap_ahead:
fix permission on cwm for governon
[Nexus S Android Development] BenHeng:
And if your battery is 2 years old and you have 3g on and/or location service activated it's (helas) a decent battery life.
[Nexus S Android Development] polobunny:
Alas or unfortunately, not hélas. :p
[Nexus S Android Development] BenHeng:
French touch dude ;)
[Nexus S Android Development] atxbang56:
cool un francais

Sent from my pretty cool Nexus S

Phone : Google Nexus S i9023

ROM : MIUI 2.11.16 by MIUI France

Kernel : Marmite v7.1 by Bedalus @1096MHz
[Nexus S Android Development] polobunny:
Oh totalement.

Dis-toi que ça fait trois qui parlent Français. ;)
[Nexus S Android Development] atxbang56:
ca fait plaisir, on se sent tout de suite moins seul

Sent from my pretty cool Nexus S

Phone : Google Nexus S i9023

ROM : MIUI 2.11.16 by MIUI France

Kernel : Marmite v7.1 by Bedalus @1096MHz
[Nexus S Android Development] benoit2600:
ça fait même quatre ;)
[Nexus S Android Development] polobunny:
En effet!

Plus on est de fous plus on rit?? :p
[Nexus S Android Development] deani77:
This test kernel gave me android.phone stop process... Pull out battery. Need to re-install back ROM and older Marmite 4.2 kernel and it working again...
[Nexus S Android Development] BenHeng:
I will flash after work then :D just did a test with 7.1 to have an accurate reference to compare with.

And it's nice to see French people, but let's not clutter bedalus thread with our chatter :rolleyes:
[Nexus S Android Development] spider623:
Off topic bedalus will you come to nexus 4 when the time for a new device come?

Sent from my Nexus S

---------- Post added at 08:24 PM ---------- Previous post was at 08:20 PM ----------

I do and it goes up to 2d no charge(if I play with my tablet ) or 1d and some hours tops WiFi always on

Sent from my Nexus S
[Nexus S Android Development] BenHeng:
Maybe you're a lucky, or you've taken a very good care of your battery, or you're having a bad reception... But from most of the experiences i read, with no strange battery drain, most of the users have the same experience as me (more or less 12hr with heavy/medium use).

I might be wrong however.;)

@ Bedalus:just flashed your new test kernel: same here. com.phone.android keeps crashing. I had to flash back to special 4.2 kernel.

I'm still on the ROM from theDarkOne :D (good thing I waited till i finished before flashing :angel:).

And I must add: it optimized my apps at boot, as if I had wiped dalvik ;)

Also since we're all ungrateful, I should say that the only 2 reboot I had were while beta testing bb6 , and bad bat life is my main reason for ****ty uptime :rolleyes:
[Nexus S Android Development] alen1901:
Sorry but this is NOT french forum. :P

Sent from SpeedMachine i9023
[Nexus S Android Development] :
New test 4.2 version: http://d-h.st/uKt

-New wifi commits

-Should work properly this time! (Sorry about the last test version :p)

I used the old ramdisk which is why the phone thingy crashed.

I still need to know if GPS works properly on both 4.1.2 and 4.2 ROMs. Please feedback! :D

EDIT: GPS Confirmed working on android 4.1.2 on my own i9020 device.
[Nexus S Android Development] :
Yeah, as leap_ahead says, I would go to ClockWorkmod Recovery and fix permissions, wipe cache and dalvic cache. Reboot. All your issues should be solved. If you have still got a battery problem, go to settings > battery and look at what things have a high percentage.
[Nexus S Android Development] :
Notice: If you are looking to flash something new, please look at the previous page for a test version that I would much appreciate testing.

EDIT: GPS Confirmed working on android 4.1.2 on my own i9020 device.

One question that I suppose I need to answer:

I'm driving this one until the wheels fall off!

Seriously, I see no need to upgrade. I love my nexus s! Especially now that I run my own kernel on it. I hope other people are still tempted to try building themselves.

I'm going to carry on providing updates and working on improvements. Maybe with more skill in time I will be able to get deep idle or IDLE2 or some sort of hybrid to work properly. That would keep me busy!
[Nexus S Android Development] yabdali:
Thanks for the feedback, I did fix permission through CWM and NSTools now shows the governors. However, I am still unable to locate /etc/init.d/ it seems to be missing!!!

Has anyone come across this issue??
[Nexus S Android Development] BenHeng:
You have to enable viewing the root folder ( / ) of your device. It's in the settings of most explorers.

Edit :latest kernel flashed, I'll test GPS tomorrow on the road to work
[Nexus S Android Development] deani77:
GPS working on maps but not on Facebook.

Phone boot like it should. Thanks...
[Nexus S Android Development] yabdali:
I use root explorer, here's a screen shot of the /etc folder
[Nexus S Android Development] hiphopboy:
At the first release for 4.2 and today release, i'm using normal everything i need, not tested bluetooth, sms grouping but face unlock ok, gps ok at all dev build release for 4.2
[Nexus S Android Development] BenHeng:
Does your ROM has init. d support? If not you may have to flash a mod allowing it
[Nexus S Android Development] deani77:
Which version you use. Your own compile ROM?
[Nexus S Android Development] polobunny:
I stopped bothering with init.d because using script manager is just easier. No copy pasting when flashing a rom, solid editor, run at boot and so on and so on. Virtually barely any overhead.

I recommend it to anyone, stock or not. :)
[Nexus S Android Development] yesyesyes81:
Hi bedalus,

I flashed CM10 nightly 20121120, then immediately marmite 7.1 under "All other roms". After that I boot up from recovery but to get a black screen only soft button leds on. Have to remove battery to boot into recovery and flash the ROM again. Without flashing marmite this time, phone booted successfully. Any idea why is that? Thanks.

regards,

Spring
[Nexus S Android Development] deani77:
For CM ROM you need CM kernel not any ROM kernel.
[Nexus S Android Development] csdibiase@gmail.com:
Thanks for the kernel! I installed this after seeing all the comments in there CM10 thread in the general forum. In my case I've been seeing random reboots on my device, ASSR least one or two a day depending on usage

So far so good with this kernel though. Now i did have to reboot manually to get Bluetooth to reconnect to my head set today but I'll take a manual reboot over a random one any day and twice on Friday.

Keep up the great work!
[Nexus S Android Development] towelboy:
Its great news to hear your continued support for our veteran nexus s's! I won't leave this phone until you do because until then, this phone will still fly :thumbup:

Anyways, 17 hours on 7.1cm and no bugs no nothing. A little bit of oc when playing games though
[Nexus S Android Development] :
v7.1.2 is here: http://goo.gl/HvUrp

-Backport oom_score_adjust from android-3.4

-I think the kernel might work correctly on 4G ROMs without a separate version. 4G users please test and feedback! Thanks!

Anyone remotely interested in the code should look here: https://github.com/bedalus/marmite/commit/d09728099665dcfdcccba3f3653c157b4d021f9f

275 changed files with 1,126 additions and 797 deletions. It took a while! :p

Why bother? I think the soft reboots might have something to do with memory management. So I decided to look at the latest kernel to see how their low memory killer is working, and there were many substantial changes. So I tried to integrate them. But every file I changed seemed to cause another one to require a change. Eventually I nailed them all though.

I've tested this on my phone, and it seems to be working fine. Obviously I only test briefly, then I upload for others to test! So please feedback on your experience.

4G USERS: Please try the CM or Other ROM version. I think it may now work correctly for you without a separate version being required. Please report any problems.
[Nexus S Android Development] Ser Gilgoroth:
Flashed. Looks like it cleared the dalvik?
[Nexus S Android Development] xxxMADxxx:
Thanks...try soon..hope this update not make my lockscreen delay to open with miuiv4 rom..:good: