with sudo dbus-monitor gave me thisClaude wrote me the followingbut it is plagued by the exact same problem, as the other scripts. Actually scrap that. Needs more testing. My wife may have not heard the wakeup sound, when I asked her if there was one
Code:
sudo dbus-monitor --system "interface='org.bluez.Device1'"signal time=1766832882.637373 sender=org.freedesktop.DBus -> destination=:1.108976 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.108976"signal time=1766832882.637407 sender=org.freedesktop.DBus -> destination=:1.108976 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.108976"method call time=1766832902.509544 sender=:1.34 -> destination=:1.102674 serial=349 path=/org/bluez/hci0/dev_redacted; interface=org.bluez.Device1; member=Disconnectmethod call time=1766832912.962973 sender=:1.34 -> destination=:1.102674 serial=350 path=/org/bluez/hci0/dev_redacted; interface=org.bluez.Device1; member=ConnectCode:
#!/bin/bashSTANMORE_MAC="redacted"DEVICE_PATH="/org/bluez/hci0/dev_$(echo $STANMORE_MAC | sed 's/:/_/g')"echo "=== Waking Marshall Stanmore 2 (using dbus-send) ==="echo "Device: $STANMORE_MAC"echo "D-Bus path: $DEVICE_PATH"echo ""echo "Replicating GUI behavior: Disconnect -> Wait -> Connect"echo ""# Step 1: Disconnectecho "[1/3] Sending Disconnect command..."dbus-send --system --print-reply \ --dest=org.bluez \ "$DEVICE_PATH" \ org.bluez.Device1.Disconnect 2>/dev/nullecho "✓ Disconnect sent"# Step 2: Wait 10 secondsecho ""echo "[2/3] Waiting 10 seconds (as GUI does)..."for i in {10..1}; do echo -ne "\rWaiting: $i seconds remaining... " sleep 1doneecho -e "\r✓ Wait complete "# Step 3: Connectecho ""echo "[3/3] Sending Connect command..."dbus-send --system --print-reply \ --dest=org.bluez \ "$DEVICE_PATH" \ org.bluez.Device1.Connectif [ $? -eq 0 ]; then echo "✓ Connect command sent successfully" sleep 2 # Verify connection CONNECTED=$(dbus-send --system --print-reply \ --dest=org.bluez \ "$DEVICE_PATH" \ org.freedesktop.DBus.Properties.Get \ string:"org.bluez.Device1" \ string:"Connected" 2>/dev/null | grep boolean | awk '{print $3}') echo "" if [ "$CONNECTED" = "true" ]; then echo "✓✓✓ SUCCESS! Speaker is now connected and awake! ✓✓✓" else echo "⚠ Connect command sent but speaker may not be fully connected yet" echo " (This is normal - it may take a few more seconds)" fielse echo "✗ Connect command failed" exit 1fiStatistics: Posted by Ickam — Sat Dec 27, 2025 11:32 am