From 1db1e60a3d62cc25e6536bab4d34da2a30dc7d4a Mon Sep 17 00:00:00 2001 From: ro8inmorgan Date: Fri, 16 May 2025 22:01:53 +0200 Subject: [PATCH 1/2] comment out all suspend / resume code as its not needed it seems and causes more problems --- skeleton/SYSTEM/tg5040/bin/suspend | 70 +++++++++++++++--------------- workspace/tg5040/pipewire | 1 + 2 files changed, 36 insertions(+), 35 deletions(-) create mode 160000 workspace/tg5040/pipewire diff --git a/skeleton/SYSTEM/tg5040/bin/suspend b/skeleton/SYSTEM/tg5040/bin/suspend index e1c348596..f3aeb909d 100755 --- a/skeleton/SYSTEM/tg5040/bin/suspend +++ b/skeleton/SYSTEM/tg5040/bin/suspend @@ -10,24 +10,24 @@ bluetoothd_running=0 resume() { >&2 echo "Resuming from suspend..." - >&2 echo "Unblocking wireless..." - echo 1 >/sys/class/rfkill/rfkill0/state || true + # >&2 echo "Unblocking wireless..." + # echo 1 >/sys/class/rfkill/rfkill0/state || true - if [ "$wpa_running" -eq 1 ]; then - >&2 echo "Starting wpa_supplicant..." - wpa_supplicant -B -iwlan0 -Dnl80211 -c/etc/wifi/wpa_supplicant.conf -I/etc/wifi/wpa_supplicant_overlay.conf -O/etc/wifi/sockets || true - udhcpc -i wlan0 & - fi + # if [ "$wpa_running" -eq 1 ]; then + # >&2 echo "Starting wpa_supplicant..." + # wpa_supplicant -B -iwlan0 -Dnl80211 -c/etc/wifi/wpa_supplicant.conf -I/etc/wifi/wpa_supplicant_overlay.conf -O/etc/wifi/sockets || true + # udhcpc -i wlan0 & + # fi - if [ "$hciattach_running" -eq 1 ]; then - >&2 echo "Starting hciattach..." - /etc/init.d/hciattach start || true - fi - if [ "$bluetoothd_running" -eq 1 ]; then - >&2 echo "Starting bluetoothd..." - /etc/bluetooth/bluetoothd start || true - /usr/bin/bluetoothctl power on || true - fi + # if [ "$hciattach_running" -eq 1 ]; then + # >&2 echo "Starting hciattach..." + # /etc/init.d/hciattach start || true + # fi + # if [ "$bluetoothd_running" -eq 1 ]; then + # >&2 echo "Starting bluetoothd..." + # /etc/bluetooth/bluetoothd start || true + # /usr/bin/bluetoothctl power on || true + # fi } main() { @@ -35,27 +35,27 @@ main() { >&2 echo "Preparing for suspend..." - if pgrep wpa_supplicant; then - wpa_running=1 - >&2 echo "Stopping wpa_supplicant..." - killall -9 wpa_supplicant - fi - ifconfig wlan0 down + # if pgrep wpa_supplicant; then + # wpa_running=1 + # >&2 echo "Stopping wpa_supplicant..." + # killall -9 wpa_supplicant + # fi + # ifconfig wlan0 down - if pgrep hciattach; then - hciattach_running=1 - >&2 echo "Stopping hciattach..." - /etc/init.d/hciattach stop - fi - if pgrep bluetoothd; then - bluetoothd_running=1 - >&2 echo "Stopping bluetoothd..." - /etc/bluetooth/bluetoothd stop - killall -15 bluealsa - fi + # if pgrep hciattach; then + # hciattach_running=1 + # >&2 echo "Stopping hciattach..." + # /etc/init.d/hciattach stop + # fi + # if pgrep bluetoothd; then + # bluetoothd_running=1 + # >&2 echo "Stopping bluetoothd..." + # /etc/bluetooth/bluetoothd stop + # killall -15 bluealsa + # fi - >&2 echo "Blocking wireless..." - echo 0 >/sys/class/rfkill/rfkill0/state + # >&2 echo "Blocking wireless..." + # echo 0 >/sys/class/rfkill/rfkill0/state >&2 echo "Suspending..." echo mem >/sys/power/state diff --git a/workspace/tg5040/pipewire b/workspace/tg5040/pipewire new file mode 160000 index 000000000..2771c435f --- /dev/null +++ b/workspace/tg5040/pipewire @@ -0,0 +1 @@ +Subproject commit 2771c435fdc9b751c00c57dc48d83069e3fe7396 From af1be320a52aee07d5279879642133fc57af082e Mon Sep 17 00:00:00 2001 From: ro8inmorgan Date: Fri, 16 May 2025 22:02:42 +0200 Subject: [PATCH 2/2] oeps removed something that shouldnt have been comitted --- workspace/tg5040/pipewire | 1 - 1 file changed, 1 deletion(-) delete mode 160000 workspace/tg5040/pipewire diff --git a/workspace/tg5040/pipewire b/workspace/tg5040/pipewire deleted file mode 160000 index 2771c435f..000000000 --- a/workspace/tg5040/pipewire +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2771c435fdc9b751c00c57dc48d83069e3fe7396