Zramswap on L5?

/usr/sbin/zramswap: rad 53: echo: skrivfel: Ogiltigt argument

Near as I can make out, that translates to

line 53: echo: write error: invalid argument

I would guess that it is attempting to write to /sys/block/zram0/comp_algorithm (using the echo command) in order to set the compression algorithm. zram0 might be some other number e.g. zram1.

Several things could be going wrong e.g. the desired zram device doesn’t even exist or e.g. it does exist but lz4 is not a supported compression algorithm.

So I would start with ls -l /sys/block/zram*

If comp_algorithm exists then cat it to see what it might currently be set to.

If the binary zramctl exists then run it to see what output it gives.

If still no insight, edit /etc/default/zramswap to try at least the other two options for compression algorithm that it suggests might exist.

I fear that you need to reboot after any change, so playing with this will be time-consuming.