22.6.12

How to disable PulseAudio and enable dmix on Fedora 17

As root do:
chmod -x /usr/bin/pulseaudio
Then as your normal user do:
cd ~ && vi .asoundrc
Press the "i" key and copy and paste the following into vi's window:
pcm.!default {
    type plug
    slave.pcm "mix"
}

ctl.!default {
    type hw
    card 0
}

pcm.mix {
    type asym
    playback.pcm "mixout"
    capture.pcm "mixin"
}

pcm.mixout {
    type dmix
    ipc_key 1024
    ipc_key_add_uid true
    slave {
        pcm "hw:0"
        period_size 1024
        buffer_size 4096
    }
    bindings {
        0 1
        1 0
    }
}

pcm.mixin {
    type dsnoop
    ipc_key 1025
    ipc_key_add_uid true
    slave {
        pcm "hw:0"
        period_size 1024
        buffer_size 4096
    }
    bindings {
        0 1
        1 0
    }
}
Press the ESC key, type ":wq" and press enter.

Reboot and enjoy your PC that now runs at least as good as it used to before a sad clown called Lennart Poettering got hired at RedHat.

For refinements you can look into:
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
It's rather hard to read but with the above asoundrc file as a starting point you should be able to set up your audio the way you want. Do not attempt to uninstall PulseAudio packages like others suggest because that will bring down half of the system for no particular reason.

To revert to PulseAudio, as root do:
chmod +x /usr/bin/pulseaudio
Then as your normal user do:
cd ~ && rm .asoundrc
But I hope that with this info you'll never have to rely on that braindead, unfixable pile of junk ever again.

7 commenti:

Anonimo ha detto...

thank you thank you thank you!!!! audio is now great and responsive once agian

Sean Kane ha detto...

Brilliant. This helped me a great deal. Thank you!

Johnhere ha detto...

Another Pulseaudio down here on Fedora 19. Awesome solution !! finaly ! thank you so much.

Christof Arn ha detto...

Thanks! This works perfectly for me! The volume control keys of my keyboard now work. No need for volume control button. - If I need more sofisticated volume controls, I open up a console and type "alsamixer" ;-)

iUser ha detto...

"If anyone will need be, I will be over there, killing them all"
Well said, PulseAudio is pile of junk in every possible way...
Thank You very much for finding the path of light for all of us...
Thank You

AK ha detto...

You can also disable pulse by setting auto spawn to no in `/etc/pulse/client.conf`

Unknown ha detto...

As for the date this post was posted here, well today is September 2nd 2015, and is still rocking.
I say that because I just tried it on a CENTOS 6.7 machine and let me tell you IT DOES IT'S WORK.
Annihilating that PULSEAUDIO SHIT!

Thanks Thanks Thanks