-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hero1 systemd service for external speaker
- Loading branch information
1 parent
ffeaaca
commit b816a70
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
scripts/services/hero1-demo/hero1-demo-external-speaker.service
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Set the external speaker as the default | ||
After=pulseaudio.service | ||
Requires=pulseaudio.service | ||
StartLimitIntervalSec=35 | ||
StartLimitBurst=30 | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
||
[Service] | ||
User=administrator | ||
Restart=on-failure | ||
RestartSec=1 | ||
ExecStart=/bin/bash -c '/usr/bin/pactl set-default-sink alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Set the external speaker as the default | ||
After=pulseaudio.service | ||
Requires=pulseaudio.service | ||
StartLimitIntervalSec=35 | ||
StartLimitBurst=30 | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
||
[Service] | ||
User=administrator | ||
Restart=on-failure | ||
RestartSec=1 | ||
ExecStart=/bin/bash -c '/usr/bin/pactl set-default-sink alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo' |