Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to reduce the swap size to 2 gb? #2

Open
fedeharuchan opened this issue Nov 21, 2023 · 1 comment
Open

how to reduce the swap size to 2 gb? #2

fedeharuchan opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@fedeharuchan
Copy link

fedeharuchan commented Nov 21, 2023

module working fine on my redmi 10c with cherish os, i use the swapped ram to boot some games on skyline emulator (the app crash without it). the rom already come with 2gb on the swap partition, and the total of 6gb is too much for me.
2 additional gb is probably enough, i prefer to have a bit more of storage tbh.

@janithcooray janithcooray self-assigned this Nov 22, 2023
@janithcooray janithcooray added the enhancement New feature or request label Nov 22, 2023
@janithcooray
Copy link
Owner

I have scheduled an update for this. it'll take till Saturday (3 days from today) to release the new update with more swap size options.

For the time being, what you can do is unzip the module and manually set a custom value on the customize.sh file

edit the following lines ( 31 & 32 )

    if $VKSEL; then
        ui_print "  Using 8GB"
        SWAP_BIN_SIZE=8192
    else
        ui_print "  Using 2GB" 
        SWAP_BIN_SIZE=2048
    fi

Re-compress using 7zip and flash via magisk

This will replace the default 4GB option with 2GB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants