frostbay: add native BLE preflight script
This commit is contained in:
parent
b5ea0f9f11
commit
31585e9049
2 changed files with 53 additions and 0 deletions
|
|
@ -179,6 +179,13 @@ tools/oxp-frostbay-status.py
|
|||
tools/oxp-frostbay-status.py /tmp/oxp-wmi-ec-read-frostbay-on-YYYYmmdd-HHMMSS.txt
|
||||
```
|
||||
|
||||
For native Linux BLE validation, run the guarded Frost Bay preflight script.
|
||||
This requires a real BlueZ Bluetooth session and will not work from WSL:
|
||||
|
||||
```shell
|
||||
tools/frostbay-native-test.sh
|
||||
```
|
||||
|
||||
Current Frost Bay observations:
|
||||
|
||||
- `0xfd/0xfe = 04/05` correlates with Frost Bay / high-capability power state.
|
||||
|
|
|
|||
46
tools/frostbay-native-test.sh
Executable file
46
tools/frostbay-native-test.sh
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$REPO_DIR"
|
||||
|
||||
echo "== Environment =="
|
||||
uname -a
|
||||
|
||||
echo
|
||||
for cmd in busctl bluetoothctl python3; do
|
||||
if ! command -v "$cmd" >/dev/null 2>&1; then
|
||||
echo "missing: $cmd" >&2
|
||||
fi
|
||||
done
|
||||
if ! command -v sensors >/dev/null 2>&1; then
|
||||
echo "warning: sensors missing; install lm-sensors for frostbay-auto-silent.py" >&2
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "== Bluetooth service =="
|
||||
systemctl is-active bluetooth || true
|
||||
systemctl status bluetooth --no-pager -l | sed -n '1,25p' || true
|
||||
|
||||
echo
|
||||
echo "== BlueZ objects =="
|
||||
busctl tree org.bluez | sed -n '1,120p' || true
|
||||
|
||||
echo
|
||||
echo "== Known Frostbay device in bluetoothctl =="
|
||||
bluetoothctl devices | grep -Ei 'C8:17:17:F5:C8:62|CoolingSystem|ONEC1|Frost' || true
|
||||
|
||||
echo
|
||||
echo "== Frostbay GATT map =="
|
||||
python3 tools/frostbay-ble-control.py map || true
|
||||
|
||||
echo
|
||||
echo "== Frostbay status =="
|
||||
python3 tools/frostbay-ble-control.py status --fast --decode || true
|
||||
|
||||
echo
|
||||
echo "If status decoded correctly, try manually:"
|
||||
echo " bash tools/frostbay-quick.sh balanced"
|
||||
echo " bash tools/frostbay-quick.sh status"
|
||||
echo "Recovery if needed:"
|
||||
echo " bash tools/frostbay-quick.sh recover"
|
||||
Loading…
Add table
Reference in a new issue