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

Debug slow shutdown #28

Open
Herrie82 opened this issue Feb 8, 2024 · 3 comments
Open

Debug slow shutdown #28

Herrie82 opened this issue Feb 8, 2024 · 3 comments

Comments

@Herrie82
Copy link
Collaborator

Herrie82 commented Feb 8, 2024

Describe the bug
Shutdown takes extremely long, likely due to sensorfw not wanting to stop.

Try do debug sensorfw with strace and/or gdb.

@Herrie82
Copy link
Collaborator Author

Herrie82 commented Feb 9, 2024

Seems to be caused by both sam and sensorfw:

https://paste.ubuntu.com/p/4gVRWnNFjw/

Adding TimeoutStopSec=5 to both service files will make it behave.

Before:
Feb 09 07:53:00 pinetab2 sleepd[817]: [] [pmlog] sleepd FRC_REBOOT {"Reason":"reboot"} Pwrevents rebooting system
Feb 09 07:54:31 pinetab2 systemd[1]: systemd-reboot.service: Deactivated successfully.

After:
Feb 09 08:09:43 pinetab2 sleepd[766]: [] [pmlog] sleepd FRC_REBOOT {"Reason":"reboot"} Pwrevents rebooting system
Feb 09 08:09:54 pinetab2 systemd[1]: systemd-reboot.service: Deactivated successfully.

@Herrie82
Copy link
Collaborator Author

Herrie82 commented Feb 9, 2024

@Herrie82
Copy link
Collaborator Author

SAM not shutting down caused by qml-runner somehow.

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

No branches or pull requests

1 participant