Fix PulseAudio and Connman Issues on Artix OpenRC
For clarity, My current set up is:
- Operating System: Artix
- Init System: OpenRC
- Display Server: XLibre
- Desktop Environment: i3wm
- Wifi: Connman
PulseAudio Not Starting on Boot
I was running into issues with PulseAudio (sound server) not starting automatically after boot. When you read the documentation for starting audio when an Xserver starts, you will most likely see adding calls to start the audio server in the .xinitc or .xsession files, like this:
#!/bin/bash
/usr/bin/pipewire &
/usr/bin/pipewire-pulse &
/usr/bin/wireplumber &
exec i3
This is exactly what I had set up, and weirdly, it would only work half of the time.
The fix is simpler than expected:
- install the openrc init scripts for pipewire and pipewire pulse:
pacman -S pipewire-openrc \
pipewire-pulse-openrc \
wireplumber-openrc
- update openrc to start these under the default profile:
rc-update add -U pipewire default &&
rc-update add -U pipewire-pulse default &&
rc-update add -U wireplumber default
That’s it. Stupid simple, but I just posted it here in case anyone runs into the same confusion.
WiFi Does Not Always Work After Suspension
I was also having issues with my wifi. When I woke my computer from suspension/sleep, half the time the internet would stop working and I could not reconnect to my wifi. It would get stuck in “Configuration” phase.
While this may not be the “proper” solution, adding a hook to elogind solved the issue.
Create this file:
/lib/elogind/system-sleep/wifi.sh
#!/bin/bash
case $1/$2 in
pre/*)
rc-service connmand restart
;;
post/*)
;;
esac
* Don’t forget to make it executable
