Skip to content

Add soft-power-button daemon#211

Open
simone-fabteam wants to merge 1 commit intomasterfrom
soft-power-button
Open

Add soft-power-button daemon#211
simone-fabteam wants to merge 1 commit intomasterfrom
soft-power-button

Conversation

@simone-fabteam
Copy link
Copy Markdown
Member

This adds a minimal implementation for a power switch daemon.

Configuration needs to be done in config.ini's [power] section.

The daemon listens for changes on switch_pin where a momentary switch should be installed.

When the switch is briefly depressed the daemon acitvates the output of ps_on_pin if configured, and restarts the fabui service to make it sync correctly with the firmware.

When the switch is pressed for a longer time a reboot is issued. During the the shutdown sequence the daemon is killed cutting off the controller's power supply, so that upon restart the system is again in a dormant state.

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

Successfully merging this pull request may close these issues.

1 participant