UPDATE: YES IT WORKS NOW!
Deleted the /storage/.kodi/userdata/scripts folder and recreate on same path. Copied the two .sh. Voila!
Don't know what gives the trouble but hey.
Big THANKS trogggy
UPDATE: YES IT WORKS NOW!
Deleted the /storage/.kodi/userdata/scripts folder and recreate on same path. Copied the two .sh. Voila!
Don't know what gives the trouble but hey.
Big THANKS trogggy
sh /storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh post
Works!
It seems there is something wrong in the 99-btautoconnect.rules.
Tried to copy the scripts to another folder, same behaviour.
journalctl -a | grep udevd
Nov 17 14:59:31 Raspi systemd-udevd[911]: failed to execute '/storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh' '/storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh': Permission denied
Nov 17 14:59:31 Raspi systemd-udevd[910]: Process '/storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh' failed with exit code 2.
Nov 17 14:59:31 Raspi systemd-udevd[913]: failed to execute '/storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh' '/storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh': Permission denied
Nov 17 14:59:31 Raspi systemd-udevd[910]: Process '/storage/.kodi/userdata/scripts/switchtobluetoothprofile.sh' failed with exit code 2.
..mhh?!
Ok, little problem here. It seems that the 99-btautoconnect.rules doesnt work for me. The addr is correct! Scripts with this path are working (tested in terminal, bash /...sh)
Any specific permission for the rule file?
Any progress anthontex?
Like this as script:
#!/bin/bash
sink_addr="00_22_37_1B_F7_2F"
mac_addr="00:22:37:1B:F7:2F"
alsa_card="module-bluez5-device.c"
if bluetoothctl <<< "info $mac_addr" | grep -qi "Connected: no"; then
bluetoothctl <<< "connect $mac_addr"
pactl set-card-profile $alsa_card off
sleep 6s
pactl set-card-profile bluez_card.$sink_addr a2dp
pactl set-sink-volume bluez_sink.$sink_addr 20%
else
bluetoothctl <<< "disconnect $mac_addr"
pactl set-card-profile $alsa_card output:HDMI+input:HDMI
fi
Display More
..but this is a copy/paste what i had found around the net. The addr is clear for me but what now?
The best would be to switch here automatically between the "Audio Profile swicher" profiles (more saved options in the profile1.json like video resolution, etc)!
Hope anybody here can light me up!
Same here! Audio stopped, video keeps running, BT Headphone still connected. Works sometimes 60-90min sometimes only 10-20min.
Next days i will post a log.
EDIT:And the usability is also terrible:
Raspi connected on AV receiver with passthrough mode on HDMI out.
To hear over BT Headset i must disable passthrough mode, power on the BT Headphone and connect with Raspi and the switch to Pulse Audio.
Other way doesnt work.
Try this: LibreELEC
LibreElec 7.02, Philips BT SHB9150BT.