yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] :
I'll post my solution when i get home

EDIT: https://github.com/bedalus/marmite/commit/3424f9db66e7d01b3e2458bd70cef966cf8e2b60

This solves it. It checks which device it's running on, because only the i9023 needs it. If the hack is applied on the amoled, it causes a weird flicker.
[Nexus S Android Development] nexususer1:
Will this hack help get rid off this flicker even on i9023 which uses slcd?
[Nexus S Android Development] apatal:
+1. I have an i9023 too - a SLCD device

Posted using xda mobile app
[Nexus S Android Development] :
Yes, this fixes the CRT animation and the flicker for both SLCD and AMOLED devices
[Nexus S Android Development] nexususer1:
Krfoy, can you please include this fix in your kernel?
[Nexus S Android Development] whoisrikk:
Works very well, I was looking forward to a kernel to support BLN and Voodoo Sound on 4.1.2. and this does a great job!
[Nexus S Android Development] krfoy:
ok, i'll include it in the next version. thanks to bedalus. :good:
[Nexus S Android Development] whoisrikk:
My first thougts on this kernel were great but now I see that it drains the battery way more faster than the standard kernel.

Is there anyway to improve the battery life? I'm doing almost half a day with a full battery charge in medium usage conditions.
[Nexus S Android Development] :
Is there anywhere you forgot to post this?
[Nexus S Android Development] qetuol:
your thread. but i wont, cuz youve read it here..
[Nexus S Android Development] :
You shouldn't re-post the same question in multiple threads. I got an infraction for that several months ago.

The maximum timeout is a ROM setting, not a kernel setting. If you're going to have your phone on for a long time, plug it in. Then you can set Always On when charging (I can't remember if all ROMs have this setting, but Slim Bean does).
[Nexus S Android Development] qetuol:
first of all, i hope not so much harm was done by reposting it twice.

second, the intention of having more time before locking is different:

i have to had my phone encrypted (for security reasons) meaning i have to type a long passphrase at least every 30min in order to unlock it. i would extend that time so i would have to had unlock it once or twice per day... i hoped it could be solved by a kernel mod. or maybe changing a txt file in \system? no idea why that 30 min is the maximum.. :(
[Nexus S Android Development] :
That's still a ROM feature.
[Nexus S Android Development] weedy2887:
I have run SG and now INK kernel ever since I owned my device.

Since day one I have used voodoo to adjust the colours, except today I can't.

What did you change to make them so washed out? And whites are yellow/green ish.

https://www.dropbox.com/sh/ygqxz3yy8yoxca8/HpK7Bs8i4S
[Nexus S Android Development] krfoy:
Unfortunately, to be a custom kernel maintainer, i can not give you any help. :(
[Nexus S Android Development] krfoy:
do you mean voodoo color is not working?
[Nexus S Android Development] krfoy:
Stock ROM does, so I think, yes. :)
[Nexus S Android Development] weedy2887:
Maybe, I think I see differences when I change profiles but they are so slight that I might just be my eyes playing tricks on me.

I have a 9020A if that makes a difference.

Can you build interactive as a module? http://xdaforums.com/showpost.php?p=31354769&postcount=189

I can write some init.d code if you want it still auto loaded but I want to play with ondemand.
[Nexus S Android Development] weedy2887:
Yeah voodoo is dead.

Also bump.
[Nexus S Android Development] krfoy:
Would you like to try whether if voodoo color working in the previous version?
[Nexus S Android Development] torchie:
Are there any plans for ondemand 100/1000?
[Nexus S Android Development] krfoy:
#105

Fix battery drain issue

tweak CRT animation hack

Update UKSM

...
[Nexus S Android Development] :
You got MTP working in any-kernel script?
[Nexus S Android Development] :
Couldn't wait for an answer any longer so I tried it myself...

Quoted from OP:

Krarvind is a legend for bringing MTP to the Nexus S, but I'm amazed you got it working with the any-kernel script! Really nice work!

Do you remember your first attempt? It looked good but didn't work... What did you change to make it work right?
[Nexus S Android Development] weedy2887:
This isn't really a bug with YOUR kernel so much as a question about all NS/other phone kernels.

As far as I know having read_ahead_kb set higher then max_sectors_kb doesn't do anything. And you can't set max_sectors_kb higher then max_hw_sectors_kb. Any idea why max_hw_sectors_kb is being reset? I can see the mmcblk* devices have I guess the right value, but then it's getting nerfed everywhere else.

I found these http://linux-kernel.2935.n7.nabble....lt-limits-sets-0-to-max-sectors-td515337.html

https://patchwork.kernel.org/patch/48554/

I'm just wondering if the same kind of fix/change was not applied to the paths that make the mtd devices.

Phone:

shell@android:/ $ BLOCK_DEVS="/sys/block/mtdblock* /sys/block/mmcblk* \
> /sys/devices/platform/s5pc110-onenand/mtd/mtd*/mtdblock* \
> /sys/devices/virtual/block/dm*"
shell@android:/ $ for i in $BLOCK_DEVS; do
> echo $i
> cat $i/queue/max_hw_sectors_kb
> cat $i/queue/max_sectors_kb
> done
/sys/block/mtdblock0
127
127
/sys/block/mtdblock1
127
127
/sys/block/mtdblock2
127
127
/sys/block/mtdblock3
127
127
/sys/block/mtdblock4
127
127
/sys/block/mtdblock5
127
127
/sys/block/mtdblock6
127
127
/sys/block/mmcblk0
512
512
/sys/block/mmcblk0boot0
512
512
/sys/block/mmcblk0boot1
512
512
/sys/devices/platform/s5pc110-onenand/mtd/mtd0/mtdblock0
127
127
/sys/devices/platform/s5pc110-onenand/mtd/mtd1/mtdblock1
127
127
/sys/devices/platform/s5pc110-onenand/mtd/mtd2/mtdblock2
127
127
/sys/devices/platform/s5pc110-onenand/mtd/mtd3/mtdblock3
127
127
/sys/devices/platform/s5pc110-onenand/mtd/mtd4/mtdblock4
127
127
/sys/devices/platform/s5pc110-onenand/mtd/mtd5/mtdblock5
127
127
/sys/devices/platform/s5pc110-onenand/mtd/mtd6/mtdblock6
127
127
/sys/devices/virtual/block/dm-0
127
127
/sys/devices/virtual/block/dm-1
127
127
/sys/devices/virtual/block/dm-2
127
127
shell@android:/ $

My server:

mini ~ # cat /sys/block/sd*/queue/max_hw_sectors_kb
32767
32767
32767
32767
mini ~ # cat /sys/block/md*/queue/max_hw_sectors_kb
32767
32767
32767
[Nexus S Android Development] xxxMADxxx:
This kernel will work with miuiv4 rom dude? Sorry for this question
[Nexus S Android Development] benoit2600:
@krfoy

Hi, where can I find your .config file, for the kernel compilation ?
[Nexus S Android Development] krfoy:
I use these script to add MTP

if [ -z `/tmp/busybox grep mtp init.herring.usb.rc` ]; then
/tmp/busybox echo -e "\non property:sys.usb.config=mtp\n"\
" write /sys/class/android_usb/android0/enable 0\n"\
" write /sys/class/android_usb/android0/idVendor 04e8\n"\
" write /sys/class/android_usb/android0/idProduct 685c\n"\
" write /sys/class/android_usb/android0/functions \$sys.usb.config\n"\
" write /sys/class/android_usb/android0/enable 1\n"\
" setprop sys.usb.state \$sys.usb.config\n\n"\
"on property:sys.usb.config=mtp,adb\n"\
" write /sys/class/android_usb/android0/enable 0\n"\
" write /sys/class/android_usb/android0/idVendor 04e8\n"\
" write /sys/class/android_usb/android0/idProduct 6860\n"\
" write /sys/class/android_usb/android0/functions \$sys.usb.config\n"\
" write /sys/class/android_usb/android0/enable 1\n"\
" start adbd\n"\
" setprop sys.usb.state \$sys.usb.config\n\n"\
"on property:sys.usb.config=ptp\n"\
" write /sys/class/android_usb/android0/enable 0\n"\
" write /sys/class/android_usb/android0/idVendor 04e8\n"\
" write /sys/class/android_usb/android0/idProduct 6865\n"\
" write /sys/class/android_usb/android0/functions \$sys.usb.config\n"\
" write /sys/class/android_usb/android0/enable 1\n"\
" setprop sys.usb.state \$sys.usb.config\n\n"\
"on property:sys.usb.config=ptp,adb\n"\
" write /sys/class/android_usb/android0/enable 0\n"\
" write /sys/class/android_usb/android0/idVendor 04e8\n"\
" write /sys/class/android_usb/android0/idProduct 6866\n"\
" write /sys/class/android_usb/android0/functions \$sys.usb.config\n"\
" write /sys/class/android_usb/android0/enable 1\n"\
" start adbd\n"\
" setprop sys.usb.state \$sys.usb.config\n\n" >> init.herring.usb.rc
fi
/tmp/busybox sed -i 's/msm_camera\/\*.*system.*system/msm_camera\/\* 0660 system camera/g' ./ueventd.rc
/tmp/busybox sed -i 's/ro.allow.mock.location=0/ro.allow.mock.location=1/g' ./default.prop
/tmp/busybox sh -c "/tmp/busybox find . | /tmp/busybox cpio -o -H newc | /tmp/busybox gzip > ../boot.img-ramdisk-new.gz"
cd ../

it's in unpack_add_init.sh
[Nexus S Android Development] krfoy:
IKCONFIG_PROC is on in vta2-kernel.
[Nexus S Android Development] krfoy:
No, I guess. MIUI is based on CyanogenMod. This isn't working with CyanogenMod.
[Nexus S Android Development] krfoy:
Thanks, I'll try it.
[Nexus S Android Development] xxxMADxxx:
Ohh no..i like 10 your multitouch features :(..but MIUIV4 not based on AOSP? Ill try this on MIUI with my own risk..LOL.Thx krfoy :thumbup:
[Nexus S Android Development] weedy2887:
First off, why don't you just try it?

Second I flashed it, it boots but voodo is broken on AMOLED. So it looks horrible.
[Nexus S Android Development] krfoy:
I don't own an AMOLED device, so I could not test for it. But i'll try to find out what cause this problem......
[Nexus S Android Development] krfoy:
I tried to remerge Voodoo Project. Please test it if you have a i9020. Thanks!
[Nexus S Android Development] leap_ahead:
Good kernel man Thanks !!!
[Nexus S Android Development] leap_ahead:
how i can load kernel module ???
[Nexus S Android Development] krfoy:
ondemand:

insmod /system/modules/cpufreq_ondemand.ko
[Nexus S Android Development] jahlovePL:
great work, running it with latest MIUI JB and works like a charm

thanks krfoy!
[Nexus S Android Development] jojoost:
Never ever opened this thread, but damn I'm happy I did now!! Thanks man!
[Nexus S Android Development] qetuol:
does this kernel have wifi pm_fast on to keep wifi at full speed when screen is off? :)
[Nexus S Android Development] weedy2887:
Comparing your source to the kernel I used to use, this is the only important change I see. https://github.com/abev66/linux-kernel-vta2-ns/commit/e0fcf24f1937c4105a8eaa916390dda22aedc014

Does this help your SLCD panel? It looks like this is why the colours bug me.

--- herring-panel.c.vte	2013-01-12 11:12:53.008586928 -0500
+++ herring-panel.c.ink	2013-01-12 11:13:02.432012414 -0500
@@ -357,6 +357,7 @@
0x0b8,
0x0fc,
},
+#ifdef CONFIG_TL2796_CONVERT_COLORS_RES
.color_adj = {
/* Convert from 8500K to D65, assuming:
* Rx 0.66950, Ry 0.33100
@@ -364,19 +365,20 @@
* Bx 0.14142, By 0.04258
*/
.mult = {
-	2013265920U,
-	1619001344U,
-	1996488704U,
+	2318372099U,
+	2117262806U,
+	1729744557U,
},
.rshift = 31,
},
+#endif

.gamma_adj_points = &gamma_adj_points,
.gamma_table = gamma_table,
.gamma_table_size = ARRAY_SIZE(gamma_table),
};

-static u16 brightness_setting_table[] = {
+static const u16 brightness_setting_table[] = {
0x051, 0x17f,
ENDDEF, 0x0000
};
@@ -997,7 +999,7 @@
ENDDEF, 0x0000
};

-static u16 R61408_brightness_setting_table[] = {
+static const u16 R61408_brightness_setting_table[] = {
0xB0, 0x102,
0xB9, 0x100,
0x1F7, 0x102,
[Nexus S Android Development] leap_ahead:
I do this but after restart ondemand desapear
[Nexus S Android Development] imranaryan:
Re: [KERNEL] vta2-kernel for Nexus S Jelly Bean #105

will this work with 4.2.1 roms

Sent From Somewhere In The Streets Of INDIA.
[Nexus S Android Development] apatal:
Re: [KERNEL] vta2-kernel for Nexus S Jelly Bean #105

Yes, it should.
[Nexus S Android Development] zsparrow:
Re: [KERNEL] vta2-kernel for Nexus S Jelly Bean #105

This kernel is SWAP enabled?
[Nexus S Android Development] krfoy:
Nope. ;)
[Nexus S Android Development] krfoy:
A minor update #113

Build 113

source code
[Nexus S Android Development] kpyhere:
What app can i use to controll the kernel functions ?

I want to activate the swipetounlock and BLN :)
[Nexus S Android Development] sperelli:
NsTools, from Playstore I dare to say
[Nexus S Android Development] sperelli:
kernel heavily lagging with latest Xylon Unofficial 4.2.2
[Nexus S Android Development] xxxMADxxx:
i think this kernel just for aosp rom not for cm based right??
[Nexus S Android Development] leap_ahead:
yes..too bad that we cant test it on 4.2.2 rom
[Nexus S Android Development] nibla101:
Running it right now on ThinkingBridge ROM and its running fine.
[Nexus S Android Development] leap_ahead:
Boot fine?
[Nexus S Android Development] xxxMADxxx:
Re: [KERNEL] vta2-kernel for Nexus S Jelly Bean #113

Test on XenonHD latest running great !!
[Nexus S Android Development] ej8989:
running smooth but i get high androidos drain
[Nexus S Android Development] sperelli:
tested on xenonHD

i changed from SIO to deadline, and my phone was practically unusable...

reverted back to previous kernel.
[Nexus S Android Development] ej8989:
Works smooth on slim bean 4.2.2. No battery drain also.
[Nexus S Android Development] nibla101:
SIO is a nice scheduler, any plans to add the row scheduler? or have you tried that one and found it worse?
[Nexus S Android Development] ej8989:
I'm currently using this on slimbean 2.5 and there are no issues.
[Nexus S Android Development] krfoy:
I didn't try it. Will it be better? :confused:
[Nexus S Android Development] krfoy:
Thank you, I'll try to revert this.
[Nexus S Android Development] mixtapes08:
Re: [KERNEL] vta2-kernel for Nexus S Jelly Bean #113

TricksterMod integrated BLN and BLD to there settings. Grab it here https://play.google.com/store/apps/details?id=com.bigeyes0x0.trickstermod :D

-3StarsAndaSun
[Nexus S Android Development] krfoy:
version 116 is here.
[Nexus S Android Development] ej8989:
Request: Please release a non GPU-OC'd version. It causes reboots on my i9023. Everything else works perfect.
[Nexus S Android Development] leap_ahead:
bt fix for 4.2.2 ?
[Nexus S Android Development] ej8989:
What exactly is that bluetooth bug/problem? I don't use bluetooth that much but i'll see if it's fixed in this kernel.
[Nexus S Android Development] leap_ahead:
enable bluetooth download cpu spy from market and turn off your screen ...if your device is not deep sleep that is the problem with bt
[Nexus S Android Development] ej8989:
BT drain NOT fixed.
[Nexus S Android Development] nibla101:
Kernel #116 not working good for me, had several random reboots during device sleep across roms.

noticed that the size of the kernel.zip went from 4.27mb to 5.20mb isn't that much for a such a small changelog?

Anyway rolled back to #113 and all is good again.
[Nexus S Android Development] krfoy:
About the kernel size, It is due to I use LZO instead of XZ in the new version to made kernel decompression more faster.
[Nexus S Android Development] Setting.Out:
I love this kernel, but I use mainly cm versions, could it be possible to make a cm version?
[Nexus S Android Development] migueldbr:
[MENTION=2354509]krfoy[/MENTION] could you maybe include the 1.0ghz step in the kernel?I really like this kernel!

edit: nevermind the 1.0ghz step, what actually causes problems is the gpu oc. Could you make a version without gpuoc?With bus speed @200mhz? had some really strange lock(with the screen going crazy and then the phone rebooted) and it was because of the gpu oc. I am trying to raise the voltage +25mv on the 1248mhz step to see if it becomes stable
[Nexus S Android Development] TechNoir:
I really like this kernel so far. Thanks for sharing it!

If I could give some feedback, I would also like a non-OC version since my i9023 also has problems with freezing and hanging when OC'd, despite bumping voltage slightly. If possible, the "best" solution might be to add the 1.0 GHz step to the ROM as a standard feature, and provide a non-GPU OC version separately. Again, not sure if this is possible or logical, but I wanted to atleast try to provide some constructive criticism.

Again, thanks for sharing your work!
[Nexus S Android Development] ej8989:
This is still the smoothest kernel in every rom.
[Nexus S Android Development] nibla101:
Unfortunately that because it clocked to 1.25GHz,

but it is a nice kernel overall.
[Nexus S Android Development] ej8989:
This, clocked at 1.25GHz makes android feel smoother than matr1x, marmite, xens, or devil kernels @ >=1.32GHz

In my opinion. :)
[Nexus S Android Development] Setting.Out:
The only problem is the screen will bug and it freezes, but even 800mhz is faster than 1000mhz with other kernels.. the gpu is over clocked, which I believe is the problem..
[Nexus S Android Development] ej8989:
I used matr1x's voltages and so far, for more than 2 days, not a single reboot or that annoying "glitch" where the screen is messed up then freezes, then reboot.

EDIT: Random reboot today. After 3 straight days, streak ended.
[Nexus S Android Development] krfoy:
minor update #130
[Nexus S Android Development] DarkShadow69:
Will this version supports 4.3?
[Nexus S Android Development] ej8989:
It does. I'm on slimbean 4.3 right now and it runs really smooth. No SELinux support though.

EDIT: Camera does not work.
[Nexus S Android Development] Setting.Out:
init.d isn't working for me..
[Nexus S Android Development] krfoy:
It's due to highbigmem patch. this kernel is for 4.1.2. Does slimbean's default kernel also had hgihbigmem patch ? I would try sleambean later maybe ;)
[Nexus S Android Development] ej8989:
Slimbean uses marmite and yes it does have highbigmem patch. (~407mb ram)
[Nexus S Android Development] krfoy:
could you please make a little test for me? ;)

trying to revert the following libraries from Slimbean and see whether if the camera get works?

/system/lib/libOMX.SEC.AVC.Decoder.so

/system/lib/libOMX.SEC.AVC.Encoder.so

/system/lib/libOMX.SEC.M4V.Decoder.so

/system/lib/libOMX.SEC.M4V.Encoder.so

/system/lib/libSEC_OMX_Core.so

/system/lib/libstagefright_omx.so

edit:

Or you may like to try to

reflash sleambean

and use this version of vta2 pack (see attachment)
[Nexus S Android Development] ej8989:
Okay i'll test :)

Update: Camera still Force Closes.
[Nexus S Android Development] krfoy:
OK thanks, I'll take a look.
[Nexus S Android Development] ej8989:
Wait.... After reboot. IT WORKED! :)
[Nexus S Android Development] krfoy:
Cool! thanks a lot! :good:
[Nexus S Android Development] Setting.Out:
My fault, I made a wrong selection in recovery... :)
[Nexus S Android Development] DarkShadow69:
Tried this one on Lafriks's AOSP 4.3 version as well but still camera Force closes:(

Except this issue the rom is now more smooth and responsive:)
[Nexus S Android Development] krfoy:
I tried Lafriks's AOSP 4.3, camera works with this version. you may try to reflash Lafriks's AOSP and try again :)
[Nexus S Android Development] Setting.Out:
I had the screen freeze up and reboot with this version too... :(
[Nexus S Android Development] explorer-10:
this kernel seems cool. will maybe try this out with slim bean B1 plus other mods
[Nexus S Android Development] ej8989:
On what scenario? What were you playing/doing, what apps/radios were open before this happened? I can't replicate the issue.
[Nexus S Android Development] Setting.Out:
I was on the internet looking for a video, it directed me to youtube, the screen did it's usual pixilization/froze/rebooted... hasn't happened since..
[Nexus S Android Development] DarkShadow69:
Thanks man:good: Camera is working perfectly fine now :)

But I think this version is not as fast as the version posted in first post and also phone is now getting hot after using it for a while :(
[Nexus S Android Development] krfoy:
They are the same build, in fact.
[Nexus S Android Development] Setting.Out:
No heating, no more reboots (fingers crossed).. but I am curious about the mainline updates and 4.3, will you update this "AMAZING" kernel for us?? This is, and I've said it before, the fastest kernel for our phone.
[Nexus S Android Development] explorer-10:
just curious, if i were to wipe the /system partition, will it delete my saved texts or will it remain the way it is, but delete its settings?
[Nexus S Android Development] Setting.Out:
They'll be deleted, but there is a free app for SMS backup and one for call logs too..
[Asus Transformer TF700] mwinschel:
Hi using my new infinity and am trying to get amazon instant video either through the website or app with no success. App is crashing and while it looks as if I can watch video in a scaled windows at times on the website, if I try to go full screen it doesnt work at all. Has anyone tried using this and/or found a way to get it to work if you have the same problem? I was wondering if it was a browser issue and tried the stock, chrome so far.
[Asus Transformer TF700] BritCrit:
Works on stock browser and dolphin for me. I've tried to get the "app" working before on other devices but never with success.
[Asus Transformer TF700] Splaktar:
Got it working last night on the website with Dolphin HD. Kind of lagged when I was multi-tasking (running speed tests). But after closing open apps and restarting the browser, it was very smooth and clear.
[Asus Transformer TF700] BritCrit:
Probably worth mentioning works great on splashtop when streaming from the desktop too. (using the unbox app not looking to be super redundant) Splashtop is included with the TF700 under the MyNet application.
[Asus Transformer TF700] mwinschel:
I have had more success with Dolphin lately although still buggy. when you expand to full screen you lose video until you pause and play again. Seems to work a little better now for some reason. Would be nice to have the app working.
[Asus Transformer TF700] fella1:
frustratingly enough amazon saw fit to release the app for Ipad today while neglecting to release an android version. Terribly annoying because they've obviously had the app ready for android forever ago since it used by the kindle fire. Guess they want to force people to buy the kindle fire to get the app. Pretty stupid because they would make more money from the people getting prime to use the app than they would on the kindle fire sale.
[Asus Transformer TF700] breathlessasus:
Amazon streaming

New to Forum and just tried to use Amazon's prime streaming through Dolphin Browser installed on my TF700 but when logged in, got a screen message that Adobe Flash wasn't installed and therefore it wouldn't play. I read somewhere Adobe wasn't supporting newer tablets as TF700 which have updated Android OS. Am I missing something here?

Any and all help/comments will be greatly appreciated. :fingers-crossed:

Thanks all. SIZE]
[Asus Transformer TF700] buhohitr:
Make sure you have flash installed and your browser configured for flash. I'm using Boat browser and go to settings then set flash for "on demand" works fine with Amazon instant video streaming.
[Asus Transformer TF700] fortunz:
I've never been able to get it to consistently work with no sync issues in a browser. The sync loss is minor, but it's just noticeable enough to be annoying. It's a flash thing, I'm sure, rather than a specific browser thing. Some day I'll get around to trying earlier flash releases to see if any are better. I've experienced a similar sync issue with splashtop too.

I was going to use XBMC + bluecop's repository + asus mynet, but I've been having all kinds of errors adding shows to a library where they would be accessible to other devices.

I was able to get the fire apk working when I briefly had a Nook Tablet running a slightly modified version of gingerbread (see my sig). From what I've read, no one has gotten it working on ICS+. My brief attempt just resulted in crashes when i tried to play a vid. Boy I wish Amazon would get their app up to date and release it officially for Android in general. I'd much rather use the app again.
[Asus Transformer TF700] breathlessasus:
Thanks for the response/help. Never heard of Boat Browser but will give it a try. :D
[Asus Transformer TF700] breathlessasus:
UPDATE: Tried using Boat Browser with flash setting to "on demand" and still got the same message - Adobe not installed. Don't think it's so much the browser as it is that Adobe no longer supports newer Android OS devices. Found list of those tablets which will work with Amazon's Prime instant streaming and TF700 is not one. :(

Could there be a difference in streaming vs. buying or renting a video? :confused:

Thanks again for response/help - appreciate it.