Add AIC8800 Bluetooth Service and Script

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
Patrick Yavitz
2025-08-02 09:23:30 -04:00
committed by c0rnelius
parent 9f4f78ba94
commit 756a48c080
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# HW Reset
hciattach -r -s 1500000 /dev/ttyS1 any 1500000 flow nosleep > /dev/null 2>&1
# Kill hciattach
sleep .50
killall hciattach
# Attach Bluetooth HCI UART
sleep .50
hciattach -s 1500000 /dev/ttyS1 any 1500000 flow nosleep > /dev/null 2>&1
rfkill unblock all
exit 0

View File

@@ -0,0 +1,13 @@
[Unit]
Description=AIC8800 Bluetooth
After=bluetooth.service bluetooth.target
Requires=bluetooth.service bluetooth.target
[Service]
Type=idle
ExecStartPre=/usr/sbin/rfkill unblock all
ExecStart=/usr/bin/aic-bluetooth
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target