yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Star] psych.half:
Well, our device uses shared memory for GPU which is capped at 256MiB, the HighTotal in Memory Information of Kernel Aduitor

But due to the way high memory works, it becomes 240 some MiB..

Some big games close while loading because of this limitation.

When GPU is not doing anything the memory can be used by other apps but when GPU demands memory, it is freed by unmapping the high memory, which will cause memory reclaim and processes get transfeerred to low memory.

This leads to flushing of buffers, swapping out

processes, which can lead to thrashing, a state where CPU is constantly trying to free memory, it cant do anything else..

It was due to enabling cgroups the memory drop to 444MiB happened, but it should rather help manage memory

It can be that, zRAM is turned by default, since swapping happens on zRAM, which actually takes memory, leading to even more pressure,

Or somewhere the logic makes assumption that total memory is 459MiB, so somethings are late to react,

I know spreadtrum has modified Mali GPU drivers with whatever their memory optimization..

The whole memory management in Linux is quite complex, and diagnosing it's issues are very tough..

So if disabling camera works , I will try to find other ways to disable memory, I think cgroups can be disabled at boot time,

Also, I'm not sure if hwoverlay really needs 10MiB, I never saw it go upto 356kiB .

And camera never takes more RAM than 6MiB. but video recording and camera rotation doesnt work on CM-11.

So anyone on stock/cm10.1 ROM, wanna help here?

And the test build also has MTP fixes so anyone can test that.
[Samsung Galaxy Star] dabakale:
[MENTION=5925208]psych.half[/MENTION]

Flashed test build on stock

But black screen issue after rebooting the phone
[Samsung Galaxy Star] doesntexits:
[MENTION=5925208]psych.half[/MENTION]

How can you split between GPU and normal memory?

I mean using highmem, but it doesn't gotta work, since our RAM is only 512MB. VMSPLIT only work with 1GB RAM
[Samsung Galaxy Star] psych.half:
[MENTION=7277635]dabakale[/MENTION]

It's because it has overlay removed, I think stock hwcomposer just dies if it cannot get overlay memory.

[MENTION=6586967]doesntexits[/MENTION]

Well, it's stock configuration, basically sprd limits the RAM to ( Total - 256MiB) then later add the 256MiB in different zone..
[Samsung Galaxy Star] BatDroid:
I m wondering!

why u deleted r1 to r8?
[Samsung Galaxy Star] psych.half:
Update:

Downloads are now moved to AndroidFileHost, which our device got approved and added as list of devices.

The second post will now only have the link to the latest release with changelog. Like all stuffs on XDA.

All downloads of the kernel will be available this folder.

Legcacy downloads (prior r8) can be still found in the legacy folder here.

The zip file prefix has changed to kernel-mint2g-trilogy-.. since it now boots on 3 roms..

Also underclocking will be initially disabled, if you want to enable it anyway.

echo 1 > /sys/class/misc/freqctl/cl_ucS
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

dreamstar made cm10.2

anything u wanna do for it?
[Samsung Galaxy Star] doesntexits:
Umm... which one in defconfig?

Could you tell me so i can compare it with my kernel tree?
[Samsung Galaxy Star] psych.half:
R10 is up

Downloads and changelog in the second post

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

You mean add support for cm-10.2 on the kernel?

[MENTION=6586967]doesntexits[/MENTION]

I meant implementation. not defconfig

Just do a cat /proc/meminfo

If you see HighTotal there, then your device has highmem..
[Samsung Galaxy Star] doesntexits:
Hmm... I've tried enabling highmem, but HighTotal and HighFree are zeroes, since our RAM is only 512MB

Btw, your implementation i guess it's in "__malidrv_build_info" right?
[Samsung Galaxy Star] BatDroid:
yeah 10.2
[MENTION=5925208]psych.half[/MENTION]
[Samsung Galaxy Star] medved197938:
I do not know how you do it, but when I try to sit at the computer, I give an ultimatum (wife) or I or phone vybiray.Vy best, keep it up! Without your kernel development, this smart nothing))))
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

Why cm 11 eats up far more than 10.1 when I install same apps ,same kernel?
[Samsung Galaxy Star] RJinxed:
Is GL to SD working on cm10.1? Have you played games with it?
[Samsung Galaxy Star] BatDroid:
i use xinternal sd instead
[Samsung Galaxy Star] BatDroid:
something interesting...

I flashed this kernel on 10.1 and video playing is broken.

Random reboots happening when opening some app.

ex-Fifa 14

And there's no problem with dalvik vm props.

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

Any ideas??

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

app installation broken in 10.1 too(r10)
[Samsung Galaxy Star] dabakale:
[MENTION=5925208]psych.half[/MENTION]

please fix 1400 mhz

if possible
[Samsung Galaxy Star] BatDroid:
Video playing, app installation is broken.

These are the major things that needs a fix.

Btw,why do u need 1400mhz?

It causes some voltage issue and crashes system.

Random reboot occurs sometimes too.

If u r playing games,

There won't b any difference b2in 1300 and 1400mhz.

Better delete bloatwares, use greenify and keep 1200(max) 1000(min) (smartassv2).
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

can't find r9 in AFH.

R10 has two major bug on cm10 and stock.

vedio playing and app installation.

[MENTION=7277635]dabakale[/MENTION]

u saw these bugs
[MENTION=6971798]medved197938[/MENTION]
[Samsung Galaxy Star] dabakale:
[MENTION=7017727]Dark Knight Begins[/MENTION]

r10 has no bugs in stock

app installation and video playing is also ok

i didn't find any bug

off topic

my friend owns galaxy pocket neo

stock cpu freq is 850 mhz

but he is able to overclock upto 1.7ghz

why not our device
[Samsung Galaxy Star] BatDroid:
is that a spreadtrum phone?
[Samsung Galaxy Star] dabakale:
no it is broadcom chipset
[Samsung Galaxy Star] BatDroid:
U cant compare them.

Spreadtrum has a highly broken cpu driver.

I used to watch conversations between psych.half and corphish and learned how hard ph worked to bring back cpu freqs for us.

Btw, u tried r10 on cm10??

is those two bug exists there?
[Samsung Galaxy Star] doesntexits:
Actually to say, not only CPUfreq driver, but also regulator

mint can reach 1,5GHz at 900mV voltage, so how the hell it can stay? Also, to reach the clock speed further than 1,5GHz is a huge problem, because the phone will reboots straight to recovery because of not enough voltage. Also, overlocking is not recommended, as it'll cause CPU overheat or damage the battery
[Samsung Galaxy Star] dabakale:
i dont use cm10.1

i m using r10 on cm11 right now video playing has some glitches.

and i tested r10 on stock also there is no problem it plays video smoothly

btw is there any cm 10.2 for our device

---------- Post added at 05:13 AM ---------- Previous post was at 05:07 AM ----------

@dark night begins

how get rid of this high contrast/brightness bug on cm11
[Samsung Galaxy Star] BatDroid:
I simply use darker.apk and give its notification priority to highest.

And there was a 10.2.

unfortunately Dreamstar damaged his HD and couldn't upload it.

:eek:

---------- Post added at 12:15 PM ---------- Previous post was at 12:13 PM ----------

[MENTION=7277635]dabakale[/MENTION]

I guess now u got it
[Samsung Galaxy Star] dabakale:
[MENTION=7017727]Dark Knight Begins[/MENTION]

ohh now i got it

and i want a best theme for cm 11

if u know please provide the link or name of theme
[Samsung Galaxy Star] BatDroid:
The bests

1)Marshmallow cm11(1$)

2)OneL Gray

3)OneL Lolipop

4)Materiyo 10

5)Ideal Theme dark

6)Cyanorangen Cobalt

7)Circle

8)Touchwiz 5
[Samsung Galaxy Star] RJinxed:
[MENTION=5925208]psych.half[/MENTION] can I request something?

please add cgroups in cm11 beta 3's kernel. dont add the frequency scaling. just the cgroups. it's fine if the ram is reduced. thank you in advance
[Samsung Galaxy Star] medved197938:
I use cm 10.1,kernel r10 + Skynet, no problem)))

http://xdaforums.com/android/software-hacking/android-l-booster-1-soon-t3030796
[Samsung Galaxy Star] BatDroid:
Control groups are enabled already.

Go to that link and find the suitable version.

I don't think there's anything wrong with r10 in cm11.

There's 444mb ram and he didn't disabled c.g there.

---------- Post added at 08:58 PM ---------- Previous post was at 08:56 PM ----------

me too using that mode of k1ks.

The most active development ever after Lspeed.

I cant play videos on my phone with this kernel in cm10.

(unnecessary reboots happens)

What about u?

Can u play videos?
[Samsung Galaxy Star] RJinxed:
No, it's not. the ram in beta 3 is still 459mb, not 444mb.
[Samsung Galaxy Star] BatDroid:
coz They put stock kernel there,no change.

U simply can download r2 and extras and flash it.
[Samsung Galaxy Star] RJinxed:
I dont think you get my point. Can you just ignore me and ill do the same?

---------- Post added at 03:07 PM ---------- Previous post was at 03:06 PM ----------

I'm talking about CM11 BETA 3 kernel.
[Samsung Galaxy Star] BatDroid:
ok.

can u change the cpu freq in beta 3 kernel?
[Samsung Galaxy Star] RJinxed:
no.
[Samsung Galaxy Star] BatDroid:
That means they didn't do anything to beta 3's kernel.

Its completely like stock.

---------- Post added at 09:48 PM ---------- Previous post was at 09:34 PM ----------

@medved197938

Can u play videos on cm10+r10?
[Samsung Galaxy Star] medved197938:
Yes.
[Samsung Galaxy Star] BatDroid:
Don't know what happened with me :(

right after flashing r10,random reboots while playing video.

How u play video?

with build in player or any extra players?

[MENTION=6586967]doesntexits[/MENTION]s

bro,what can cause this issue?

reboots while opening a video by any player.
[Samsung Galaxy Star] RJinxed:
EXACTLY, and I wanted CGROUPS to be added in that kernel.

---------- Post added at 04:16 PM ---------- Previous post was at 04:15 PM ----------

THAT'S MY POINT. BETA 3 is like stock right? SO I WANTED CGROUPS BE ADDED IN IT. Dude, just don't talk if you can't get what im trying to say.
[Samsung Galaxy Star] medved197938:
reproduces and built-in player and mx player.
[Samsung Galaxy Star] BatDroid:
I cant play videos with any of those.

Just keeps rebooting.

Can u add ur build.prop and default.prop here.

I just wanna check
[Samsung Galaxy Star] medved197938:
catch
[Samsung Galaxy Star] BatDroid:
just hitted 1st thanks for u
[Samsung Galaxy Star] BatDroid:
still same problem.

which recovery u used to flash cm10 and r10 kernel??
[Samsung Galaxy Star] medved197938:
Philz.
[Samsung Galaxy Star] BatDroid:
liverpack log said can't pack boot.img on philz

really needed psych's help here
[Samsung Galaxy Star] medved197938:
Here is my log
[Samsung Galaxy Star] BatDroid:
uh oh!

edit : still same
[Samsung Galaxy Star] doesntexits:
cgroups is just another memory managing features of Linux for Android. It does better job than Android's LMK

---------- Post added at 12:50 PM ---------- Previous post was at 12:49 PM ----------

Well, maybe out of memory happends, because of ION driver. Ask [MENTION=5925208]psych.half[/MENTION] for this
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

phone keeps rebooting after flashing this kernel when I play a video.

can u tell?
[Samsung Galaxy Star] RJinxed:
[MENTION=5925208]psych.half[/MENTION] yeah, device reboots when playing a video.
[Samsung Galaxy Star] BatDroid:
he knows..

I think he's busy too much and it will b fixed when he will have time.
[Samsung Galaxy Star] BatDroid:
[MENTION=6749735]RJinxed[/MENTION]

[MENTION=6586967]doesntexits[/MENTION]

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

Found out the real problem and a little solution..

Unexpected reboots while trying to play a video was causing for cfq scheduler only.

Changing the scheduler solved the problem..

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

I'm truly sorry to bother u bro.

#kernel_is_okay :)
[Samsung Galaxy Star] RJinxed:
holy mackerel dude, it works! thanks so much. I havent been using this kernel since I discovered that bug (cause Im a youtube lover) but now, it's totally stable. thanks alot :good::good::good:
[Samsung Galaxy Star] BatDroid:
no credit to me.

psych.half told me, " its completely like stock "

so,

I just tried changing the scheduler :)
[Samsung Galaxy Star] RJinxed:
[MENTION=5925208]psych.half[/MENTION] can I request something? Please modify this kernel, do every tweak youve done to r10 like zram, cgroups etc...

EXCEPT

Frequency scaling.

It's because I blame the cpu freq for the game freezes (remember that? Lol). I tried using r10 then deleted the cpu-freq module but it still freezes. Thank you in advance

P.s. this is cm11b3 kernel. It's the last kernel you've released before cpu freq was introduced
[Samsung Galaxy Star] BatDroid:
It actually never happened to me.

I am playing fifa 14 and gta sa..

Without any problem.

Did u installed any extra tweak?

(just wanna know)..

And I don't think p.s will do it.

He sent me a message when I told about reboot bug and said he is too busy.

A question --

why dont it work like stock after deleting cpu_freq(p.s told its like stock except this f.s)?
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

If u have time please mod the disc and it compatible with cm12.
[Samsung Galaxy Star] medved197938:
Psych.half

Please add 1400.1500 MHz frequency, I think it will work if you increase the voltage to the CPU 1000mv
[Samsung Galaxy Star] Stanwar:
Guys, does this kernel works on stock rom?
[Samsung Galaxy Star] BatDroid:
there is 1 for stock.

check page 10 to 23

+This r10 for stock too.

But has a weird video playing bug!
[Samsung Galaxy Star] Stanwar:
Ugh, the problem seem to persist even after changing scheduler. Videos works fine from the gallery but when I try to play a video from Facebook Lite app, the device restart.
[Samsung Galaxy Star] BatDroid:
disable camera from recovery and change the scheduler 2 zen.
[Samsung Galaxy Star] Stanwar:
Hello again, I couldn't manage to fix video playing reboots something worth mentioning that the reboots only happens when I play videos online (for example videos from Facebook lite or from the browser) while when I use MX player on SW mode he plays video normally and when I switch to HW it directly reboots.

I'm currently facing a big issue. I couldn't switch back to my old kernel (zapdos) every time I flash it I get a boot loop and this never happened before I flash the kernel in this thread. Second problem is when I set a custom CPU frequency the device becomes very unstable and I usually get a reboot after 10 minutes. (I never faced the last problem in the first days in my use of this kernel)

Anyway, great work you did here I appreciate it but please work on a fix for the reboots ASAP.
[Samsung Galaxy Star] BatDroid:
Try reflashing the rom.

Do a clean install.

wipe everything except internal Sd.

If u r on cm10 that

should help.

If u r on stock,try changing the IO to zen instead of cfq.

That's not a complete solution, but worth a try.

I fixed my reboot problem by doing this.

And P.H won't reply to anyone.

He is too busy :(
[Samsung Galaxy Star] SayanthD:
[MENTION=5925208]psych.half[/MENTION] Can you please add frandom.ko module support for this kernel?

I read that it will increase the performance by increasing entropy :/
[Samsung Galaxy Star] RJinxed:
[MENTION=5925208]psych.half[/MENTION] will you ever fix the reboot when playing videos issue? I cant let go of this kernel, it's a masterpiece. constant 30 fps in modern combat 4. regular kernels are lagging between 10 - 25 fps
[Samsung Galaxy Star] RJinxed:
[MENTION=5925208]psych.half[/MENTION]

Remember the test build r9 kernel that has hw overlay removed? I tried it once more and I realized it doesn't have the reboot-while-playing-videos bug.

Just a thought (if you're gonna make another build anytime soon).
[Samsung Galaxy Star] BatDroid:
u have seeder and Lspeed app for that.

---------- Post added at 04:05 AM ---------- Previous post was at 04:03 AM ----------

Do u have the r9 now?

Can u share it?(The one without hw overlay)
[Samsung Galaxy Star] RJinxed:
[MENTION=5689056]LahKeda[/MENTION] [MENTION=5822936]corphish[/MENTION] [MENTION=5925208]psych.half[/MENTION]

can someone please make an r10 WITHOUT cpu freq and io schedulers

cause I monitored each kernel through gaming and here's what i found

stock kernel : some games tend to force close (like gta, tuber simulator)

r10: every game works but has screen not responding issue

r10 with cpufreq-sc8810.ko DELETED: every game works and screen not responding issue appears less frequent

r8 without io scheduler and cpufreq: completely perfect, no bugs except MTP

sorry, i know how to delete cpufreq-sc1880 BUT NOT IO SCHEDULERS since I dunno how to recompile
[Samsung Galaxy Star] BatDroid:
check my post in q/a section and corphish's reply

I hope u will b able to solve it :)
[Samsung Galaxy Star] BatDroid:
That bug wasn't fixed at all,was it?

A moment later after phone went to deepsleep, it poped up.
[Samsung Galaxy Star] dabakale:
yes it didn't go to deep sleep for a minimum of nearly 2 hours when i was testing this kernel.

but in next reboot the bug poped up.
[Samsung Galaxy Star] BatDroid:
Then only 1 solution --

use stock roms :(
[Samsung Galaxy Star] mehul pandya:
Which recovery supports this kernel ?
[Samsung Galaxy Star] corphish:
Nice work!

Anyway, here I found some more broken stuff

-You probably forgot to fix MTP

-I saw many governors, but they don't stick?

-System reboots even when I hit reboot to recovery :/

-And the CPUFreq module has 1000Mhz min and max speed by default? You could have set min to 600Mhz. Anyway since governor is performance by default, I never saw CPU clocking anyother freq other than 1000Mhz (with the add-on zip) :/ Should I try the add-on in other kernel?

Anyway, there pretty nice customizations that user can do.

Now I flash CM12.1, will try cpufreq module there if it loads.
[Samsung Galaxy Star] BatDroid:
Damn!

After reading the whole post I have nothing to comment.

Anyway, thanks will be a too small word after what u did.

God bless u.
[Samsung Galaxy Star] LehKeda:
I really don't know what to say but thank you !
[Samsung Galaxy Star] psych.half:
Ah, sorry guys I made a little mistake while refactoring. New cpufreq build in extra downloads

[MENTION=5822936]corphish[/MENTION]

derp,. https://github.com/mint2g/kernel_mo...mmit/1e9a2b4cf8052f701264f69e7ea51ae40c4d7246

And you need to build the module with same kernel config the one you wanna run on.

'The reason I seperated cpufreq driver from kernel.. is so I can give quick fixes to it liks this one right now.. the driver is still in works

well, about the default frequencies.. i already said it's user choice to whether over or underclock.. they can use set to boot in kernel apps if they want it applied automatically

besides changing frequency at early bootup will make boot times longer.. after android has booted, the user default values will be applied by kernel app...

about mtp, i do have your commit applied..

yeah.. i just noticed the reboot to recovery issue., have to look at it.,
[Samsung Galaxy Star] RJinxed:
Awesome. so far so good, no bugs experienced yet. kinda hard to set the frequencies though but still works. gaming with cpu set to 1.2ghz is smooth enough. Seriously, great job. :good:
[Samsung Galaxy Star] corphish:
The cpufreq r2 is fine..cpufreq is real now..its great..

I use intelliactive governor with 1200Mhz frequency, and CPU would get into deep sleep when it should, and would stick to min freq in general (that's due to governor).

Finally our mint has cpufreq scaling like other android phones.

Also, some governors do stick, some doesnt.

Great work
[Samsung Galaxy Star] BatDroid:
My battery greatly improved.

powersave

max 600

min 600

u started with zd and p.h completed it.

hats off ?
[Samsung Galaxy Star] psych.half:
WARNING!! DO NOT SET FREQUENCY TO 1400Mhz in R2

I forgot to add voltage step for it,, Your device will go shiit crazy until it powers off..

That said the next build should fix that anf allow you to set custom voltages. i.e over and under volt

Be very very careful with this one..

[MENTION=5822936]corphish[/MENTION] Can you tell me which governors... it's probably due to copy pasting them.. they need to be tweaked for our device i guess
[Samsung Galaxy Star] corphish:
Not working governors:

lulzactive

virtuous

Smartassv2

And the userspace CPU voltage control will be there in the cpufreq module or separately in the kernel?
[Samsung Galaxy Star] psych.half:
New build is up with volatge control and updated f2fs driver

It's version R3 cause I messed up the versioning with R2-bufix... should have been R1-bugfix, oh well

This also fixes 1400Mhz OC..

For f2fs we'll need support in ROM and recovery

For volatge control you can go up and down,, 25mV at a time.. playing with voltages is risky.. so unless you know what youre doing.. don't

[MENTION=5822936]corphish[/MENTION] It needs both change in kernel and driver.. .. I had to implement my own for the kernel... https://github.com/halfpsych/kernel_mint2g/commit/ed1d1916f0d50b25185a1699d5fc7eecf3f5ca15

And can you do a build of TWRP with f2fs support., let's see if going f2fs has any improvement in this cheap eMMC.
[Samsung Galaxy Star] BatDroid:
interactive and ondemandX seems not doing any overclock.
[Samsung Galaxy Star] andii_nr:
please ss swapram using diskinfo.

thanks
[Samsung Galaxy Star] BatDroid:
flashed the r3 update and r3 extras.

but cpu not downcloclocking

keeps on 1ghz always

edit: Had to reflash the rom

now ok
[Samsung Galaxy Star] psych.half:
Guys there is a bug when loading cpufreq at boot in R3.

I'm taking down R3 at the moment, If you already installed it.. Revert back

Thanks [MENTION=7017727]Dark Knight Begins[/MENTION] for reporting,.
[Samsung Galaxy Star] andii_nr:
here swap ?
[Samsung Galaxy Star] psych.half:
Governors should be fixed now.. I'm still looking into frequency at boot..

[MENTION=7017727]Dark Knight Begins[/MENTION] interactive should be working, i have tweaked ondemandX, let's see if it works this time.,

[MENTION=6532371]andii_nr[/MENTION] You mean zRAM? Yeah this kernel has zRAM, infact I have updated zRAM to 3.4 which uses its own allocation,, and better compression,.

I don't think you should go that high with zRAM tho,, anything over 90Mb and you will leave no memory for the GPU,,,
[Samsung Galaxy Star] BatDroid:
[MENTION=5925208]psych.half[/MENTION]

everytime I wanna revert,I had to flash the whole rom.

why??

Is there anyway to go back to 1st one from R3?
[Samsung Galaxy Star] psych.half:
You only have to flash the whole ROM if you wanna go back to

shipped CM11 kernel.

You can switch between the builds of this kernel without flashing,,

just make sure you flash the correct extras. if you want freq scaling,,

I will reupload the extras and correctly name it.. to avoid confusion,, So next build is gonna be R2,,

Speaking of builds, I need to think a name for this kernel,,
[Samsung Galaxy Star] BatDroid:
That's what I was gonna say.

Still confused with the extras.
[Samsung Galaxy Star] psych.half:
Okay new versioning scheme,,

If you're flashing r1, flash the extra of same version i,e r1.

If there is extras like r1.1, r1.2 flash the latest one,, i.e r1.2 which is a bug fix,,

The extra download is there because the cpufreq driver is written by me. And it's still in development,, So theres gonna be some bugs here and there..

Seperating the driver from kernel allows me to test it easily, and push major bugfixes quickly...

You can compile a kernel in 5-10mins on a good enough PC, but for me it takes 1hr 45mins..,
[Samsung Galaxy Star] BatDroid:
so,I guess u have a very good pc 7¨2

When the drivers will be okay,put them on kernel and make a flashable 1.

r3 was almost ok except set on boot.

So,after fixing it it will be stable.

I don't see any bug else.

Coz,I don't use governors but ondemand,powersave and performance.
[Samsung Galaxy Star] HJain13:
SOS Kernel?

How about SOS kernel?

"Star on Steroids" :D

Sounds good to me