distribution/packages/kernel/linux-firmware/RTL8821CS-prebuilt-firmware/system.d/hciattach-realtek.service
Tom Pratt 5ad2cf4673 Bluetooth boot and sleep handling
Also reduce bluetooth agent sleep duration. Init dependencies mean its not that sensitive.
2022-10-29 00:33:45 +02:00

13 lines
324 B
Desktop File

[Unit]
Description=Attach /dev/ttyS1 to BlueZ stack
Before=bluetooth-agent.service
PartOf=bluetooth.service
[Service]
Type=simple
ExecStartPre=/usr/sbin/rfkill unblock bluetooth
ExecStart=/usr/bin/rtk_hciattach -n /dev/ttyS1 rtk_h5 115200
ExecStopPost=/usr/sbin/rfkill block bluetooth
[Install]
WantedBy=bluetooth.service