Skip to content

Cosmo Debian Beta1.1: sleep fix

Choose a tag to compare

@atzandrew atzandrew released this 18 Nov 21:05

Cosmo Debian Beta1.1: sleep fix

A fix release for Beta1. Sleep ended after about a second: the screen went off, then
the Cosmo woke straight away instead of staying in deep sleep.

Already running Beta1? You do not need to reinstall. Run the fix script
below. New install? Use the image from this release in place of the
Beta1 image (see Downloads).

No warranty. This software is provided as is, without warranty of
any kind. I am not responsible for bricked or damaged devices or lost
data. You flash it at your own risk.

What was fixed

  • Sleep woke up at once. The Beta1 image installed the Wi-Fi sleep hook
    (/usr/lib/systemd/system-sleep/cosmo-wifi-sleep) without its execute
    bit. systemd skips such hooks without a message, so the Wi-Fi chip stayed
    powered during sleep and woke the Cosmo within about a second. The hook
    now runs: Wi-Fi switches off, the Cosmo stays in deep sleep, and Wi-Fi
    comes back at wake.

Fix an installed Beta1 (no reflash)

Download cosmo-sleep-fix.sh to the Cosmo, then run:

sudo sh cosmo-sleep-fix.sh

It prints Fixed: .... No reboot is needed, and running it again is
harmless. It changes nothing else.

What changed in the image

  • The sleep fix above.
  • Debian updates since Beta1: Firefox 160.0.1, libopenexr (security update),
    linux-perf.

Nothing else changed. The kernel, boot image, dtbo and kernel modules are
the same as Beta1, and the boot and dtbo files below are the Beta1 files.

Versions

Part Version
Kernel Linux 6.18.58-cosmo (unchanged)
Debian 13.7 (trixie)
Plasma 6.3.6 (Wayland)
Mesa 26.1.6 (trixie-backports), panfrost GPU driver, GLES 3.1
Firefox 160.0.1 (Mozilla's repository)
Source: kernel, boot image, modules cosmo-linux618 tag beta1.1 (0000d86, same as Beta1)
Source: root filesystem build gemini-debian e3b789e

On an installed Cosmo, cat /etc/gemini/build-info shows the same
versions.

Downloads

File Use
cosmo-sleep-fix.sh installed Beta1: run it with sudo (see above)
cosmo-boot-beta1.img new install: write to boot (same as Beta1)
cosmo-dtbo-beta1.img new install: write to dtbo (same as Beta1)
cosmo-debian-beta1.1.img.zst new install: write to userdata (decompress first)
SHA256SUMS check the downloads: sha256sum -c SHA256SUMS

The install guide's write command names the Beta1 image. For Beta1.1,
decompress cosmo-debian-beta1.1.img.zst and use this command instead:

mtk w boot,dtbo,userdata "$COSMO_FILES/cosmo-boot-beta1.img","$COSMO_FILES/cosmo-dtbo-beta1.img","$COSMO_FILES/cosmo-debian-beta1.1.img"

Install steps, warnings and known issues are as in Beta1: read
docs/install.md
and the Beta1 release notes
before flashing. Installing erases the data partition.