webOS-ports / luneos-testing

Public testing images for LuneOS
4 stars 1 forks source link

Debug slow shutdown #28

Open Herrie82 opened 9 months ago

Herrie82 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

https://github.com/webOS-ports/meta-webos-ports/pull/682

Herrie82 commented 9 months ago

SAM not shutting down caused by qml-runner somehow.