Skip to content

[FEATURE] Toggle for freeze/unfreeze container #359

Closed as not planned
Closed as not planned

Description

@George-Seven

Is your feature request related to a problem? Please describe.
VM managers have a toggle to freeze/unfreeze (or maybe it's called suspend/thaw) the guest on demand.

Describe the solution you'd like
Can the Droidspaces > Containers tab also implement a "Pause" button next to the Stop/Restart buttons for a container.

Describe alternatives you've considered
echo 1 > /sys/fs/cgroup/droidspaces/ubuntu/cgroup.freeze for freeze and echo 0 > /sys/fs/cgroup/droidspaces/ubuntu/cgroup.freeze for unfreeze seems to work

Additional context
Probably as an optional feature that's automatically visible if the freezer kernel config is enabled.

Activity

  1. ravindu644 commented on Oct 16, 2026

    @ravindu644
    Owner

    Thanks for the suggestion.

    Your approach works. However, the issue is that since the Android app uses a shared root shell via libSU to execute commands, once a container gets frozen, every single root action of the app hangs as the app waits for a command run inside the frozen container to fetch the telemetry to finish.

    So, we have to figure that issue out first before implementing this.

  2. George-Seven commented on Oct 16, 2026

    @George-Seven
    Author

    My bad, I didn't notice that. I had just done a quick test on that container and didn't realise the root actions was paused with it.

  3. ravindu644 commented on Oct 18, 2026

    @ravindu644
    Owner

    Not planned for now. Pausing a container doesn't free any memory, it breaks live connections (TCP, Anland/X11 sessions), and restarting is already fast.

    Writing cgroup.freeze by hand works, just don't use the app while a container is frozen. Its root actions will hang until you unfreeze it.

    Thanks for the suggestion though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions