yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

edited

[MENTION=5132964]HJain13[/MENTION]

Nice name.

---------- Post added at 11:08 PM ---------- Previous post was at 10:17 PM ----------

[/COLOR [MENTION=5925208]psych.half[/MENTION]

set on boot still not working on R1
[Samsung Galaxy Star] psych.half:
Alright, it was hard to find the bug, but it should be fixed now.. it's on R1 too, actually it's was unpredictable.. anyways

R2 is coming up with the same stuff as previous build ( f2fs , custom voltage ) plus cortex-a5 optimizations and possibly fixed governors and ofcourse frequency scaling

On a side note, I don't even check PM's so those who have sent me, "Your voice has been heard.."
[Samsung Galaxy Star] BatDroid:
thanks hitted.

As far as I saw,1st upload was the best.

Then we messed with extra things and lost set on boot.

Now f.s lost too.

waiting for r2
[Samsung Galaxy Star] psych.half:
I should have said is coming up in few minutes.

R2 is already available for download...

'
[MENTION=5822936]corphish[/MENTION]

The reboot to recovery thing is hard to diagnose., 'reboot recovery' in shell reboots way too fast to even get any log

And are you sure reboot to recovery from advanced reboot works in shipped CM11.

As far as the 'init' logs says, it can't find 'pre-recovery' service
[Samsung Galaxy Star] HJain13:
It doesn't for me..
[Samsung Galaxy Star] BatDroid:
on R2 and feels like using one plus one..

lol
[Samsung Galaxy Star] corphish:
It does not work on CM11 beta 3, it has been fixed, to be available in beta 4

Fix - https://github.com/TeamButter/patches/commit/d0949e249afbd651f763b76045561ce1cbd47732

I have documented my changes there.

But in CM12.1, reboot to recovery works without this fix, and ofcourse kernel used is the 3.0.101 + your fixes.

And in CM11 beta 3 (default kernel), without this fix, on tapping reboot to recovery, that 'rebooting' msg will be shown forever.

With your kernel, (and the fix applied), it simply reboots.
[Samsung Galaxy Star] psych.half:
Are we compiling init or using stock one?

Anyways, I think a better place to do dev discussion is Gitter.

You should have recevied a approval request for TeamButter.

And [MENTION=5689056]LahKeda[/MENTION] get some coolants for your PC. cause with me pushing to device trees. We're going from alpha to experimental..
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

r2 is also making some problem in set on boot..

remove r1 please.

It keeps people confusing..
[Samsung Galaxy Star] psych.half:
Well, that might be because you're using init.d to set it.

The cpufreq driver is loaded by init.d so, guess what happens when you try to set cpu frequency before the driver loads?

So either one must use an app to set it or change the init.d to wait for cpu driver.

And besides, cm11-beta4 is going to load it later. So init.d won't probably work.

I've clearly posted that r2 is the latest version. I will put that in the title too if it helps. The latest version is always the last one in attachments that's set by XDA itself.

I could upload to some hosting site, but then it won;t be a one click straight download like right now.

Anyways, r3 will come only after cm11-beta4 is released.

I think cpufreq driver is stable enough for now.

And r3 will include it by default. So no need to double flash.
[Samsung Galaxy Star] BatDroid:
Thanks.

I understand now.

I was setting is before it loads.
[Samsung Galaxy Star] bvrraju:
Dear [MENTION=5925208]psych.half[/MENTION] bro

Are u can try to make this kernal with move to SD support and fast charging support.

Why may be no one didn't thinking about this . y:thumbdown::o:o:o:o:thumbdown::o:thumbdown::thumbdown::thumbdown::sly::sly:
[Samsung Galaxy Star] BatDroid:
u r a terrible guy.

show some respect man!

he already did enough.

enabling app 2 sd causes some problem and p.h and tt3snake tried it a long time ago.
[Samsung Galaxy Star] bvrraju:
Respected SIR.......
[Samsung Galaxy Star] bvrraju:
Oh [MENTION=7017727]Dark Knight Begins[/MENTION] Sir

By [MENTION=5390225]bvrraju[/MENTION] withRESPECT RESPECT

RESPEXT

RESPECT......RE......

RESPECT... And much more RESPECT :rolleyes::rolleyes:
[Samsung Galaxy Star] psych.half:
[MENTION=5390225]bvrraju[/MENTION]

The kernel has nothing to do with Apps2SD feature or any apps for that matter.

It's limitation set by Android itself.

If you really want more space for apps, partition your external sdcard, and use Link2SD or anything like that.

Cause dalivk-cache and data won't move to by Apps2SD.

Apps won't be ready until Android boots causing launcher lags, cannot use widgets, and apps can specify they want to be in internal storage. A lot of other issues.

Thats why google removed it in Jellybean at least for devices with /data/media.

Marshmallow allows you to adopt an external as internal storage.

What the hell am I writing a, blog post...

Anyways I hope that clears it. About the fast charge I will have to look at it. There's code for battery by 3 companies Sam, Sprd and STC. I have to figure out which is responsible for detecting USB cable.

Fast charging doesnt mean your phone will charge fast. It just requests the PC to give it higher current than default 250mA. Whether the PC gives it or not depends like your port, using external hubs...

And it;s turning out to be a blog post again...

And R3 will be uploaded within an hour.

It's just for compatibilty with CM11 Beta-4.

As, such there won't be any new features just fixes.
[Samsung Galaxy Star] doesntexits:
[MENTION=5925208]psych.half[/MENTION]

How about zRAM in this kernel? For such gamers like [MENTION=7017727]Dark Knight Begins[/MENTION], they would need some amount of swappings to keep those intensive apps running, so i just let the suggestion here just in case, choice is yours

I think 128MB zRAM is enough
[Samsung Galaxy Star] BatDroid:
I don't actually need it bro.

I can play games smooth now.
[Samsung Galaxy Star] psych.half:
[MENTION=6586967]doesntexits[/MENTION]

Zram is already included. Infact, it's backported one. r2 has zsmalloc and r3 will include zcache.

It's just not enabled by default. I added the entry in fstab but nothing. I should write an init.d script for it maybe.

[MENTION=7017727]Dark Knight Begins[/MENTION]

frandom is also included, incase you are using Seeder. Again needs an init.d to enable.

R3 is ready for download.

This one just adds support for CM11 beta-4 and a few bugfixes and minor features.

Changes from R2.

- Removed underclocking and lowered voltages. See Github for explanation.

- Upated zRAM with zCache support.

- Removed some more debugging.

And other things I dont remember.
[Samsung Galaxy Star] BatDroid:
edit: 1000mhz on 650mv!

cool
[Samsung Galaxy Star] doesntexits:
[MENTION=5925208]psych.half[/MENTION]

Ok, i understand, but why adding zCache instead of frontswap? Any better?

Btw, frontswap seems useless with 3.10.17. It "breaks" the system, won't let booting or in the other words: bootloop. Idk why zcache needs frontswap. Are they all "transcendent memory"?

You need swapon_all in init scripts in order to run zRAM in fstab
[Samsung Galaxy Star] psych.half:
[MENTION=7017727]Dark Knight Begins[/MENTION]

Yup, that's why underclocking was removed. I've updated the section for frequency scaling accordingly.

[MENTION=6586967]doesntexits[/MENTION]

Thanks, I don't quite get the updater-script and init.rc stuffs.

Frontswap needs to be backported for 3.0.y.
[Samsung Galaxy Star] BatDroid:
I guess,

graphic quality decreased and encountering some lags after flashing r3.
[MENTION=5925208]psych.half[/MENTION]

can u find out?
[Samsung Galaxy Star] psych.half:
There decrease in graphic quality is a visual artifact.

The Trebuchet launcher in CM11-beta4 has Large Icons by default.

Looking at the icons some time, the whole screen feels resized.

The lags might be because cm11-beta4 overclocks by default at 1200Mhz.

Other than that I see no regressions.
[Samsung Galaxy Star] BatDroid:
now its ok.
[Samsung Galaxy Star] psych.half:
Oh, sorry didn;t see your edit.

Frontswap and cleancache are frontends, they hook into linux mm framework.

zcache is a backend that uses frontswap and clean cache to provide tmem.

Using zcache with both frontswap and cleancache, there is no need for zram.

And zcache was removed in 3.10 i guess, and rewritten for 3.11 maybe.

This post gives a overview of zram, zcache and zswap, form the user view.
[Samsung Galaxy Star] doesntexits:
[MENTION=5925208]psych.half[/MENTION]

Do you have any ideas about can't choose iosched? I added ROW and SIO but none of them can be chose, in Performance settings it returns to old setting (if before is CFQ then choose ROW or SIO would returns that)

Edit: What CPU voltage is needed for running at 1.5GHz? At 1.4GHz, 1,35mA is fine with us
[Samsung Galaxy Star] psych.half:
[MENTION=6586967]doesntexits[/MENTION]

Can you change with any other app? Also make sure you add iosched and stuffs from the same versioned kernel tree.

Every SoC is different, you will have to experiment and find out. You can add custom voltage to make testing easier, and limit on boot frequency.

And yeah, also check if CPU is running actually running at those frequencies by running a benchmark like Geekbench.
[Samsung Galaxy Star] psych.half:
R4 is up

Changes:

- zRAM is enabled by default, credits to [MENTION=6586967]doesntexits[/MENTION].

Only 90Mb? Well thats nearly half of directly usable RAM.

But we have 444Mb RAM? Nope, 256Mb is reserved and shared by GPU.

- Fixed and backported Zcache. It was not even being built. Anyways more free memory.

- Removed more debugging and kernel tracing, reduced kernel size.
[Samsung Galaxy Star] doesntexits:
None of any apps could change this. I've used Kernel Adiutor, RTB and No-frills but no different. cat'ing preferred iosched through sysfs just stuck

I can't find any kernel that is same linux version with mine, since they're rare, most are 3.x.0

And yeah, CPU actually runs on that speed. Antutu gives us 10k score, with 290 3D score (why the hell mint got 1k?)
[Samsung Galaxy Star] corphish:
Its hard to find ioscheds and governors ported to linux 3.10 kernel.

And I personally feel that there is no need of that (especially governors), the existing ones are decently well.

Anyway 2 ioscheds that are known working in 3.10

https://github.com/corphish/zapdos_lettuce/commit/9763455860de13c1a5f3d7d3d02f2c8e54619fb0

https://github.com/corphish/zapdos_lettuce/commit/1c49113f0c7681aebdca91a9251e4976e7135811

You could try your luck porting dynamic fsync (which uses PowerSuspend in 3.10), or powersuspend itself if its not there already.

And mint gets 1k 3D score in Antutu because of the GPU having render on a low res screen (240p)
[Samsung Galaxy Star] psych.half:
Uhh.. Nexus 6 has 3.10 kernel. You can pick stuffs from custom kernels from there

And where did you add io-schedulers. I dont see it on github.

Mention me in the commit there.

Because our device resolution is 240x320.

Don;t run Antutu benchmark for benchmarking.

Run something that gives you meaningful numbers.

Geekbench for CPU. GLBench for GPU.
[Samsung Galaxy Star] doesntexits:
Thanks for suggesting me

The kernel is still in testing stage. I'll commit it when changes are implemented

About benchmarking, well this is a good improvement from our stock. You know what: Our stock only has 7k compared with CM11 (9k with stock kernel)

Edit: You right again. At 1.5GHz, some positive numbers are here
[Samsung Galaxy Star] doesntexits:
Sorry, i didn't see your post

Those two ioscheds works with me. What is that fsync?
[Samsung Galaxy Star] psych.half:
R5 is up

Changes:

- Fixed reboot to recovery. It was a easy fix but tough to find.

- Increased 10Mb of RAM. Hwcomposer seems to work without the overlay buffer. It was failing to get the memory since r1. But it was still reserved.

So now we should have 454Mb of RAM.
[Samsung Galaxy Star] psych.half:
R5.1 or R6 ??

Next build is coming up with...

Thats far as we can go for now.. 466Mb.
[Samsung Galaxy Star] doesntexits:
So you have re-enabled SLAB right?

IDK if SLUB reserves mint's RAM but in vivalto3gvn, SLUB is default (as for 3.10), changing to SLAB doesn't increases any RAM (still 460MB)

But it's cool. What did you changed?

Edit: I think it's not related to kernel, but why our GPU is decreased to 312MHZ while its original is 500MHZ?
[Samsung Galaxy Star] psych.half:
Uhh no, that was a miscalculation on my part, SLUB only takes a 1-2 Kbytes more.

The previous memory drop was because of enabling memory cgroups for Low RAM Android.

This time I removed some reserved memory.

Might be because you are scaling cpu frequency, the clock divider for GPU changes. You will have to look in the board files.

And R6 is up.

466Mb of RAM.
[Samsung Galaxy Star] doesntexits:
You mean this line? :

CONFIG_CGROUPS=y

No no. What i meant was: the Mali GPU driver. I see the clock speed is declared as 312MHZ. Should i change it to default? 500MHZ seems too high with a single-core phone.

For now, porting ROW to 3.10 was a real PITA, because i got pissed off with this f*cking error:

a1@desktop:~/cm-11.0/kernel/custom/vivalto3gvn$ make
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CC block/blk-core.o
block/blk-core.c: In function 'blk_pm_put_request':
block/blk-core.c:1332:2: warning: left shift count >= width of type [enabled by default]
block/blk-core.c: In function 'blk_pm_peek_request':
block/blk-core.c:2139:6: warning: left shift count >= width of type [enabled by default]
block/blk-core.c: In function 'blk_dev_init':
block/blk-core.c:3254:2: error: call to '__compiletime_assert_3255' declared with attribute error: BUILD_BUG_ON failed: __REQ_NR_BITS > 8 * sizeof(((struct request *)0)->cmd_flags)
make[1]: *** [block/blk-core.o] Error 1
make: *** [block] Error 2

What should i do?

One more Q: Disabling memory cgroups affects anything else?
[Samsung Galaxy Star] psych.half:
467Mb RAM

I managed to unreserve yet another 1Mb.

Don't know I should be just uploading this one.
[Samsung Galaxy Star] BatDroid:
see if u can free up more and upload this 1 please
[Samsung Galaxy Star] psych.half:
Uhh r6 already has 466Mb of RAM. I will upload r7 with some other stuffs and 1Mb extra RAM. Thats seems the end of it,

However, I made a test build without cgroups. And now RAM should be 482Mb,,

Keep in mind this actually degrades memory management, And it's worse if you are running a lot of apps.

Anyways, the zip is attached below. If anyone wants to test and report.
[Samsung Galaxy Star] BatDroid:
so,

u telling that removing cgroups affects performance??

1more Q

If I set the 1ghz powersave runs on 500mhz voltage.

will it cause any problem?
[Samsung Galaxy Star] psych.half:
Well, cgroups (control groups) can limit the system resources, ( ram, cpu) for a group of processes.

Android can use that to manage apps, For example it can limit background apps to not use 100%CPU. And currently visible apps can get more memory than others. It can select which app to swap based on activity.

If you don't have multiple apps running in background, and are aware of which apps you install.. that is if you can manage the apps yourself.. you wouldn't need cgroups.

But really, Android should be managing these stuffs.

Yeah, sometimes the voltages change don't register immidiately. They don't cause any major issues.
[Samsung Galaxy Star] BatDroid:
A million thanks
[Samsung Galaxy Star] RJinxed:
since no one is reporting about this ... am I the only one who can't set the frequency higher than 1300mhz?
[Samsung Galaxy Star] BatDroid:
well..

I don't wanna fry my phone.

1300 ok for me.
[Samsung Galaxy Star] BatDroid:
a problem

[MENTION=5925208]psych.half[/MENTION]

high ram usage and so do the battery.

•0ƒ5
[Samsung Galaxy Star] psych.half:
Well if you are using the no-cg version. You will have to manage the resources yourself.

See if any app, is causing high ram and cpu, check wakelocks.

Without any apps open, I get 240Mb of RAM usage, 10-20% of cpu, with some services running in the background. Deep sleep kicks off after a minute of screen off.

So I don;t see any problem on the kernel side.

And guys, I cannot work on the kernel anymore. I might repack the boot.img when a final build of CM11 is released.

So from now on, bugs report will be ignored. And some things will likely stay broken.
[Samsung Galaxy Star] BatDroid:
I heard somewhere zram by default causes some battery issue.

So,it it related?

And Im using r4, not no cg.
[Samsung Galaxy Star] RJinxed:
oh that's bad. but you still made an amazing job, thanks for that. anyway, are you gonna work on a kernel for cm12.1?
[Samsung Galaxy Star] BatDroid:
I'm gonna cry.

:( :(
[Samsung Galaxy Star] doesntexits:
[MENTION=5925208]psych.half[/MENTION]

Did your craptop broke, or you've lost motivation with the kernel?

Feeling sad when a legend goes out
[Samsung Galaxy Star] corphish:
I have seen so many great devs for many popular phones, but [MENTION=5925208]psych.half[/MENTION] is somebody who is totally of another level, I don't think I have seen anyone other than psych.half with such deep knowledge in kernel, actually in hardware.

He has rescued us earlier and again this time, fixing various stuff and making our kernel future proof. Had it not been him, we would still be seeing bootloops in cm-12.1

I wish you could stay with us.
[Samsung Galaxy Star] psych.half:
Holy fhacking shiiit..

I just compiled the kernel on the device itself. !!!

Takes over 3 hours tho.. Not bad considering the cheap SDCard I put there, and ofcourse the cheap phone itself,,

I might be able to work on it, if I ssh over from my main phone.. But editing files gonna be tough..

Let's see how this goes

Thanks everyone, for your support.. it made me think again, and this crazy hack poped in my head,,
[Samsung Galaxy Star] BatDroid:
bro u rocks..

?
[Samsung Galaxy Star] doesntexits:
Well, his craptop is broken than he give it up i guess

Keep it up. But.... how the hell you compile with GCC, make or unpack boot.img in an Android phone [MENTION=5925208]psych.half[/MENTION] ?
[Samsung Galaxy Star] hasanSY:
thenkes for u all dev
[Samsung Galaxy Star] hasanSY:
iam using r6 any app to cntrol thr cpu full
[Samsung Galaxy Star] BatDroid:
what?

get set cpu.

easy user friendly interface
[Samsung Galaxy Star] hasanSY:
i have 3C_Toolbox_Pro_v1.6.12 is it good

---------- Post added at 10:27 PM ---------- Previous post was at 10:01 PM ----------

i tryed ashelt nitro it dont opend? what shod i do?
[Samsung Galaxy Star] BatDroid:
don't talk about games here.

asphalt nitro has gl compatibility check system and will crash everytime after open.
[Samsung Galaxy Star] hasanSY:
sory for that but whatupot the 3ctoolbox?
[Samsung Galaxy Star] BatDroid:
I said to use setcpu.apk.

its easiest to use.

but u r talking about 3c

3c is for advance user's.
[Samsung Galaxy Star] hasanSY:
yes but itist full cntrol the phone 3c is but thenks for advice
[Samsung Galaxy Star] psych.half:
Has anyone noticed the battery bug?

I think it's same like in a Zapdos.

After reboot, battery remaining value drops drastically, but will increase back eventually to normal, its a glitch, not a bug.

Also, the charger doesnt show up sometimes, even tho it's charging.
[Samsung Galaxy Star] BatDroid:
charger thing never happened.

but I saw d battery glitch.
[Samsung Galaxy Star] corphish:
That popped up when I enabled the then cpu freq scaling, but I thought it went away with updated battery drivers
[Samsung Galaxy Star] hasanSY:
it is hapninig for me on booth krnels but hi thanks for thehard whork on this smurf:)
[Samsung Galaxy Star] psych.half:
R7 is up.

This just adds compatibility with CM-11 beta4-r2 and 1MiB of more RAM than R6.
[Samsung Galaxy Star] dabakale:
Request

Please make kernel with over clock feature for stock ROM if possible
[Samsung Galaxy Star] BatDroid:
nobody use stock now
[Samsung Galaxy Star] psych.half:
For stock ROMs

Okay, I had some time so I compiled one for stock.

This is just Zapdos 5.0 with cpufreq i.e overclock added and compiled with GCC-5.3.

Please do not report bugs for this one to either [MENTION=5822936]corphish[/MENTION] or me.

This was tested and reported to be working on stock based ROM's.

Thank the testers: [MENTION=7277635]dabakale[/MENTION] and [MENTION=7017727]Dark Knight Begins[/MENTION]

The zip file is attached below. Make sure you flash this after the ROM.

As the updater-script sets up some stuffs in /system.

No further updates will be made.
[Samsung Galaxy Star] BatDroid:
gonna try now..

is the freq driver edited only?

---------- Post added at 09:49 PM ---------- Previous post was at 08:53 PM ----------

@psych.half

remove it.

dint boot
[Samsung Galaxy Star] corphish:
Bootloop?

He feared it wouldnt get past bootlogo. Well if it did, no reason for bootloop

Are you sure you flashed it over stock?
[Samsung Galaxy Star] BatDroid:
i mean it didn't passed the bootlogo.

I flashed over stock deodex and did a superclean install.
[Samsung Galaxy Star] dabakale:
Perfectly working no problem in this kernel it booted successfully

---------- Post added at 03:16 AM ---------- Previous post was at 03:15 AM ----------

Thanks bro for your kernel

---------- Post added at 03:20 AM ---------- Previous post was at 03:16 AM ----------

CPU frequency also working like charm like in cm 11 very good job bro [MENTION=5925208]psych.half[/MENTION]. but screen contrast is bit high.

I m unable to take screen shot to upload evidence
[Samsung Galaxy Star] dabakale:
Here ss
[Samsung Galaxy Star] BatDroid:
what??

no..

prerooted??

How the hell it worked?

That's weird..

can u post a ss of cpu freq scale??
[Samsung Galaxy Star] dabakale:
Here u go ss
[Samsung Galaxy Star] rag555:
Thanks working perfectly:thumbup:
[Samsung Galaxy Star] BatDroid:
Two major bugs

[MENTION=5925208]psych.half[/MENTION]

ur kernel is okay.
[MENTION=5822936]corphish[/MENTION]

ur twrp 3 fails to install stock based 4.1.2 roms(slim,stock deo)
[MENTION=6158043]Dreamstar[/MENTION]

ur philz touch fails to mount ext Sd when flashing aroma fm v2.00b7 from recovery..
[Samsung Galaxy Star] dabakale:
Kernel is OK

Twrp is also OK I m using that only [MENTION=7017727]Dark Knight Begins[/MENTION] while flashing ROM if it takes less time(about 10 to 15 seconds) u should assume that ROM has not been flashed and u should flash again then it will be ok it will take 3to 4minutes.
[Samsung Galaxy Star] BatDroid:
that's what I'm talking about..

its a bug
[Samsung Galaxy Star] psych.half:
Well, since it's booting, I will edit my previous post.

And also add that, kernel should be flashed after ROM.

Like I said this is just Zapdos with my cpufreq driver. So the bugs/glitches are same, which won't be fixed.

I'm gonna be restarting from scratch for CM-12. I'm also looking for ways to make kernel comptabile with all CM roms, i.e 10.1, 11, 12. As, I belive the only thing that would need changing is the ramdisk.

However I wont work on stock kernel, that would need a seperate tree, as they are not compatible. And I dont really think I wanna maintain for it anyway.

Actually, I just compiled this one because of... nevermind.
[Samsung Galaxy Star] BatDroid:
because of..

had a little time

good luck for 10.1 and 12
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

I don't know how much u know about it.

CAN U MAKE A CM KERNEL WITH MONITOR MODE SUPPORT FOR OUR PHONE?

IT SEEMS AN INTERESTING THING FOR ME.

ATLEAST GIVE ME A REPLY IF U HAVE TIME AND SEE THIS.
[Samsung Galaxy Star] RJinxed:
[MENTION=5925208]psych.half[/MENTION] do you have any plans regarding to the camera?
[Samsung Galaxy Star] RJinxed:
Is the camera still broken?