Skip to content
Update after install System configuration authored by Projekt:Root's avatar Projekt:Root
......@@ -10,6 +10,7 @@
* [Setting up High Precision Event Timer](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#setting-up-high-precision-event-timer)
* [Check if noatime is set](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#check-if-noatime-is-set)
* [Setting up PulseAudio autospawn](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#setting-up-pulseaudio-autospawn)
* [Setting up different configuration files for audio]()
## Addind user to Audio and realtime group:
......@@ -180,6 +181,78 @@ Go to **.pulse/** folder in your home directory and edit `client.conf` file
```
autospawn = no
```
## Setting up different configuration files for audio
If you want to use ALSA for daily use and PulseAudio for bridging in Studio mode you can easily set this in rb-workflow.sh
All you need to do is uncomment `cp ~/.config/openbox/obconfigs/asoundrc.daily ~/.asoundrc`
in **Daily**:
```
...
daily() {
echo -e "\n${YELLOW} I'm changing current settings to Daily.\n${RESETCOLOR}"
cp ~/.config/openbox/obconfigs/autostart.daily ~/.config/openbox/autostart
cp ~/.config/openbox/obconfigs/daily-rc.xml ~/.config/openbox/rc.xml
# cp ~/.config/openbox/obconfigs/asoundrc.daily ~/.asoundrc
cp ~/.config/openbox/compton-configs/compton.daily ~/.config/compton.conf
...
```
and **Studio**:
```
studio() {
echo -e "\n${YELLOW} I'm changing current settings to Studio.\n${RESETCOLOR}"
cp ~/.config/openbox/obconfigs/autostart.studio ~/.config/openbox/autostart
cp ~/.config/openbox/obconfigs/studio-rc.xml ~/.config/openbox/rc.xml
# cp ~/.config/openbox/obconfigs/asoundrc.studio ~/.asoundrc
cp ~/.config/openbox/compton-configs/compton.studio ~/.config/compton.conf
...
```
and copy your audio settings from ~/.asoundrc to:
* ~/.config/openbox/obconfigs/asoundrc.daily
* ~/.config/openbox/obconfigs/asoundrc.studio
If you set PulseAudio bridge in Cadence your settings in .asoundrc will be overwritten and you can copy these settings to asoudrc.studio.
After setting this up, you don't need to do anything. Audio settings will be changed when you switch between Daily and Studio mods.
Examples:
**asoundrc.daily**:
```
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
```
**asoundrc.studio**:
```
pcm.!default {
type plug
slave { pcm "pulse" }
}
pcm.pulse {
type pulse
}
ctl.mixer0 {
type hw
card 0
}
```
More details about:
[Professional Audio](https://wiki.archlinux.org/index.php/Professional_audio) | [wiki.linuxaudio.org](https://wiki.linuxaudio.org/wiki/system_configuration#installing_a_real-time_kernel)
\ No newline at end of file