/audio_switch

Install PipeWire and easy switch between PipeWire and PluseAudio

Primary LanguageShell

audio-switch:

Install PipeWire and easy switch between PipeWire and PluseAudio

With this tool you can install PipeWire on Debian based systems. It also provides an easy way to switch between PulseAudio and Pipewire and debug the installation.

Switching to PipeWire

asfodelus@menta:~$ audio_switch pipewire
-- Disable PulseAudio
    [OK] Service pulseaudio.socket is dead
    [OK] Service pulseaudio.service is dead
-- Enable pipewire
    [OK] Service pipewire.socket is listening
    [OK] Service pipewire.service is running
    [OK] Service pipewire-pulse.socket is listening
    [OK] Service pipewire-pulse.service is running
    [OK] Service wireplumber.service is running
-- Testing    
Server Name: PulseAudio (on PipeWire 0.3.48)
Playing WAVE '/usr/share/sounds/linuxmint-gdm.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono

Switching to PulseAudio

asfodelus@menta:~$ audio_switch pulseaudio
-- Disable pipewire
    [OK] Service wireplumber.service is dead
    [OK] Service pipewire-pulse.socket is dead
    [OK] Service pipewire-pulse.service is dead
    [OK] Service pipewire.service is dead
    [OK] Service pipewire.socket is dead
-- Enable PulseAudio
    [OK] Service pulseaudio.socket is listening
    [OK] Service pulseaudio.service is running
-- Testing
Server Name: pulseaudio
Playing WAVE '/usr/share/sounds/linuxmint-gdm.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mon

Check service status

asfodelus@menta:~$ audio_switch services --all
● Sockets:
LISTEN                      UNITS                 ACTIVATES             
/run/user/1000/pipewire-0   pipewire.socket       pipewire.service      
/run/user/1000/pulse/native pipewire-pulse.socket pipewire-pulse.service
/run/user/1000/pulse/native pulseaudio.socket     pulseaudio.service    

● Services:
  UNIT                           LOAD   ACTIVE   SUB     DESCRIPTION                       
  pipewire-media-session.service loaded inactive dead    PipeWire Media Session Manager    
  pipewire-pulse.service         loaded active   running PipeWire PulseAudio               
  pipewire.service               loaded active   running PipeWire Multimedia Service       
 pulseaudio.service             masked inactive dead    pulseaudio.service                
  wireplumber.service            loaded active   running Multimedia Service Session Manager

Quick check if everything working and view the sound daemon used

asfodelus@menta:~$ audio_switch check
Server Name: PulseAudio (on PipeWire 0.3.48)
Playing WAVE '/usr/share/sounds/linuxmint-gdm.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono

Type audio_switch without parameters for other options

Installation

Run the command wget -O - https://raw.githubusercontent.com/jtsagata/audio_switch/master/install.sh | sudo bash and follow instructions. It won't change anything on your system if you don't.

Troubleshooting and more Info