-
Notifications
You must be signed in to change notification settings - Fork 90
Pipewire as a JACK Replacement #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
fe38f72
35ca3cf
13bc422
54c70f2
d2b253d
0598fb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,3 +6,88 @@ summary: Configuration of sound systems on Solus | |||||||||
# Sound | ||||||||||
|
||||||||||
Solus comes with Pipewire configured by default. | ||||||||||
|
||||||||||
## Pipewire as a JACK Replacement | ||||||||||
|
||||||||||
Install `pipewire-jack` by executing the following command: | ||||||||||
|
||||||||||
```bash | ||||||||||
sudo eopkg it pipewire-jack | ||||||||||
``` | ||||||||||
|
||||||||||
Currently, using `pipewire-jack` as a `JACK` replacement is not as smooth as one would think. You need to do some manual configuration to get JACK apps to behave appropriately. | ||||||||||
|
||||||||||
### Issues to be fixed | ||||||||||
|
||||||||||
With no configuration, `pipewire` doesn't switch to the appropriate sample rate for the project. | ||||||||||
|
||||||||||
 | ||||||||||
|
||||||||||
### Configuration | ||||||||||
|
||||||||||
|
||||||||||
1. Open the terminal and input the following commands: | ||||||||||
|
||||||||||
```bash | ||||||||||
cd .config/ | ||||||||||
mkdir -p pipewire/pipewire.conf.d/ | ||||||||||
sudo cp /usr/share/pipewire/pipewire.conf.avail/10-rates.conf pipewire/pipewire.conf.d/ | ||||||||||
sudo cp /usr/share/pipewire/jack.conf pipewire/ | ||||||||||
sudo chown yourUserName:yourUserName pipewire/jack.conf pipewire/pipewire.conf.d/10-rates.conf | ||||||||||
davidjharder marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
``` | ||||||||||
|
||||||||||
2. Open the `jack.conf` in your text editor and: | ||||||||||
|
||||||||||
1. Search for `node.rate`. | ||||||||||
2. Uncomment `node.rate`. | ||||||||||
3. Input the sample rate you wish JACK applications to open with after the `1/`. | ||||||||||
Common rates: 44100, 48000, 88200, 96000. | ||||||||||
|
||||||||||
Without this Pipewire doesn't dynamically adjust the sample rate for you whenever a JACK application opens. | ||||||||||
|
||||||||||
 | ||||||||||
|
||||||||||
3. Reboot your system. | ||||||||||
|
||||||||||
:::note | ||||||||||
After applying the configuration, there are delays of up to 2 seconds when beginning to play audio due to the `10-rates.conf` that allows `Pipewire` to change sample rates dynamically. | ||||||||||
|
||||||||||
After the sample rate is set, there are no delays. | ||||||||||
::: | ||||||||||
|
||||||||||
### Not Done Yet | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Give your headings descriptive names. They help the users navigate the document and find what they need easily. Some suggestions:
Suggested change
Suggested change
|
||||||||||
|
||||||||||
Enable the pro audio sound configuration for our card to avoid pops and crackles (also known as [Xruns](https://alsa.opensrc.org/Xruns)). | ||||||||||
|
||||||||||
**On Budgie**: Install `pavucontrol`. | ||||||||||
|
||||||||||
```bash | ||||||||||
sudo eopkg it pavucontrol | ||||||||||
``` | ||||||||||
|
||||||||||
Open `pavucontrol`, go to the **Configuration** tab and select the **Pro Audio** option from the dropdown menu for your card. | ||||||||||
|
||||||||||
 | ||||||||||
|
||||||||||
**On KDE**: Go to the `Audio` section of system settings. Select the **Pro Audio** option from the dropdown menu for your card. | ||||||||||
|
||||||||||
All is done! Happy audio production!! | ||||||||||
|
||||||||||
### Limits | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think troubleshooting is a more appropriate title |
||||||||||
|
||||||||||
If this is annoying you | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Try to use a more neutral language.
Suggested change
|
||||||||||
|
||||||||||
 | ||||||||||
|
||||||||||
You can adjust it by configuring the `limits.conf`. In this case we'll be using the `limits.d` for simplicity. | ||||||||||
|
||||||||||
Input the commands below | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As mentioned before, explain what the commands will do.
Suggested change
|
||||||||||
|
||||||||||
```bash | ||||||||||
sudo mkdir -p /etc/security/limits.d/ | ||||||||||
echo "@audio - memlock unlimited" | sudo tee -a /etc/security/limits.d/audio.conf | ||||||||||
``` | ||||||||||
|
||||||||||
**On Budgie**: Log out and log back in for changes to take effect | ||||||||||
|
||||||||||
**On KDE**: Reboot the system |
Uh oh!
There was an error while loading. Please reload this page.