Why and how to extend ZRAM on L5. A revolution for Librem 5 stability!

After reboot

1 Like

I would have liked to see the full text. Go to the menu (top right) and click on “zoom -”
Have you done chmod +x ~/Documents/2.sh to make the script executable, otherwise, you need to have ExecStart=/usr/bin/bash /home/purism/Documents/2.sh in the service file. (restart the service after modification).
PS: I have edited my original post to do the changes through one or two scripts. I hope it is clearer for all now after the replies.

2 Likes

Thank you, Lionel :pray:

PS: yes! I chmod +x it

1 Like

That screenshot is rotated for me. Difficult to read!

1 Like

Corrected image:

1 Like

2.sh needs to start with a line #! /shell where /shell means a path to a valid shell e.g. /bin/bash Does it?

2 Likes

Well seen!. It is also why i converted my instructions in my original post, to avoid typing mistakes.

3 Likes

@irvinewade @Lionel Really thank you so much for your lasts posts!! It’s working perfectly now!! Just last question to understand: why I see Lionel’s zram swap13.3GB in the first post? I just have 5.3 that’s ok for me! But how to reach that number? I also tried setting zram-fraction=4 but it remained 5.3! Maybe it dinamically increase to 13.3 when zram reach 5.3?
Anyway zram-fraction is set on 2, now, as suggested! And L5 temperatures are ok now!
Thank you
:pray::grinning:

1 Like

Great !
13.3 GB with fraction = 4.5 (It is all explained in my original post). It was just a test for me to see if it did a problem (freeze or crash) with all apss opened.
I estimate it not useful to have zram above 5.5 GB, but make it if you think you need it.
Do you really see a difference with temperature?? I was not sure about my feeling and as i remember, i did some of the tests on the floor which was then cooling the phone.

2 Likes

Yes! I opened all apps installed, including Waydroid and all temperatures were below 50 degrees (around 47/48). Before zram, as explained in another thread, my L5 reached 60 degrees!!! It was so hot that I had problem to keep it in my hand!

3 Likes

Great to confirm my experience! Thank you for your perseverance in trying this trick.

3 Likes

I saw mention of PR for this. Anyone have an idea when it might get into “production”?

Trying to decide if I should try it now or just wait (uncertain whether it would conflict with doing it manually ahead of time in some way).

1 Like