add mutex debug script to monitor mutex usage

This provides more information about why the system isn't suspending
than the icons in the status bar do, and can hopefully replace them
since they seem to cause a lot of confusion.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
This commit is contained in:
ArenM
2023-02-17 14:19:01 -05:00
committed by Willow Barraco
parent 3c532c5a8c
commit d5ba7b87a8
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#! /bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
sxmo_mutex.sh can_suspend list
tail -f "$XDG_STATE_HOME"/sxmo.log | stdbuf -oL grep 'sxmo_mutex.sh'