Add built-in audio support, modify/uninstall scripts and Trixie fix#5
Open
ermanno00 wants to merge 4 commits into
Open
Add built-in audio support, modify/uninstall scripts and Trixie fix#5ermanno00 wants to merge 4 commits into
ermanno00 wants to merge 4 commits into
Conversation
…nd HATs, improved device selection UI.
…ibraries for trixie
…uration, and management
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends the installer in three directions while keeping the
existing UX intact:
longer hides
bcm2835,Headphonesorvc4-hdmi— users can drivea speaker from the 3.5mm jack or HDMI without having to dismiss the
"no DAC found" fallback prompt.
scratch to rename the speaker, swap the audio device or remove the
stack.
uninstall based on what's currently on the system.
It also fixes a build failure on Raspberry Pi OS / Debian 13 "Trixie",
where
plistutilwas split out oflibplist-devinto its own package.Changes
install_airplay_v3.shselect_audio_device(): removed thegrep -iv 'bcm2835\|Headphones\|vc4-hdmi'filter. All cards returned by
aplay -lare listed and tagged[built-in]or[external/DAC]so the user can clearly tell themapart. Single-device auto-select is preserved.
DAC, audio HAT or built-in audio.
libplist-utilsto the APT dependency list. On Trixie theplistutilbinary needed byshairport-sync's--with-airplay-2configure step lives in this separate package, and the build fails
with
configure: error: plistutil can not be foundwithout it.New:
modify_airplay.shInteractive menu to modify an existing installation without rebuilding:
volume_max_db,default_airplay_volume)speaker-testnanoChanges are written to
/etc/shairport-sync.confvia targetedsedrules that match both commented and uncommented forms, and the service
is restarted automatically after each change.
New:
uninstall_airplay.shClean removal of everything the installer adds:
shairport-syncandnqptp/usr/local/bin/etc/shairport-sync.confand the sample/lib/systemd/system/,/etc/systemd/system/and/usr/local/lib/systemd/system/shairport-syncuser and group7000/tcp)
/tmp/airplay_uninstall_backup_<ts>/before deleting anything
APT build dependencies are intentionally not removed (they may be
in use by other software); the script prints the
apt-getcommand toremove them manually for users who want a fully clean state.
New:
airplay_manager.shThin wrapper that exposes a single menu:
install_airplay_v3.shmodify_airplay.shuninstall_airplay.shIt auto-detects whether
shairport-syncis installed and grays outmodify/uninstall when no installation is present.
README.mdRewritten to document the new scripts, the built-in audio support, the
Trixie/
libplist-utilsnote, and a troubleshooting section with themost common failure modes.
Compatibility
rootand invokesudoonly whereneeded — same convention as the original installer.
shairport-sync --with-airplay-2build flags.install_airplay_v3.share fully compatible with the newmodify_airplay.sh/uninstall_airplay.sh.Test plan
bash -npasses on all four scripts.appears in picker, audio plays from 3.5mm jack.
visible on iPhone.
choice works.
modify_airplay.sh: rename device → confirm new name appears iniPhone AirPlay picker after restart.
modify_airplay.sh: switch from DAC to built-in (and back) →output_device,mixer_control_name,mixer_deviceupdatedcoherently; service restarts cleanly.
uninstall_airplay.sh: full removal on a freshly installed Pileaves no leftover items in the verification step; reinstalling
afterwards works.
airplay_manager.sh: menu reflects the correct state before/afterinstall and uninstall.
plistutilcheck.