Skip to content

Safe-eject USB sticks via panic-button combo (Ctrl+Alt+Shift+E) #2

Description

@bryanwintermute

Background

Today there's no clean operator-side way to safely eject USB sticks before yanking. The existing infrastructure already provides defense-in-depth via sync,dirsync mount flags (FAT writes are flushed immediately), but there's no explicit "release this stick now" workflow.

Proposal

Add a new combo to the panic-button daemon, mirroring the kid-reset combo design:

  • New helper /usr/local/sbin/chimebox-usb-eject that iterates outside-world/USB-* sub-folders and umounts them (polite then lazy, same pattern as chimebox-usb-helper.sh)
  • New [combo:usb-eject] in panic-daemon config: Ctrl+Alt+Shift+E, hold 1.0s, opt-in (default off)
  • Optional brief audio "dink" via aplay for user feedback

Cost: ~1 hour. Slot into existing panic-button + outside-world patterns.

Acceptance

  • Operator presses Ctrl+Alt+Shift+E and holds 1s → all USB sub-folders umount cleanly
  • Logged via journalctl -t chimebox-usb-eject
  • Documented in roles/panic-button/README.md

See also #3 (long-term: Mac drag-to-Trash equivalent).

Activity

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

    polishUX or codebase polish; not blocking

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions