Created
August 25, 2020 16:32
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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