yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Original Android Development] habylab:
Phew, been having crazy lags since it had been enabled.
[Galaxy S III Original Android Development] orangerot.:
AW: [Kernel][23/03] Perseus

That's really strange with those lags.. There's a time where the phone runs perfectly smooth and even faster than before but then for some seconds some crazy lags appear and the phone freezes for some seconds.. After waiting about 5-10 seconds everything works perfectly again..

Anyone has an explanation for this?
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Mine has been fine since disabling zram.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] Tokarin:
Re: [Kernel][23/03] Perseus

Sudden death fix causes random lags, I read it somewhere...
[Galaxy S III Original Android Development] rickoslyder:
Bump.
[Galaxy S III Original Android Development] tsubus:
Re: [Kernel][23/03] Perseus

Haven't d had any lag with zram enabled. Been running it since 34.1 was released, I even increased the diskspace to 300MB
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

I don't think lags are related to zram
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

Yeah unless you use a hard swap on the internal memory cache partition then you will get these lags because even a class 10 SD hard swap will be too slow... try using cfq io schedule on your external SD and 2048 read ahead via stweaks if using hard swap

---------- Post added at 01:38 AM ---------- Previous post was at 01:35 AM ----------

Lol on the pic!!... indeed there is a theory going to do with the SD patch from Samsung causing freezes to prevent death... I don't subscribe to this theory however
[Galaxy S III Original Android Development] csutikisx:
Re: [Kernel][23/03] Perseus

After flashing 34.1 strange problems appeared for me. I had random freezes random app fcs (like keyboard,launcher etc.) and if I started to play with a hd game the screen had started being like I would play with an old school DOS game. Pixels became much more bigger. (Sorry I cant express myself on better way) Using 33.2 is not causing this problem for me and I use everything on stock except cpu overlock (up to 1.5 ghz) gpu overclock (up to 640mhz) and volume boost. What could be wrong?
[Galaxy S III Original Android Development] kasperok:
If you want to use zram with no lag, try to increase zram disksize to 500mb.

That worked form me. Otherwise.. just disable zram.

Bye
[Galaxy S III Original Android Development] orangerot.:
Thanks.. How can I exactly do it.?(Sorry, I hadn't much time the last few days so I'm not really into this zram stuff..)
[Galaxy S III Original Android Development] jinosong:
Re: [Kernel][23/03] Perseus

Surely there must be a better method for handling ZRam. I cannot properly follow anyone's instructions on custom ZRam settings.
[Galaxy S III Original Android Development] tolis626:
Run this in a terminal or paste it in an init.d script :

swapoff /dev/block/zram0
echo 1 > /sys/block/zram0/reset
echo 524288000 > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

Whatever method you choose,give it some time.The swapoff command takes a while to complete,probably because it moves everything back to RAM or something(Flush?). :)

EDIT : How is the zRAM compression ratio adjusted?It seems like it fluctuates between 31% and 37% depending on the situtation...
[Galaxy S III Original Android Development] Satch09:
I listen to music when I drive and noticed the outside noise drowning out the clarity of my music. I was wondering if it would be possible to implement noise cancellation where the phone listens to ambient noise through the wired headphone mic or the phones mic (if no mic on headphones) , inverts the phase and feeds it back into the headphones.

Possible? I think this would be great!
[Galaxy S III Original Android Development] habylab:
Source code update 9: http://opensource.samsung.com/reception/receptionSub.do?method=search&searchValue=I9300

That would take a LOT of work!
[Galaxy S III Original Android Development] psyntific:
Re: [Kernel][23/03] Perseus

Can someone help me increase the zram size plz.. I've tried the scripts but they don't work.. plz take a look at the attachment
[Galaxy S III Original Android Development] woof123:
HDR

Hi guys i want a little help if possible.If i understood right the camera now can do HDR on the fly for pictures and for video.For the video i think its working...what i see on my screen when i record its also in the video.But for some reasson its not present in the pics,they are alwasy alot darker than what i see on screen.Help me out if you can pls.

Thsi is what i have enabled in STweaks.

Register hook

Master sequence

Toggle HDR for Video and camera,and factory settings.

Thanks for the help,i tried to understand by reading but i cant completely understand it as it seems.
[Galaxy S III Original Android Development] bxlogic:
I had to thank you, this is one of the best kernels that ever existed specially for the battery problems we all know about smart phone devices when i installed this few days ago a fellow recommended it to me i am very happy i wish you guys success and luck in all this kind of development! :)
[Galaxy S III Original Android Development] trein91:
Re: [Kernel][23/03] Perseus

I removed the mod (factory reset and clean reinstall of everything). Problem still happens from time to time. Zram is just annoying then. Any way to remove it?
[Galaxy S III Original Android Development] nm8:
I also want to know this please, sometimes when swiping and opening apps, I am having stuttering/lagging
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

The scripts are working I have tested
[Galaxy S III Original Android Development] Erahgon:
Re: [Kernel][23/03] Perseus

You missed a ">" between "echo 419430400" and "/sys/block/zram0". Like invinciblecc said, just use scripts to avoid problems.
[Galaxy S III Original Android Development] psyntific:
Re: [Kernel][23/03] Perseus

Thanks mate... adding that > and also using swapoff at de beginning worked.. thanks alot
[Galaxy S III Original Android Development] zykic:
invinciblecc, not mean to offend you but your repeated signature is so annoying and disturbing. Please do something with it.
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Anything interesting in the update? It is still 4.1.2, but for the latest firmware, EMB5.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] zykic:
The current version enable zRAM by default. Some people get better performance, some get worse. I think you'll have to try it yourself and if it gets worse, somebody post a way to disable it a couple page ago.
[Galaxy S III Original Android Development] Fienman:
Re: [Kernel][23/03] Perseus

Thanked by mistake.

He is talking about the latest source drop.
[Galaxy S III Original Android Development] AndreiLux:
No.
[Galaxy S III Original Android Development] dezeubby:
Someone can help me with this ?
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Has anyone got 34 on them? Or even 33.2 or whatever the last one was? Thank you.

Great :'(

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] Erahgon:
Re: [Kernel][23/03] Perseus

If you want to turn swap off, just create an init.d script to run:

su
swapoff /dev/block/zram0
echo 1 > /sys/block/zram0/reset

---------- Post added at 02:12 AM ---------- Previous post was at 02:08 AM ----------

Try turning off saturation prevention under the general EQ settings.

This increased the overall volume for me.

Speaker levels were at 57 by default previously too.
[Galaxy S III Original Android Development] zenosteam:
hi all well i m trying to know more about zram ,personally i dont hve any problem with it on my phone .i don't know if it's permitted but i find an application called Trickster MOD it's similar to stweak with an option to disable zram this apps still on beta testing

http://xdaforums.com/showthread.php?t=2187188
[Galaxy S III Original Android Development] rickoslyder:
*sigh* Bump for the 3rd time.

Hopefully this time, the bump will help it get noticed/responded to.
[Galaxy S III Original Android Development] danarama:
Re: [Kernel][23/03] Perseus

Andrei already deals with entropy in this kernel so if you want something from that thread, can't you just flash it?
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Oh, he does? So no need for Seeder?

I've got that already, still not doing anything good, micro lags still. I'm thinking more about maybe the audio implementation or the other compiled modules.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] Erahgon:
Re: [Kernel][23/03] Perseus

Actually I'm looking forward to this too. It's a kernel module, and all my (admittedly limited) efforts to load the module have resulted in failure.

Frandom and erandom are reportedly way faster than urandom. Would make the mod on that thread work completely if the frandom kernel module were added to the kernel.

The source tarball is available at: http://www.billauer.co.il/download/frandom-1.1.tar.gz

Source link: http://www.billauer.co.il/frandom.html

Hope this helps!
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

I've tried cross breeder with this and it doesn't entirely speed up, occasionally slower too. This could be the reason! Let's wait and see.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] danarama:
Re: [Kernel][23/03] Perseus

Read alpha 30 change log. Andrei says do not use seeder

---------- Post added at 10:34 PM ---------- Previous post was at 09:52 PM ----------

Yeah. I guess since entropy is already being handled, this method may interfere with what is already in place and *could* require more than a module to be compiled?
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Just found 33.3 zip on a foreign site, actually much smoother for me. I had zram disabled on 34.1. If I can find 34, will try that too.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] trein91:
Re: [Kernel][23/03] Perseus

Could you or someone else upload the latest version before 34? Forgot which one it was ie 33.2 33.3 or 33.4. Only one I have some is 33.1.
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Hope this is okay. Click the right link, I'm using this one now.

http://pan.baidu.com/share/link?shareid=307781&uk=2754122424

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] agusdallalba:
DON'T

run su in a script, init.d or whatever. Depending on the superuser app you use, it may do nothing at all, or it may prevent the rest of the code from running. Either way it's no good.
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

Prevent what code? What is the safe way then? Thank you.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] nfsmw_gr:
@Andreilux

I found a bug in the modified boeffla sound.

The speaker volume settings doesn't stick permanently,i have to go to STweaks every once in a while,untick speaker eq,apply and re-tick it again and apply to have loud volume again.

It wasn't doing this with the "old" scoobydoo sound...

Haven't tried headphones yet though,i'll report about this tommorow.

Also the last version(s?) seem a litle more laggy,could this be the reason?

And one last thing,sorry if i bust your balls man...

What happened to XVMalloc,Cleancache and the others?

Those seemed like they could help a lot...

Thank you for your efforts.
[Galaxy S III Original Android Development] psyntific:
Re: [Kernel][23/03] Perseus

I think it does work as I was able to increase my zram from 200mb to 400mb n I did use su at the beginning.. I don't think you'll be able to do without that
[Galaxy S III Original Android Development] agusdallalba:
Okay, a little scripting basics. Running a script is not always the same thing as typing its contents in the terminal, because there are so-called "interactive" programs that grab the terminal and respond directly to what you type. Some interactive programs are complex, like those old DOS games, but some are simpler, like sh, the first thing started by the terminal that reads what you type and executes it.

A script, however, is a sequence of programs, that are executed one after the other. If one of those is interactive, the command that is written after it will not run until the interactive program finishes, which, unlike a "normal" program, will likely never do so.

The problem is, 'su', without arguments (arguments are the things that go after the command name), is like an interactive program. When ran, it waits for you to write something to it, and does not finish until you explicitly tell it to by closing the terminal or typing exit (try it, run su and then type exit. See what happens.) Chainfire's version is smart enough to figure out that you've called it in a script and just does nothing, but some other version of su mght not do this. In this case, whatever comes after 'su' will not run, because there will be a interactive shell waiting to have something written to it. This might never happen, because since it was in a script it has no terminal attached to it. If your su version is smart enough it will just do nothing, and whatever comes will be run as the user that ran the script (init.d scripts are always run as root, but if you run the script from the terminal emulator app they might not).

I hope I have been clear enough.

PS: The safe way is to run su -c 'swapoff /dev/block/zram0; echo 1 > /sys/block/zram0/reset' in a normal script and assume you already are root in a init.d script.

PS2: If you want to do some experimenting, try running "su", "whoami" and "echo $_" (this last one tells you what was the last command you ran) in different orders, both in the terminal and as scripts.
[Galaxy S III Original Android Development] jinosong:
Re: [Kernel][23/03] Perseus

+1

I thought I was the only one.
[Galaxy S III Original Android Development] trein91:
Re: [Kernel][23/03] Perseus

Thanks a lot. Not ever gonna use zram. It seriously fcks up the experience.
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Without su in terminal I guess it would say permission denied

---------- Post added at 08:26 AM ---------- Previous post was at 08:23 AM ----------

Thanks I have experienced this at times

Anyways su on my terminal and super user app works fine most of the time
[Galaxy S III Original Android Development] agusdallalba:
Have you tried? su in a script does nothing (except maybe hang it). If you don't have permission to do something, adding su to the top line in a script won't magically make it work. Refer to the above longish post for details. Ask questions. Read the manual (there is one!). Experiment a bit.

Edit: sorry, didn't see the edit.
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

How to set low lmk in this kernel
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Even I m facing lags
[Galaxy S III Original Android Development] EViollet:
Re: [Kernel][23/03] Perseus

I would just like to add that like many others the default settings for zram caused lags and a very poor phone experience.

So I set the zram value to 500mb as suggested and the result is fabulous. The phone literally flies (yes I even saw it cross the room on its own).

I really recommend that everyone sys the zram size to 500mb. And Andrei, could you make that the default value? Or did you choose 200mb for a particular reason?

Regards

Envoyé depuis mon GT-I9300 avec Tapatalk
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Yup th phone actually flies on 500mb
[Galaxy S III Original Android Development] MrxSiN:
and battery life?
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Battery life is good
[Galaxy S III Original Android Development] xpandnz:
Re: [Kernel][23/03] Perseus

The sound mod stuff is not good anymore for some reason. Individual channel volume sliders for headphones? And also the volume is not having the same effect as before. It's no where near as loud. Can I get the old sound mods back please?
[Galaxy S III Original Android Development] EViollet:
Re: [Kernel][23/03] Perseus

Has never been better.

I lost 1% overnight (6 hours)

Envoyé depuis mon GT-I9300 avec Tapatalk
[Galaxy S III Original Android Development] trein91:
Re: [Kernel][23/03] Perseus

So, what would be the proper way to change zram size? Reading a few pages back people were saying about this and that method doesn't work etc (or how perseus zram implementation was different)
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

A neat way to change value in steaks for zram is definitely needed!

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

http://db.tt/dc4jwKM9

There u go download the zip extract it download smanager

And run as root and set at boot the su skull and boot logo both green on opening script

And run multiple tines till it doesn't give the error device or resource busy leave in background while running multiple times

See screenshot
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][23/03] Perseus

That's far from neat, but it shall do, thank you.

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] danarama:
Re: [Kernel][23/03] Perseus

Makes sense. As with CPU schedulers, only one is active at a time. Switching between CPU profiles with different schedulers will be the same affect as writing in one media with one scheduler and switching to another using another. There will always be a delay changing from one scheduler to another for either io or CPU so I would always recommend using the same ones
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Hmmm thanks for the info now I see why performance is better with the same scheduler for both
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

You just have to uncheck the prevent saturation control. I had the same problem
[Galaxy S III Original Android Development] istillmyself:
hopefully someone can share best battery profile for stweakprofile because i feel/see diffrent from v33 about battery
[Galaxy S III Original Android Development] mattiadj:
R: [Kernel][23/03] Perseus

Can u please explain us step by step instructions to have this fabulous results?

650mb zram + 1gb swap on external?

Which lmk?

Which swappiness?

Which scheduler?

Then... I don't know what is jkay, can u guide us to this result?

Thanks

From universe with my gs3
[Galaxy S III Original Android Development] woof123:
Come on guys....help someone please.I want the HDR effect on my pictures and videos after they are saved,and not only on screen.Is it possible or maybe not?If its possible let me know what do i need to check in order for that effect to work?I tried to read into it in the description but i cant fully understand it.I dont get what this master profile is...that the description is saying,in order to get all the effects.
[Galaxy S III Original Android Development] dezeubby:
I think you made Perseus worst with this zRam and Boeffla ...
[Galaxy S III Original Android Development] Erahgon:
Re: [Kernel][23/03] Perseus

Hmmm... thanks for the explanation! Actually, I started putting "su" at the beginning of init.d scripts as commands which require elevation didn't function without it. Also, I was under the assumption that init.d scripts ran before any apps initialized (I.e. just after init.rc), and hence wouldn't be a problem as the superuser apps will not get any command calls (also, why you should be wary and double check before applying init.d scripts).

I might be wrong of course. I'll do some research and get back to this, but once again, thanks for the explanation.

I suppose using the "su -c "echo..."" commands mean all the commands have to be preceded by "su -c" and the commands themselves in quotes right?

Also, you mentioned that the command I gave didn't turn off swap in any case?

Using that command in an init.d script lets it run faster (almost instantly) as swap (zRam, whatever) isn't used much in the beginning and it gets filled up more as time progresses. This is important, as swapoff needs to decompress and close apps in swap space before turning off swap.

---------- Post added at 04:25 PM ---------- Previous post was at 04:20 PM ----------

The HDR effect in the kernel is only for the

screen and not for the actual photos and videos stored. That is dependant on the camera hardware and the camera app.

The sound implementation is, effect wise, pretty much the same. In fact, most of the errors have been ironed out and some features added. If the sound output is to low, as mentioned before, try turning off the saturation prevention in the EQ section.

Actually, I am facing one intermittent bug. Sometimes when someone calls me, I can't hear them through my phone's earpiece and have to use the speaker.
[Galaxy S III Original Android Development] woof123:
Thanks for the reply,pity i thought it was a proper HDR.I wonder if we get a proper HDR function after the 4.2.2 is released,and S3 gets most of the S4 features that arent hardware dependant :) Im not sure but i think HDR is software dependant mostly..
[Galaxy S III Original Android Development] Erahgon:
Re: [Kernel][23/03] Perseus

My phone's responding great with zRam too.

Mine so far:

- 832 MB zRam

- LMK untouched.

- Swapiness of 90.

- row scheduler on both internal and external memory.

- Internal has a read ahead of 512 KB and external has 1024 KB.

I'm going to use the 512 MB swap partition on my class 6 external SD Card now and report back on usage.

What say we continue this discussion on your thread @mattiadj?

Edit: I think Andrei's keeping 200 MB zRam cause that's what Samsung has implemented in their 4.2.1 leak.

832 MB zRam doesn't mean that the whole 832 MB of RAM is reserved for zRam. It just means it can swap and compress as much as it want within the limits of the RAM.
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Well explaining part is too long maybe I need to make a separate thread for the same
[Galaxy S III Original Android Development] invinciblecc:
Re: [Kernel][23/03] Perseus

Swappiness why not 100

Cos no matter even if u set swappiness to max value android system does not swap much

So I suggest setting it to 100 .

U can try soft swap

And if u r going to use swap either hard or soft then the only logical choice of scheduler at least for external memory is cfq

Also different reqd ahead buffers for internal nnd external sd may cause lags so may different schedulers for both from sheer experience

Also 832 mb zram is not too good either cos u r not leaving non swap ram for the system I have tried this too and acc to md best experience was at 500 I use 650 cos I am a multitasking freak

Max I would suggest keep 700 832 is like extreme

Anyways to each his own

Don't mind my commenting just wanted to help :):):):):)