~anjan/hammock

remove elogind from requirements
hdbus: clean up

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~anjan/hammock
read/write
git@git.sr.ht:~anjan/hammock

You can also use your local clone with git send-email.

#Hammock: A power optimisation framework for Linux Mobile devices

  • Manage app lifetime
  • Suspend background applications
  • Permissions integration to stay awake, run in background etc
  • Push notifications

Hammock currently only supports Phosh on postmarketOS, with the following patches being required:

It will configure a cgroup per application and use app state tracking via Wayland to freeze apps that aren't in focus. See the example configuration docs/config.default.yaml for more information.

#Requirements

#Development Requirements

  • rust

#Development

  1. Run git submodule init and git submodule update to load the vendor dependencies
  2. Enable cgroups. On Alpine Linux or postmarketOS run: doas /etc/init.d/cgroups start && doas rc-update add cgroups
  3. Change ownership for tinydm in cgroup: chown -R <user>:<user> /sys/fs/cgroup/unified/tinydm

#TODO

  • Remove all suspend handling code (see elogind commit)