LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2020, 06:32 PM   #46
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys for decades while testing others to keep up
Posts: 2,658

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753

LOL Well I'm not gonna go THAT far but I think it is important to make this very clear....

I think uninstance should have put this in bold, too. "THIS only works for -Current"

It is possible to achieve in 14.2 but it's a bit more complex and not without tradeoffs.
 
Old 01-17-2020, 09:59 PM   #47
wael_h
Member
 
Registered: Mar 2009
Location: Phoenix, Arizona
Distribution: Slackware64
Posts: 56

Rep: Reputation: 17
I live with previous alsa* and pulseaudio

Hello all;

I hope this info is helpful to someone.
To start, I have a machine with poor linux support when it comes to PCI and PCIE drivers, it has intel
C600/X79 chipset.

Hardware:
Machine: Dell workstation T5600 was made in 2012 has latest bios dated 6/30/2019.
Audio Devices:
Quote:
root@yafa:~# lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation C600/X79 series chipset High Definition Audio Controller (rev 05)
05:00.1 Audio device: NVIDIA Corporation GF110 High Definition Audio Controller (rev a1)
09:04.0 Multimedia audio controller: Creative Labs EMU10k1X [SB Live! Value/OEM Series]
root@yafa:~#
Software:
Slackware64 current, upgraded up to date, with kernel 5.4.11.

I do not use nvidia audio. I like and use the SURROUND sound in SoundBlaster.
My pulseaudio problem started last May, when alsa-lib, alsa-utils and alsa-plugins
were upgraded to version 1.1.9. Pulseaudio was rebuilt soon after and later upgraded to
version 13.0 - September.

I could not use SURROUND sound on my creative lab SoundBlaster, stereo worked fine.
When SoundBlaster was configured for surround sound, errors were logged into my system
log and dmesg, sound was crackling/skipping and volume controls were useless ...
no surround in short.

What I did was downgrade alsa-{lib,utils,plugins} to 1.1.8 and pulseaudio to 12.2.
I had to compile all packages from source, I got them from slackware cumulative history
site here: Alsa packages built okay, that was NOT the case for pulseaudio, volume-test was failing
toward the end of compilation. I tried a fix posted online for removing --ffast-math compiler
flag, that did not work, volume-test still failed. I added --disable-tests switch to
configuration statement and pulseaudio was built. I have been using it for a while now, I do
not know if it will fail in the future. For now I can use surround sound with my SoundBlaster.

My modified pulseaudio.SlackBuild: https://pastebin.com/MXS2qZsj
Note the added 2 switches below:
--disable-bluez5 \
--disable-tests \

On a side note: /etc/rc.d/rc.alsa and /etc/rc.d/rc.alsa-oss had to be removed by hand,
removepkg did not delete them! I renamed them actually with:

Quote:
root@yafa:~# mv /etc/rc.d/rc.alsa /etc/rc.d/rc.alsa-hide
root@yafa:~# mv /etc/rc.d/rc.alsa-oss /etc/rc.d/rc.alsa-oss-hide
Good luck to all
Wael H.
 
1 members found this post helpful.
Old 03-26-2020, 04:24 PM   #48
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware/FreeBSD
Posts: 61

Original Poster
Rep: Reputation: Disabled
In this post you can see my instructions as to how to go pure ALSA on SlackWare -current. Do NOT follow the CONFIGURATION part! So you have to do what I say at the beginning only: get rid of PulseAudio and its garbage, replace Pulse based packages with ALSA based ones and configure slackpkg(8) to fetch ALSA packages. You stop here. From that point you keep reading there -> That is a crappy config which will deprive you of your microphone. Here is a new one from me! It works. It is perfect. Look closely and you will see the file and the folder <- All of that you have to put in /etc. It is perfectly documented so READ EVERY FILE and you will get the philosophy of writing ALSA configs. But... If you do not want to... You can just open sound_card.conf in asound folder and substitute your card number/name (aplay -l) to make it work. That is it. It werks. Use apulse for not working with ALSA programs (like Firefox). Keep in mind if you have apulse then during the compile time programs will think that you use PulseAudio and therefore be built for use with PulseAudio. To prevent this, remove apulse, build the shit, and put apulse back.

But... Before you do it... There is a chance that you have a really good sound card (capable of hardware mixing and hardware volume control), therefore you do not need the linked above config. What you do need is just this (save it as /etc/asound.conf)... Try it if you do not know.
Code:
# /etc/asound.conf
pcm.!default {
        type hw
        card 0 # Substitute your card here (aplay -l).
}

ctl.!default {
        type hw
        card 0 # And here.
}
If you are a really-really-really-really-really-really-really-really-really-really-really-really curious guy, by the way you should be, then read this and take a look at the list of plugins.

Last edited by unInstance; 03-27-2020 at 05:18 AM.
 
2 members found this post helpful.
Old 03-26-2020, 08:22 PM   #49
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 14.1_32
Posts: 325

Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by unInstance View Post
In this post you can see my instructions as to how to go pure ALSA on SlackWare -current. Do NOT follow the CONFIGURATION part! So you have to do what I say at the beginning only: get rid of PulseAudio and its garbage, replace Pulse based packages with ALSA based ones and configure slackpkg(8) to fetch ALSA packages. You stop here. From that point you keep reading there -> That is a crappy config which will deprive you of your microphone. Here is a new one from me! It works. It is perfect. Look closely and you will see the file and the folder <- All of that you have to put in /etc. It is perfectly documented so READ EVERY FILE and you will get the philosophy of writing ALSA configs. But... If you do not want to... You can just open sound_card.conf in asound folder and substitute your card number/name (aplay -l) to make it work. That is it. It werks. Use apulse for not working with ALSA programs. Keep in mind if you have apulse than during the compile time programs will think that you use PulseAudio and therefore be built for use with PulseAudio. To prevent this, remove apulse, build the shit, and put apulse back.

But... Before you do it... There is a chance that you have a really good sound card (capable of hardware mixing and hardware volume control), therefore you do not need the linked above config. What you do need is just this (save it as /etc/asound.conf)... Try it if you do not know.
Code:
# /etc/asound.conf
pcm.!default {
        type hw
        card 0 # Substitute your card here (aplay -l).
}

ctl.!default {
        type hw
        card 0 # And here.
}
If you are a really-really-really-really-really-really-really-really-really-really-really-really curious guy, by the way you should be, then read this and take a look at the list of plugins.
I'd give my right cod to do all that, but, in the past years I've tried others' suggestions and have no idea what mess I have working in my system anymore, other than I still have sound. Jumping through all the hoops again though has just got me so...down and bummed that I simply can't do it again. I just don't have the energy. I'll just hope that with the next version of 15ackware there will be some way to be able to choose which I want in my system - crapaudio...I mean pulseaudio, or alsa - which works and far better IMHO. I can dream and hope!

But thank you very much for all the work you've put into solving this for 14.2!
 
1 members found this post helpful.
  


Reply

Tags
alsa, moc stable, pulse audio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Get Sound from Pulseaudio -- PulseAudio Will Not Start JasonC10203 Linux - Software 4 11-28-2016 11:18 PM
Bypass pulseaudio problems and crashes when you don't have pulseaudio. Rinndalir Linux - Software 1 08-31-2016 01:00 PM
[SOLVED] How can I remove pulseaudio and use alsa MooseMagnet Linux - Software 5 05-12-2014 10:12 AM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration