Creating Four Dummy Sound Cards on Ubuntu 24.04

Abstract: Resolve missing audio device errors by creating four persistent dummy sound cards on Ubuntu 24.04 for application testing and isolation.

Created: 2026-09-06 by

To create four dummy sound cards on Ubuntu 24.04, load the snd-dummy kernel module with specific parameters using the command sudo modprobe snd-dummy enable=1,1,1,1 pcm_devs=4,4,4,4. This configuration initializes four independent virtual audio devices that function as standard ALSA sound cards, allowing applications to route audio streams to these non-existent hardware endpoints for testing or isolation purposes.

Understanding the snd-dummy Module

The snd-dummy driver is a built-in Linux kernel module designed to provide a software-only implementation of an audio device. Unlike physical hardware, it does not require any actual electronic components to operate. Instead, it captures audio data and discards it or processes it in memory, effectively simulating the presence of a sound card without producing audible output. This makes it invaluable for developers who need to test audio applications in environments where physical speakers are unavailable or when isolating audio processing pipelines from hardware-specific quirks. In Ubuntu 24.04, which utilizes the latest LTS kernels, this module remains a stable and reliable component of the ALSA (Advanced Linux Sound Architecture) subsystem. It allows system administrators to create multiple virtual devices simultaneously, each capable of handling its own stream of audio data. By configuring the module correctly, you can ensure that your system recognizes exactly four distinct sound cards, each behaving like a real piece of hardware from the perspective of user-space applications. For more information on troubleshooting general audio issues, see Solving No Sound Issue in Ubuntu: A Tech Support Guide.

Loading the Module with Specific Parameters

To instantiate four dummy sound cards, you must pass specific arguments to the modprobe command. The primary parameter controlling the number of devices is pcm_devs, which specifies the count of PCM (Pulse Code Modulation) subdevices to create. Setting pcm_devs=4,4,4,4 instructs the driver to create four separate cards, each containing four PCM subdevices. This structure ensures that each virtual card has enough capacity to handle playback and recording streams independently. The second critical parameter is enable. By setting enable=1,1,1,1, you explicitly activate all four created cards. Without this flag, the modules might be loaded but remain inactive, preventing applications from detecting them. The syntax uses commas to separate values for each individual card instance, ensuring that the kernel applies the settings uniformly across all four virtual devices. You can execute this by opening a terminal and running the following command:
sudo modprobe snd-dummy enable=1,1,1,1 pcm_devs=4,4,4,4
After executing this command, verify the installation by checking the list of available sound cards using aplay -l. You should see four entries labeled "dummy" in the output, confirming that the virtual hardware has been successfully registered with the ALSA system.

Making the Configuration Persistent

While the modprobe command works immediately, it does not survive a system reboot. To ensure that the four dummy sound cards are available every time Ubuntu starts, you need to configure the module loader permanently. This involves creating or editing a configuration file in the /etc/modprobe.d/ directory. Create a new file named 99-snd-dummy.conf using a text editor with root privileges:
sudo nano /etc/modprobe.d/99-snd-dummy.conf
Add the following line to the file:
options snd-dummy enable=1,1,1,1 pcm_devs=4,4,4,4
Save the file and exit the editor. Next, update the initial RAM filesystem (initramfs) to include this configuration during the boot process:
sudo update-initramfs -u
This step ensures that the module is loaded early in the startup sequence, before other audio services initialize. Rebooting your system will now automatically load the four dummy sound cards without requiring manual intervention. If you encounter difficulties after rebooting, check if the module is loaded correctly by running lsmod | grep snd_dummy. If the module is missing, ensure that no other audio manager is interfering with the initialization process. For further assistance with audio detection problems, refer to Can't get sound in Ubuntu despite detecting sound devices?.

Managing Audio Streams with Dummy Cards

Once the dummy cards are active, you can use them just like physical devices. Applications such as VLC, Spotify, or custom Python scripts can select these cards as their output destination. In GNOME-based environments, you may need to adjust the default sink using pactl or the graphical sound settings. Use pactl list short sinks to identify the PulseAudio names associated with the dummy cards. These names typically follow the pattern alsa_output.pci-0000_00_1f.3.analog-stereo but will reference the dummy driver instead. You can then set one of these sinks as the default for your session. Be aware that since these are dummy devices, any audio played through them will not produce sound. However, CPU usage may increase slightly depending on the application's processing requirements, as the audio data is still being handled by the software stack. This behavior is useful for stress-testing audio pipelines or monitoring resource consumption without external hardware interference.

Frequently Asked Questions

Why is no sound coming out of my dummy cards?

This is expected behavior because dummy sound cards are software simulations that do not connect to physical speakers. They capture audio data and discard it rather than converting it into electrical signals for hardware playback. Use them for testing application logic or routing streams, not for listening to audio.

How do I remove the dummy sound cards if I made a mistake?

You can unload the module by running sudo modprobe -r snd-dummy. However, if applications are currently using the devices, the removal may fail. Close all audio-playing applications first, then attempt to remove the module again. To prevent auto-loading, delete or comment out the options line in /etc/modprobe.d/99-snd-dummy.conf.

Can I change the number of dummy cards after loading?

No, the number of devices is determined at module load time. You cannot dynamically add or remove cards while the module is active. To change the configuration, you must unload the existing module and reload it with the new parameters using modprobe.

Do dummy sound cards affect system performance significantly?

The performance impact is minimal for most modern systems. Since the audio data is processed in memory and discarded, there is no heavy encoding or hardware communication overhead. However, if many high-bandwidth applications write to these devices simultaneously, you may notice a slight increase in CPU usage due to buffer management.

How can I verify which applications are using the dummy cards?

You can use the pactl list short sinks command to view active sinks. Additionally, tools like pavucontrol (PulseAudio Volume Control) allow you to visually inspect which application is outputting audio to which device. Look for entries labeled "Dummy" in the output tab of this utility.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More