yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Original Android Development] tisazalay:
Re: [Kernel][22/03] Perseus

Ok. Let's not waste space ;)

Thanks to AndreiLux I learned something useful today... Here's the init.d script (as attachment)

When you copy it to init.d rename to S99zr (I tried S99zram but es file explorer thinks it's an audio file!!!) then set permissions all read user write and all execute (just the same as other scripts) and voila. It works aftet reboot.
[Galaxy S III Original Android Development] Bei60:
What is a recommended ROM to install alongside Perseus kernel?

I tried using Omega but it messes my phone. After I restart the phone it just get stuck in bootloops///
[Galaxy S III Original Android Development] AndreiLux:
This isn't boeffla sound, the sysinterface is very different and incompatible.

I attached the outputs and path names of the entries. Only thing to note is that swtich_eq_headphone is a bitmask, 1 is the equalizer enable bit, and 2 is the saturation prevention bit. So you input a 3 if you want both (Saturation is dependent on the equalizer being on...). All the other entries have the same syntax as the output, you can just use a text editor to change them and then just save.
[Galaxy S III Original Android Development] KennyLegend:
Re: [Kernel][22/03] Perseus

Latest omega rom is a 4.2 leak, not an official release. No custom kernels are compatible with android 4.2 yet.

Use any 4.1.2 official samsung rom and You'll be ok.

Sent from my GT-I9300
[Galaxy S III Original Android Development] mattiadj:
R: [Kernel][22/03] Perseus

Up :)

From universe with my gs3
[Galaxy S III Original Android Development] jinosong:
Andrei,

Nice upgrade! Will the sound controls work with bluetooth audio too? I know that some sound controllers don't cover bluetooth audio.
[Galaxy S III Original Android Development] AndreiLux:
No.

I noticed that I forgot about Samsung's ZRAM modifications, 34.1 will contain those changes. Edit: Tomorrow
[Galaxy S III Original Android Development] mattiadj:
R: [Kernel][22/03] Perseus

Which modifications are u talking about?

From universe with my gs3
[Galaxy S III Original Android Development] FeyoMx:
Re: [Kernel][22/03] Perseus

First of all thanks to AndreiLux for your amazing work.

hey bro thank you very much. work! I just wanted to ask what is recommended to use i/o scheduler ?

Enviado desde mi GT-I9300
[Galaxy S III Original Android Development] jeebspawnshop:
Use ROW and you'll be golden.
[Galaxy S III Original Android Development] sarakinos:
Re: [Kernel][22/03] Perseus

With zRam enabled phone experience is by far more better... I just had to make an init.d script to enabled it on every reboot. Will you update Stweaks to add a switch or something andreilux? ?
[Galaxy S III Original Android Development] Infy_AsiX:
I don't know if this is kernel related but it suddenly came on after using 33.4 for a little while. My phone screen suddenly went black on me while the soft keys were still lit up. I held the power button to restart but it's since stuck on the second boot logo. I had awhile back my efs erased using that swapper app and suffered not getting past second boot screen. I had successfully restored it and been fine for the last month. Checking this time my efs is empty again. This time if i use

gzip -d efsdev-mmcblk0p3.img.gz

cat efsdev-mmcblk0p3.img > /dev/block/mmcblk0p3

nothing shows up in efs. If i use

gzcat efsdev-mmcblk0p3.img.gz > /sdcard/efsdev-mmcblk0p3.img

dd if=/sdcard/efsdev-mmcblk0p3.img of=/dev/block/mmcblk0p3

it says copied and rate of transfer but nothing shows in efs.

su

umount /efs

mke2fs /dev/block/mmcblk0p3

mount -w -t ext4 /dev/block/mmcblk0p3 /efs

busybox tar zxvf /sdcard/X.tar.gz -C /

using this method the files show up in efs using aroma file manager but any restart including only a reboot into recovery has them disappear again. So what's going on with my phone?
[Galaxy S III Original Android Development] Anakha56:
So quick question, is there any special command one needs to do enable zRam? Partitioning of SD Card? Or is it just a case of a simple command to activate it with the required script (1 page back) being put into the init.d folder? I hardly know anything about zRam and would love to give it a try...

*edit*

Copied the script into the init.d folder and according to the zRam Status check it appears to be working fine. Never thought it would so easy :). Ignore my question above please :).
[Galaxy S III Original Android Development] davibs:
Sorry guys i've flashed with odin this kernel on a stock branded XXELLA /HUH , but now i don't have root or custom recovery..can you help me?

Thanks
[Galaxy S III Original Android Development] MuertoKo:
Re: [Kernel][22/03] Perseus

Sure, flash root from chainfire to get root, and flash PhilZ recovery for a up to date recovery :)

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S III Original Android Development] Erahgon:
Re: [Kernel][22/03] Perseus

Found it!

#!/system/bin/sh
su
echo 1 > /sys/block/zram0/reset
echo 419430400 > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0
echo 90 > /proc/sys/vm/swappiness

This is my init.d script for 400 MB of zRam.

It uses the sysfs interface to:

- Reset the disk size

- Set it to 419430400 bytes = 400 MB. You can use

echo $(400*1024*1024) > /sys/block/zram0/disksize

instead if you're lazy (please confirm that the syntax is correct before proceeding with custom values).

The rest of the commands are what were given by Andrei previously:

- Creates swap file with custom disk size value.

- Turns on swap.

- Adjusts swapiness.

Cheers!
[Galaxy S III Original Android Development] Satch09:
This kernel keeps getting better! I've noticed that the battery doesn't take as much of a knock from the screen and the phone is generally a lot cooler in use, I don't oc but uv. The saturation prevention is a nice feature but is it possible to have it configurable as a percentage of the output? I sometimes find that I have to boost the output to max just to get a proper listening level.
[Galaxy S III Original Android Development] Anakha56:
So according to zRam checker it is enabled and working and I have to say the phone is definitely better with it enabled. The phone just feels faster and better to use. +1 For it to stay with the kernel...
[Galaxy S III Original Android Development] Ausboy 2011:
Re: [Kernel][22/03] Perseus

Love this kernel :D
[Galaxy S III Original Android Development] ayim:
Re: [Kernel][22/03] Perseus

Can anyone explain how to me step by step to enable the zram?
[Galaxy S III Original Android Development] Anakha56:
http://xdaforums.com/showpost.php?p=39454390&postcount=4901

Do exactly as the post says and you should be working. At least thats what I did and used the zRam app from play store to check.
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][22/03] Perseus

Pretty good, but you hardly used any Wi-Fi! Good screen on time though!

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] AndroidGX:
zRam enabling script CWM

Or simply flash this file via your favorite recovery :)

Enjoy :good:
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][22/03] Perseus

Neither work for me, am I missing something?!

Sent from my Galaxy S3. Long live the original Galaxy S :)
[Galaxy S III Original Android Development] AndroidGX:
What do you mean by not working ? did you checked with ZRAM Status ?
[Galaxy S III Original Android Development] tisazalay:
Re: [Kernel][22/03] Perseus

You need to make sure you have perseus 34 then you can flash the zip or copy the script yourself (follow the instructions) & verify the permissions of the script. Finally reboot. You should be fine.
[Galaxy S III Original Android Development] ayim:
Re: [Kernel][22/03] Perseus

Hey, thanks it works! :thumbup:
[Galaxy S III Original Android Development] veteran_troller:
Re: [Kernel][22/03] Perseus

What are the advantages of zram ?

What do I need for it to be working?

Is it really worth it?

Sent from my GT-I9300
[Galaxy S III Original Android Development] Anakha56:
1. So far it seems to make the phone smoother and in some instances faster. I am not a expert in it so hopefully someone else could answer the question for you.

2. Flash either the zip file above or a page (maybe 2 pages) back is instructions on how to get it working without a zip flash.

3. Thats for you to decide. My personal preference is yes that it is worth it.

Ultimately we await Andrei to give a full thumbs up.
[Galaxy S III Original Android Development] Bei60:
I need to change a profile for STweaks. How can I do it? Someone told me in data/.Perseus but I cant find it
[Galaxy S III Original Android Development] Anakha56:
Have you installed the app for it?
[Galaxy S III Original Android Development] Bei60:
I have now :) Now what?
[Galaxy S III Original Android Development] Ausboy 2011:
Re: [Kernel][22/03] Perseus

Yeah used data a little but yes Its awesome time :)
[Galaxy S III Original Android Development] Anakha56:
Launch the app & then go and hunt the profile folder down. Once you find the folder (should be there now) you can copy any Perseus profile in and try it out. Word of warning untick apply at boot what sometimes works for one in undervolting might not work for others. Also only Perseus profiles, not sure what would happen if you tried a Siyah one...
[Galaxy S III Original Android Development] Bei60:
weird i still cant find the folder.. where should I look?
[Galaxy S III Original Android Development] Anakha56:
You need to be using a file explorer that can view the root like Root Explorer. Then go to /data/.perseus see screenshot.
[Galaxy S III Original Android Development] break1:
which rom and modem do you use? i cant get over 3 hours screen on time..
[Galaxy S III Original Android Development] Infy_AsiX:
Re: [Kernel][22/03] Perseus

music sounds amazing! Wow. I'd wager a 25% increase on my iems. I think it's that working dac direct and saturation prevention. My iems have a smooth nature to begin with but with this effect it's bliss. I'm serious. Thanks andrei and andi :)

combined with colour calibration the device is superb. I'm content with the s3, no s4 for me for awhile. Devs have really made this phone.

?????? Galaxy S3 ??????
[Galaxy S III Original Android Development] Kaydin:
Re: [Kernel][22/03] Perseus

Yeah, indeed. After using the new sound engine, it does sound as loud as before and a lot crisper. Amazing! Thank you, Andrei!
[Galaxy S III Original Android Development] tolis626:
It definitely doesn't make the phone faster or smoother.That is,unless you are comparing it to a phone that used swap before.Best case scenario with zRAM is that it will improve multitasking without crippling the phone and making it slow when writing to/reading from swapspace.It is good though,much better than hardswap with our current,slow SD cards.I use it in conjunction with a small swap file in my /cache partition and I couldn't be happier.

As for the new sound engine...My ears insisted something was wrong,like the sound wasn't balanced between the right and left channels.That was before I realised how the new one works.I'm pleased with the result for now,very pleased. :)

EDIT : Alpha 34.1 was just released silently... ;)
[Galaxy S III Original Android Development] AndreiLux:
What's an "iem"?

34.1:

- Updated zRam with Samsung's changes - don't expect a technical explication here as it's some deep modifications about page handling which I don't understand yet.

- Made it Swap by default on the zRam disk (200mB/90 swappiness). Check your scripts.

- Removed zCache as it was causing repeated page handling null pointer exceptions every few minutes when you enabled it. I think it collides with Samsung's CMA handling.
[Galaxy S III Original Android Development] Infy_AsiX:
Re: [Kernel][23/03] Perseus

In ear monitor

?????? Galaxy S3 ??????
[Galaxy S III Original Android Development] tsubus:
Re: [Kernel][23/03] Perseus

No need for init script at all to enable zram with 34.1?
[Galaxy S III Original Android Development] Kaydin:
Seems like zRAM is enabled by default after flashing. Deleted the init.d script, and then flashed 34.1. Checked the status with zRAM Status, and it seems to be on.
[Galaxy S III Original Android Development] AndroidGX:
Just checked with ZRAM Status app with cleaning usual scripts in etc and deleting .perseus before flashing and rebooting : yes, it's enabled by default, so nothing to do :good:

*edit* : Kaydin was faster for few seconds than me :D
[Galaxy S III Original Android Development] veteran_troller:
Re: [Kernel][23/03] Perseus

+1 I installed a zip file which enables zram when I was on v34 but then I restored from a nandroid backup which did not have zram enabled ... but before rebooting my device I flashed v34.1 and then when I checked with zram app it indicates that zram is enabled .. also there is no zram file in init folder

Sent from my GT-I9300

---------- Post added at 08:49 PM ---------- Previous post was at 08:48 PM ----------

I am using your signature :D I like it ...

Sent from my GT-I9300
[Galaxy S III Original Android Development] yahyoh:
sorry for noob question Andrei :o

u mean the Zram codes based on the 4.2 leak ? http://xdaforums.com/showpost.php?p=38798597&postcount=18

or Samsung submitted some new Zram codes to Linux kernel ?? :rolleyes:

BTW can't wait to test the new sound engine on my N2 :D
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

Loving Perseus! Found the best colour setting for me is to start with Samsung Natural scenario and register hook and then ramp up the color saturation settings a bit...

Amazing performance and standby battery is superb.

Andrei. Was just going to ask, since Siyah will probably not be frequently updated now... Many people enjoy dual boot and its very valuable for ROM cooks for testing stuff... I don't know if it's as easy as just cherry picking from GMs got hub but would you consider adding it? Even it was just Sammy rom compatible I'm sure many of us would really appreciate it.

All good if you don't want to you don't need to give reasons just putting it out there man. We are all glad to have you still active in amazing kernel development the last great high calibre dev for Sammy roms...
[Galaxy S III Original Android Development] tisazalay:
Re: [Kernel][23/03] Perseus

Duall booting is not solely related to kernel. Philz recovery will allow dual boot with compatible kernels. Have a look in that thread it's great.

Edit: Just now Phil is writing about it. The way I understand his words now is that he plans to adjust paths for a kernel that supports it. I get your point on the kernel supporting what boot.img feeds....
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

Wow!! Really? Did not realize this thanks for that... but without Siyah dual CM/Sammy kernel code will CM based ROMs work with Philz DB implementation?
[Galaxy S III Original Android Development] tisazalay:
Re: [Kernel][23/03] Perseus

I edited my post but you are right. It will probably allow only dual booting of compatible roms. Not make a kernel work where it doesn't.
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

OK thanks for the clarification... just scanned Philz thread so I'll dig a bit deeper... so hopefully he will be able to allow a limited version of DB for say Perseus for Sammy based Roms only since Perseus doesn't support CM based ROMs....

Well if Phil needs and minor kernel related changes to allows this to become reality then I hope Andrei will considerv doing this... if not changes are needed... even better! My SiyahMods app could easily be modded for a PerseusMODs version so yeah I'm Keem for this to come together guys!!
[Galaxy S III Original Android Development] tisazalay:
Re: [Kernel][23/03] Perseus

+1 on that.

The way I understand Phil is that he'll do from recovery what your app does. I liked Siyah mods a lot with the triple boot (miui cm and omega).

Probably if only changes paths very minor changes would be required for example with stock based roms like wanam or omega. Since they are installed from recovery it adjusts the paths and keeps the kernel fed with the same settings or even a different profile if it renames the paths.

Anyway, great things are coming.
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

So yeah Phil is working on existing DB functionally to be ported over from GMs Siyah recovery... however this will still only work on Siyah as without Support on the kernel side DB from recovery obviously is useless...

So Perseus would need to incorporate DB code ported from Siyah which Andrei would have to have to desire to do and that decision is his to make.

As a staunch defender of GPL philosophy im sure he would be fine for someone to make such a kernel with proper consulting respect and credits given... if I had the skills I.would volunteer... lol! How hard could it be? Lol! If only...

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

Well if it saves phil time I can share the code I used for SiyahMods if he likes. But I'm a novice dev so he will probably be able to back engineer it easily. Lol!
[Galaxy S III Original Android Development] AndreiLux:
I need to read up what PhillZ is doing, I missed that part of the story.

I will look into CM dual-compatibility once the 4.2.1 sources are out.

Generally the reason I didn't do it until now was the mess caused by the Mali drivers, but that'll get sorted out with 4.2.1 hopefully so they're back in harmony.

Please remind yourselves that I'm using the same kernel base for 9 different devices. Part of the reason is also that I don't want to give CM support yet is because I have to support all of them at once. It's a quite a bit of shenanigans to deal with, especially on the Note 2 variants.

Anyway, requests are noted but we'll see about it in the future what'll happen.

Temasek is pretty much maintaining an unofficial Perseus build with his kernel right now, he always pulls the latest things in, so AOSP people can use that in the meantime.
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

Andrei I think I follow you... so CM currently uses the same updated Mali drivers as the leaked Sammy 4.2.1 ROM...

However: while the kernel side of things can be made to work with the CM Compiled ROM stuff based on these new Mali drivers these WONT yet work with the leaked Sammy ROM?

And without official 4.2.1 kernel sources dual boot for Leaked Sammy 4.2.1 ROMs and latest CM with the new drivers is not possible or a Royal pain in the arse?

And Dual boot supporting latest CM using latest Mali drivers and old drivers in 4.1.2 ROMs... equally a headache?

And the new Mali driver ROM libs can't be ported to work with current official 4.1.2 Sammy ROMs?

Sorry for so many questions but only you can clear this up succinctly...

Well. Dual boot in its CURRENT form supporting older CM ROMs pre-mali upgrade and Sammy 4.1.2 ROMs would still be much appreciated to enjoy current Siyah DB goodness with Perseus goodies too... Even 4.1.2 Sammy only Dual boot would be cool...

Phil I think is planning to add existing Siyah custom recovery Dual Boot functionality plus maybe some extras akin to what I did with my SiyahMODs project... or something new...

Hope this things up a bit :)

So are you expecting 4.2.1 Sammy sources to drop soon? If so yeah save the effort n wait for zee final solution. (Nazi joke)
[Galaxy S III Original Android Development] Anakha56:
[Kernel][23/03] Perseus

Well it feels faster... Damn placebo effect... :P

Seriously in the ROM I am using at the moment the sms icon would take forever to disappear now with zRam it disappears as I read it. WhatsApp also seems quicker when leaving a picture after viewing it.
[Galaxy S III Original Android Development] rlorange:
Re: [Kernel][23/03] Perseus

Yeah zram working very well for me too. Whatever Samsung did with their implantation on leaked 4.2.1 its working well for me... battery drain seems up a wee bit but performance is WAY up (how Andrei ported this without sources is beyond me)
[Galaxy S III Original Android Development] GR0S:
Not really, this kernel better then temasek's one. Temasek haven't updated it for a while, it haves some strange boeffla sound and stweaks issues.
[Galaxy S III Original Android Development] Highlander11:
Re: [Kernel][23/03] Perseus

@Andrei,

thx for the ongoing excellent work!

One semantic in STweaks: under audio -> external speaker left channel "amlification" (spelling) ;)
[Galaxy S III Original Android Development] BossStang:
The screen calibration is heaven :good: .. To bad I have the stutter problem with this kernel. Like a timer.. :(

Same thing with different roms and had the stutter with perseus pre LLA.

Stock & Siyah for example works perfect.

Oh well I will keep checking back.

Great work btw!
[Galaxy S III Original Android Development] Kyle07:
Re: [Kernel][23/03] Perseus

Audio stutter?

I am also a victim of this annoyance. What I've found to be most effective is turning on "Force GPU Rendering" in Developer Options. It hasn't completely eradicated the stutter but improved it massively. I'm on Omega 43.1, XXEMB5 based.

P.S. zRam improves the multitasking greatly. Great addition to the kernel. Also enjoying the new sound implementation albeit a bit soft on default settings.
[Galaxy S III Original Android Development] agusdallalba:
I'm sorry if this has been asked before, but is there any reason not to just leave fsync on all the time? The other day I was downloading a torrent (using the official BitTorrent app) to my really slow external SD card and after a while the phone started to take a

long

time to power the screen off. When I pressed the power button, the bightness went down, the lockscreen appeared (unresponsive), and then, but after half a minute or so, the screen went off.

Disabling dynamic fsync solved the problem, but this seems to disable fsync altogether. Is there a way to leave it enabled all the time? Any reason why this shouldn't be done?
[Galaxy S III Original Android Development] molesaied88:
hello, is this kernel compatible with the tmobile version of the galaxy s3? thank you
[Galaxy S III Original Android Development] Ausboy 2011:
Re: [Kernel][23/03] Perseus

Purelook 2.1.2 youll have to work out there Best modem for u mate i use LLA
[Galaxy S III Original Android Development] :
Re: [Kernel][23/03] Perseus

A n00b question: does updating stweaks from play store lose functionality? To be more specific, does stweaks bundled with kernel have perseus kernel specific settings that are not available in stweaks from play store?
[Galaxy S III Original Android Development] freddy1991:
Re: [Kernel][23/03] Perseus

Is there a possibility of getting Slide2Wake or Touch2Wake feature in future release?

I request it because Siyah kernel has recently been slightly inactive

Btw thnx for the great kernel
[Galaxy S III Original Android Development] agusdallalba:
AFAIK STweaks asks the kernel what tunables to draw in its UI (that's why it takes so long to load), so it works the same with any kernel that supports it (it's the kernel the one that has to support STweaks, not the other way around). The Play Store version is the same that the one provided with the kernel.
[Galaxy S III Original Android Development] javelar:
Thanks for your great work AndreiLux. Any change to add in a future release Led fading capability?
[Galaxy S III Original Android Development] BossStang:
Yes with screen off. But the phone isnt perfectly smooth with screen on either (only perseus).

Flashed boeffla now instead, but its a bit sad to miss out on the color calibration.
[Galaxy S III Original Android Development] Jaskaran498:
deleted.
[Galaxy S III Original Android Development] ahmedoxo:
I am with omega 43.1 I just feel this little lag sometimes when I try to unlock the phone also in some apps where keyboard is required it appear very slowly. With stock I didn't have this issue. Anyone? ?