Audio and music on Unix - Desktop Customization & Workflow
venam
Here's my new audio horror story on Unix.

I bought a usb headset (headphone+microphone) yesterday.
I plug it in and it doesn't magically work so I dive into documentation and online posts.
Pavucontrol popped up, it is an application that let you interface with pulseaudio. It didn't work on my Arch machine and I decided to give it a try on my Debian box. It worked flawlessly.
After doing a diff of the pulse configuration files I found my issue, that's what worked for me:
Code:
http://pub.iotek.org/p/vEOlSe3
[+] Uploaded file client.conf
http://pub.iotek.org/p/YxGaVtP
[+] Uploaded file daemon.conf
http://pub.iotek.org/p/YvLFHBI
[+] Uploaded file default.pa
http://pub.iotek.org/p/fBmZTsU
[+] Uploaded file default.pa.pacnew
http://pub.iotek.org/p/7m4JbNr
[+] Uploaded file system.pa
It also automatically switches to the usb headset when connected.

But there was still an issue I couldn't hear any sound as a normal user. I was firing mplayer to test the audio and after hours of debugging the .mplayer/config had this faulty line:
Code:
ao=alsa
I swapped alsa by pulse and this solved it.

Next on the list: MPD wasn't using my pulse configuration. As "I discovered in the manual", mpd lauches it's own instance of pulse when started as a global daemon and thus I had to switch from a global to a local setting.

Done... Still no sound.

I rechecked my .mpdconfig over and over again trying weird things that made no sense to finally find my issue:
Code:
audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}


audio_output {
       type     "pulse"
       name     "MPD - music server"
       server   "127.0.0.1"
}

I had those lines for the audio output. The first one being for the "artsy" in ncmpcpp and second for my pulse output.

However I didn't know that pulse had to listen on a TCP port to be usable from MPD localhost; the "server 127.0.0.1" in the above config.

Adding this line to /etc/pulse/default.pa made everything finally work.
Code:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
ninjacharlie
I feel your pain venam :(

PavuControl is such crap - it adds confusion for no good reason. Every time I change my audio setup in the slightest, it's bound to screw it up and I'll waste an afternoon fixing it. For instance, I recently bought a Schiit Fulla DAC, but when I plugged it in, no sound was sent through it. After opening pavucontrol, and fiddling around, I got it set up. However, when I went to play CS:GO, pavu decided that my mic should be the output of the DAC, so it just loopbacked (all because I forgot to set my mic as the default fallback).

I don't know how it can be fixed, but linux's audio system is crap right now. ALSA is usable for the most part, but most things require pulseaudio at this point, which inevitably means one will block the other somehow.
arcetera
In the meantime, I have an audio anti-horror story.

When I installed Void and CRUX (on Arch I used Pulse, which kinda "just werked"), I had to spend a while configuring them in both environments for some reason. It took me a while to get the perfect `~/.asoundrc`.

I installed OpenBSD on March 31, and to get audio working, I literally just had to `mixerctl -t outputs.master.mute` and it just worked. IIRC sndio can also be used on Linux if need be.
tudurom
The perfect .asoundrc

Code:
defaults.pcm.rate_converter "speexrate_best"

defaults.pcm.card 0
defaults.ctl.card 0

Good quality sound AND it works with firefox without pulse.
ninjacharlie
(03-04-2016, 07:20 PM)arcetera Wrote: I installed OpenBSD on March 31, and to get audio working, I literally just had to `mixerctl -t outputs.master.mute` and it just worked. IIRC sndio can also be used on Linux if need be.

Wow! If it's really that good I'll have to check OpenBSD out. I've been kinda reticent to install it since I've heard the hardware support is a few years behind linux (and I'm worried about wireless and graphics). Do you happen to know what the nvidia drivers are like?
arcetera
(04-04-2016, 11:03 AM)ninjacharlie Wrote:
(03-04-2016, 07:20 PM)arcetera Wrote: I installed OpenBSD on March 31, and to get audio working, I literally just had to `mixerctl -t outputs.master.mute` and it just worked. IIRC sndio can also be used on Linux if need be.

Wow! If it's really that good I'll have to check OpenBSD out. I've been kinda reticent to install it since I've heard the hardware support is a few years behind linux (and I'm worried about wireless and graphics). Do you happen to know what the nvidia drivers are like?

There are no nvidia drivers, period. Nvidia doesn't give enough info to do much. Nouveau exists, but it's heavily Linux-only, and doesn't work (obviously).
tudurom
(04-04-2016, 11:50 AM)arcetera Wrote:
(04-04-2016, 11:03 AM)ninjacharlie Wrote:
(03-04-2016, 07:20 PM)arcetera Wrote: I installed OpenBSD on March 31, and to get audio working, I literally just had to `mixerctl -t outputs.master.mute` and it just worked. IIRC sndio can also be used on Linux if need be.

Wow! If it's really that good I'll have to check OpenBSD out. I've been kinda reticent to install it since I've heard the hardware support is a few years behind linux (and I'm worried about wireless and graphics). Do you happen to know what the nvidia drivers are like?

There are no nvidia drivers, period. Nvidia doesn't give enough info to do much. Nouveau exists, but it's heavily Linux-only, and doesn't work (obviously).

can't they just study nouveau's code?
neeasade
I would imagine that would prove pretty difficult, as nouveau is a reverse engineering of proprietary Linux drivers[1]. I don't think it would be a very trivial effort and there would need to be a large enough nvidia-using openBSD userbase who were both competent and cared for such a thing.

https://en.wikipedia.org/wiki/Nouveau_(s...chitecture

Googling a bit led me to a thread and an article (under openBSD heading)

https://lwn.net/Articles/616097/
http://openbsd-archive.7691.n7.nabble.co...35541.html




Members  |  Stats  |  Night Mode