Skip to content

Instantly share code, notes, and snippets.

@Loupax
Created August 25, 2020 16:32
Show Gist options
  • Save Loupax/420b87951b8b118a95a629f231c6c869 to your computer and use it in GitHub Desktop.
Save Loupax/420b87951b8b118a95a629f231c6c869 to your computer and use it in GitHub Desktop.
Service unit that rest up Phonesim and powers the simulated modem that is needed for Pulseaudio to recognize bluetooth microphones
[Unit]
Description=Phonesim service
Requires=ofono.service
StartLimitedIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/bin/phonesim -p 12345 /usr/share/phonesim/default.xml
ExecStartPost=/usr/bin/sleep 1
ExecStartPost=/usr/bin/dbus-send --print-reply --system --dest=org.ofono /phonesim org.ofono.Modem.SetProperty string:"Powered" variant:boolean:"true"
Restart=Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment