aconnect(1)
โจ aconnect(1) โ General Commands Manual ๐
Okay bestie, the manual name is aconnect(1) and it's giving ALSA sequencer connection manager ๐ Let me walk you through it, no cap ๐
๐ฆ NAME
aconnect โ ALSA sequencer connection manager ๐ง
๐ SYNOPSIS
aconnect [-d] [-options] sender receiver
aconnect -i|-o [-options]
aconnect -x
๐ธ DESCRIPTION
okay so aconnect is a utility for connecting and disconnecting two existing ports on the ALSA sequencer system ๐ฅ Ports with the arbitrary subscription permission, like the ones made by aseqview(1), can be hooked up to any (MIDI) device ports using aconnect ๐ For example, to connect from port 64:0 to 65:0, you run this:
% aconnect 64:0 65:0
The connection is one-way, so all the data going to the sender port (64:0) gets redirected to the receiver port (65:0) โจ When another port (e.g. 65:1) is attached to the same sender port, the data goes to both receiver ports ๐ To disconnect, use the -d option ๐
% aconnect -d 64:0 65:0
You can also use the client's name instead of the address ๐ซถ
% aconnect External:0 Emu8000:1
Then port 0 of the client matching the string "External" gets connected to port 1 of the client matching "Emu8000" ๐
Another thing aconnect can do is list the ports that are around, based on the condition you give it ๐ The input ports (the ones that may become sender ports) get listed with the -i option ๐ฆ
% aconnect -i
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 64: 'External MIDI-0' [type=kernel]
0 'MIDI 0-0 '
Similarly, to see the output ports, use the -o flag ๐
You can remove all existing exported connections with the -x option ๐งน This is super useful for shutting down the ALSA drivers, because modules with sequencer connections cannot be unloaded unless those connections are removed first ๐ญ
โจ OPTIONS โจ
๐ CONNECTION MANAGEMENT
-d,--disconnectโ Disconnects the given subscription ๐-e,--exclusiveโ Connects ports in exclusive mode. Both the sender and receiver ports can't be connected by any other ports anymore ๐-r,--real queueโ Converts the time-stamps of event packets to the current value of the given real-time queue. Lowkey not super useful, though, since the receiver port has to use (not necessarily own) the specified queue ๐-t,--tick queueโ Like-r, but the time-stamps get converted to the current value of the given tick queue ๐ฆ
๐ธ LIST PORTS
-i,--inputโ Lists the existing input (readable) ports. This is exclusive to-o๐ง-o,--outputโ Lists the existing output (writable) ports. This is exclusive to-i๐ง-a,--allโ Lists inactive ports too ๐-l,--listโ Lists the current connection status. The connected and connecting ports from/to each port get listed together. The suffix flag[ex]means the connection is exclusive, and the suffix flags[real:#]and[tick:#]mean the connection includes real-time or tick conversion on the listed queue, respectively ๐
๐งน REMOVE ALL CONNECTIONS
-x,--removeallโ Removes all exported connections ๐ซง
๐ฆ SEE ALSO
aseqnet(1), aseqview(1) ๐
๐ AUTHOR
Takashi Iwai <tiwai@suse.de> ๐
Bye bestie, this manual page was brought to you by aconnect(1) ๐ Last updated August 31, 2000 ๐ Stay iconic, stay connected ๐
๐ฆ where this page comes from
- alpine 3.22: alsa-utils-doc 1.2.14-r0 ยท GPL-2.0-or-later
- alpine 3.23: alsa-utils-doc 1.2.14-r4 ยท GPL-2.0-or-later
- alpine 3.24: alsa-utils-doc 1.2.15.2-r1 ยท GPL-2.0-or-later
- arch rolling: alsa-utils 1.2.16-1 ยท GPL-2.0-or-later
- centos-stream 10: alsa-utils 1.2.16-1.el10 ยท GPL-2.0-or-later
- centos-stream 9: alsa-utils 1.2.16-1.el9 ยท GPLv2+
- debian trixie: alsa-utils 1.2.14-1 ยท GPL-2.0-only
- fedora 43: alsa-utils 1.2.14-2.fc43 ยท GPL-2.0-or-later
- fedora 43: alsa-utils 1.2.16-1.fc43 ยท GPL-2.0-or-later
- fedora 44: alsa-utils 1.2.15.2-3.fc44 ยท GPL-2.0-or-later
- fedora 44: alsa-utils 1.2.16-1.fc44 ยท GPL-2.0-or-later
- nixos 26.05: alsa-utils 1.2.14
- nixpkgs unstable: alsa-utils 1.2.16
- opensuse-leap 16.0: alsa-utils 1.2.14-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: alsa-utils 1.2.14-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: alsa-utils 1.2.14-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: alsa-utils 1.2.14-160000.2.2 ยท GPL-2.0-or-later
- ubuntu questing: alsa-utils 1.2.14-1ubuntu1
- ubuntu resolute: alsa-utils 1.2.15.2-1ubuntu1 ยท GPL-2.0-only
- ubuntu stonking: alsa-utils 1.2.15.2-1ubuntu2 ยท GPL-2.0-only
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms