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

Zero 2 compatibility #13

Open
goney3 opened this issue Nov 11, 2021 · 7 comments
Open

Zero 2 compatibility #13

goney3 opened this issue Nov 11, 2021 · 7 comments

Comments

@goney3
Copy link

goney3 commented Nov 11, 2021

Hi Don, I tried running the scripted install listed on the main readme page. But it doesn't seem to work when running "free -m". Is this because Raspberry Pi OS is now on Bullseye? I was hoping this would help out the new Zero 2 I just got in the mail, but now I am just more confused. Thank you for all that you do!

@goney3
Copy link
Author

goney3 commented Nov 12, 2021

Yeah, this doesn't appear to work at all under Bullseye, I am not sure what is failing since I can't see anything in Terminal that would be obvious for a novice like me :(

pi@raspberrypi:~ $ sudo git clone https://www.github.com/novaspirit/rpi_zram/
Cloning into 'rpi_zram'...
warning: redirecting to https://github.com/novaspirit/rpi_zram.git/
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 78 (delta 1), reused 2 (delta 0), pack-reused 70
Receiving objects: 100% (78/78), 15.76 KiB | 489.00 KiB/s, done.
Resolving deltas: 100% (18/18), done.
pi@raspberrypi:~/rpi_zram $ sudo ./install.sh
--2021-11-12 08:03:58--  https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 707 [text/plain]
Saving to: ‘/usr/bin/zram.sh’

/usr/bin/zram.sh                                       100%[=========================================================================================================================>]     707  --.-KB/s    in 0s      

2021-11-12 08:03:58 (4.99 MB/s) - ‘/usr/bin/zram.sh’ saved [707/707]

[Unit]
Description=zram Service
;After=network-online.target
;Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Type=simple
ExecStart=/usr/bin/zram.sh

[Install]
WantedBy=multi-user.target
Created symlink /etc/systemd/system/multi-user.target.wants/zram.service → /etc/systemd/system/zram.service.
pi@raspberrypi:~/rpi_zram $ free -m
               total        used        free      shared  buff/cache   available
Mem:             427         110         107           3         209         260
Swap:            527          66         461

@CyberManifest
Copy link

CyberManifest commented Nov 12, 2021

@goney3
What happens when you run the script directly...
sudo /usr/bin/zram.sh then free -m ?

PS:
Is there a particular reason you aren't using Debian's built in ZRAM handler?
https://wiki.debian.org/ZRam

@goney3
Copy link
Author

goney3 commented Nov 12, 2021

PS: Is there a particular reason you aren't using Debian's built in ZRAM handler? https://wiki.debian.org/ZRam

Yes, Don said in his Zero 2W release video that we should use this... so here I am scratching my head.

@daBee
Copy link

daBee commented Jan 9, 2022

I'm in the same boat, thinking the issues are iTerm2. I'm getting hangs, dropped connections, odd behaviour. I too wanted compressed RAM for my Zero 2.

##### [Sun Jan 09 14:44:11 rich@myzero ~] free -m
               total        used        free      shared  buff/cache   available
Mem:             364         135         117           1         111         177
Swap:           1556          22        1534

@daBee
Copy link

daBee commented Jan 10, 2022

Update: I think my unit is messed up. Problems hanging, dropping connections, etc. iTerm2 and Terminal both see the same sketchy behaviour.

@rmiddle
Copy link
Collaborator

rmiddle commented Jan 14, 2022

The likely issue is related to issue #12 .

@daBee
Copy link

daBee commented Jan 14, 2022

My Raspberry Pi Zero 2 W unit was sketchy. It was replaced, and this one is solid.

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

No branches or pull requests

4 participants