You are not logged in.
Pages: 1
Hi.
I've been using systemd bluetooth-auto-power@.service from the wiki for months. But now it stopped working.
[Unit]
Description=Bluetooth auto power on
After=bluetooth.service sys-subsystem-bluetooth-devices-%i.device suspend.target
[Service]
Type=oneshot
ExecStart=/usr/bin/hciconfig %I up
[Install]
WantedBy=suspend.targetThe issue seems to be that device is not ready yet when the service gets started.
Aug 19 08:24:55 xi hciconfig[1602]: Can't get device info: No such device
Aug 19 08:24:55 xi systemd[1]: bluetooth-auto-power@hci0.service: main process exited, code=exited, status=1/FAILURE
Aug 19 08:24:55 xi systemd[1]: Failed to start Bluetooth auto power on.
-- Subject: Unit bluetooth-auto-power@hci0.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit bluetooth-auto-power@hci0.service has failed.
--
-- The result is failed.
Aug 19 08:24:55 xi systemd[1]: Unit bluetooth-auto-power@hci0.service entered failed state.Unit file, however, implies, that service is executed only after hci0 devices get ready (see After declaration).
What could be wrong with this unit file?
Thanks.
Offline
Pages: 1