Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(main): emit storage locked/unlocked events #380

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

chombourger
Copy link
Collaborator

Tell user interface(s) when storage gets locked/unlocked to enable or disable the storage swap button they may provide. Such events are triggered from power on/off and storage open/close operations.

@chombourger
Copy link
Collaborator Author

@fmoessbauer would these changes help?

@chombourger
Copy link
Collaborator Author

Sample events seen in journald

Dec 19 06:19:20 frg-w10-hombou2 mtda-service[103361]: # debug3: main.notify(STORAGE,HOST)
Dec 19 06:19:26 frg-w10-hombou2 mtda-service[103361]: # debug3: main.notify(STORAGE,LOCKED hotplug supported but storage is opened)
Dec 19 06:23:42 frg-w10-hombou2 mtda-service[103361]: # debug3: main.notify(STORAGE,UNLOCKED unsure)

@fmoessbauer
Copy link
Member

fmoessbauer commented Dec 19, 2023

Hi, yes that helps. Thanks!

@chombourger
Copy link
Collaborator Author

Hi, yes that helps. Thanks!

Cool. I am also drafting the changes to the www module

Tell user interface(s) when storage gets locked/unlocked to enable
or disable the storage swap button they may provide. Such events
are triggered from power on/off and storage open/close operations.

Signed-off-by: Cedric Hombourger <[email protected]>
@chombourger chombourger merged commit 9417dfd into siemens:master Dec 19, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants