Another Slackware user with PulseAudio problems
Already looked at some similar PulseAudio threads, but probably have not found everything yet.
My observations: PulseAudio tries to totally take over all sound (by indirection the ConsoleKit is taking over all sound). It has many interfaces for intercepting sound meant for other drivers. It does not seem to have any provision for cooperating nicely with other drivers. These are the conclusions that I have come to after fighting with it for several weeks. I have no interest at all in how some other users may have such a limited usage of sound that PulseAudio is perfectly fine for them. Those people should go away right now. I want to use Jack. I need to use SDL, as I am developing SDL software. PulseAudio is blocking my SDL output. If I kill the pulseaudio task the SDL sound gets through. Question 1: PulseAudio wants the audio group all to itself. Any evidence that this is necessary. Question 2: I am getting two pulseaudio tasks. The PulseAudio docs seem to claim that starting extra pulseaudio, like one per user, is a good thing. What I see is that the first pulseaudio uses up the CPU time, but produces no sound. How many pulseaudio is normal, how many is workable. Question 3: My pulseaudio volume control only shows the dummy output. I have no idea which pulseaudio task it is referencing, or why pulseaudio is having trouble. Question 4: I can use a TiMidity executable from my Linux 2.6, that works perfectly fine, even when PulseAudio is blocking all the other sound. It goes directly to ALSA port. But the TiMidity compiled on Linux 4.4.14 sounds like it is synthesizing at 4KHz. Is the latest TiMidity output going through PulseAudio even when I tell it an ALSA port? Question 5: Does PulseAudio corrupt sound, like resampling it at 4Kz, when it feels like it. When playing TiMidity using aplaymidi, I get the sound going bad (sounds lik 4KHz), then good again, two or three times during the song (over 4 minutes). Question 6: The bluetooth driver only interfaces with PulseAudio. Other programs will select the output sound device. Question 7: I am going to put a sound device selection mechanism in my programs. How do I bypass PulseAudio and send sound directly to ALSA, from a program, and especially from a SDL program? Without the user having to reconfigure anything? Question 8: The PulseAudio volume control is dumbed down, inadequate, incomplete. Any alternatives, like using ALSA-mixer. |
I'm one of those that has limited usage of sound. So, I don't have a whole lot of experience with configuring pulseaudio. On my HTPC and my desktop, sound just worked without any configuration out of the box. I haven't found any programs that don't work that way, although, I've never dug into them enough to know if I have SDL-based audio output (I imagine I do, since I have built SDL2_mixer for something).
However, the first question to ask is have you gotten rid of your previous audio configuration files like /etc/asound.conf and ~/.asoundrc (or at least moved them so they aren't being referenced)? They were likely designed with alsa in mind and generally don't work with pulseaudio (at least not without heavy modification). A good chunk of pulseaudio issues we see in the forum is due to these configuration files wreaking havoc. I just wanted to get that question out of the way... The next question is to make sure you do not have /etc/rc.d/rc.pulseaudio as executable. For the majority of users, there's no reason to have that executable. As to your questions, unfortunately, I can't answer most of your "questions" (they aren't all questions). But, I think the answer to "question" #6 is the whole reason we have pulseaudio in the first place. BlueZ removed alsa support in v5, and that is what prompted Pat to switch to pulseaudio. The below is from the 14.2 changelog: Code:
After upgrading to BlueZ 5 recently, everything seemed to be working great, |
Insure that /etc/rc.d/{rc.alsa,rc.alsa-oss,rc.pulseaudio} be all 0644. And yes, a pulseaudio daemon is started when you log in as regular user. At least that's what most of us do and are happy with, maybe with simpler or easier to deal with use cases though.
Other than that, If you find something weird or wrong with pulseaudio, I suggest that you file an issue or several issues upstream, to get a chance they be worked on. |
Quote:
Quote:
Quote:
Quote:
How did you install TiMidity? A configuration option can define what system it supports, and when I last checked, Pulse wasn't listed as an option. Bottom line: as far as I know, TiMidity should be unaffected by Pulse. The fact that it appears to be is odd. Maybe kill PulseAudio and test. Quote:
Quote:
Quote:
Quote:
Well, there's alsamixer :) and, I guess, JACK. |
|
Quote:
|
Quote:
When that's done, google "pulseaudio jack" - there are heaps of reasonable looking howto's out there. chris |
Quote:
|
Pat has just pushed an update on -current that contains a rebuilt Firefox with ALSA support
|
Quote:
Code:
Fri Mar 10 05:41:05 UTC 2017 |
Thank you. I did find the upgrade slack packages and have already installed them.
It sounds like anyone doing any music or audio work has to take an axe to PulseAudio, without actually removing the libraries. That is what I needed to know first, as every configure is going to see that the PulseAudio libraries are present. If they needed to be removed it has to be before compiling any packages. Removing them latter will cause all kinds of new problems. I have about 100 packages I have downloaded (library trip, they have a fast internet connection). Slackware 14.2 was installed on wiped bare directories, so there should be no left over configuration files. When through that hell with that on Linux 2.4 installation. Will look for the /etc/asound.conf file though, thank you. The Slack howto file I found on how to tame PulseAudio seems helpful, but I also need to know the current situation, and the other users perspective. After two weeks of fighting with it I found there are far too many variations of setups to do random testing. I do not know what got compiled into that new TiMidity, that is the problem. Comparing their sources with a diff just resulted in a huge file with lots of changes. I am having the similar problems with compiling plib, it compiles with warnings and then fatal errors due to type conversion. |
Too bad pulse can't be tied strictly to bluez and only loaded strictly by bluez usage in the rc script. That way it lives and dies with bluez only.
|
I have a VIA southbridge with AC97 as a sound device.
ALSA is listing it as a device properly. But, using fuser, I can see that one of the pulseaudio (and it does not say which one) has the /dev/snd ports. Pulseaudio does not list it as a card > pacmd list-cards says there are 0 cards The syslog has this in it: <code> Mar 16 12:27:00 MySys pulseaudio[825]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed. Mar 16 12:27:00 MySys pulseaudio[1171]: [pulseaudio] module-alsa-card.c: Failed to find a working profile. Mar 16 12:27:00 MySys pulseaudio[1171]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed. Mar 16 12:27:05 MySys pulseaudio[2037]: [pulseaudio] module-alsa-card.c: Failed to find a working profile. Mar 16 12:27:05 MySys pulseaudio[2037]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed. Mar 16 12:27:05 MySys pulseaudio[2037]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files Mar 16 12:47:11 MySys pulseaudio[825]: [pulseaudio] module-alsa-card.c: Failed to find a working profile. Mar 16 12:47:11 MySys pulseaudio[825]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed. Mar 16 12:47:11 MySys pulseaudio[2037]: [pulseaudio] module-alsa-card.c: Failed to find a working profile. Mar 16 12:47:11 MySys pulseaudio[2037]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed. </code> As far as I can tell the /usr/share/pulse files are there. This was installed directly from Slackware 14.2 CDROM. I have managed to disable bluetooth, to eliminate one error message. I do not have any bluetooth hardware. I have commented out the pulseaudio in the /etc/asound.conf file, so next time I boot I should have normal ALSA sound, maybe. But that will still leave the pulseaudio only programs stuck, and alot of error messages piling up in my syslog. I still need to find out what is wrong with pulseaudio. I have been thinking of starting it in system mode so as limit it to one task. The ArchLinux PulseAudio troubleshooting say that is possible, but it will defeat some features of PulseAudio. So what features will it defeat, and do they matter that much ?? I have many consoles running for the same user. I suspect that pulseaudio screws up during console switches. There are hints that it mutes or blocks sound of the first user, which is exactly not what I want to happen. It seems that they think that who ever has the console is supposed to OWN the sound device. To change this kind of behavior you are expected to learn the pulseaudio programming language they use in their files (I really cannot call them config files). PulseAudio FAQ says that PulseAudio expects to have the audio group to itself. I found this in the PulseAudio FAQ where it said to make sure to remove all users from the audio group, and that PulseAudio should be the only member of the audio group. Failure to do this will result in slow switches of some kind. Its on their website. <Just don't code for Pulse.> If my program sends sounds to ALSA and the usual /etc/asound.conf that PulseAudio installs is present, then it will redirect my sounds to pulseaudio. It has been posted elsewhere (ArchLinux) that two lines in the /etc/asound.conf have be commented out to get ALSA working again. My program cannot change a users /etc config files, and requiring that those lines be changed would certainly be a massive alteration of all of a users sound setup. I suspect that is happening to TiMidity, but I do not know what each of these cryptic config settings actually does. I am a little surprised that no one could tell me how many pulseaudio should be running. To count them try: > ps -A | grep pulse Also it would be helpful to know which is accumulating run time. On my system the first one accumulates the run time, and the second one (started by XFCE) has 0 run time. |
Did you read /etc/pulse/default.pa to see what you can can comment out?
|
I have disabled the ALSA redirect to pulseaudio by commenting out the two lines in the /etc/asound.conf.
The alsamixer controls actively do useful things again. I have been into the /etc/pulse files and disabled bluetooth. I read them all but there is not much else that is clear. I have disabled the first pulseaudio by removing exec priv from /etc/rc.d/rc.pulseaudio. The file said that it starts a system pulseaudio daemon. XFCE is starting a pulseaudio, so there is one available, but it is not working. Throws error messages about not being able to find ALSA profile, whatever that is. I have checked that the /usr/share/pulse files are there. Being that there was some sound previous (bad, but present), it must have been able to find the files before. It may be the first pulseaudio was actually handling some sound and the second started by XFCE cannot find the profile files. I may be that Slackware is setup only for the system pulseaudio that is started by rc.d/rc.slackware, as Slackware installed that file as executable. The pulseaudio started by XFCE may be a rogue. I wish someone with Slackware would tell me which pulseaudio they have running and which of these setups is supposed to work. As of now, I can play midi using the latest TiMidity, without the noise problems it had before. Part of that may have been priority issue, as it was set to a priority much higher than pulseaudio. If ALSA then redirected the output through pulseaudio, then the driver would be fighting for CPU with TiMidity. With only ALSA handling sound this does not happen. Setting priority of TiMidity using the TiMidity start command line will always do this as it adds your number to a real-time priority that is much higher than anything else. To set a lower priority in the rc.d/rc.local you must discover the TiMidity PID and then use system tools to set it directly. I set it to be close to the pulseaudio daemaon priority. I can also use audacious, as it has an output selection that can select ALSA. Now that it does not redirect through pulseaudio it works and sounds great. MPlayer sounds horrible and scratchy (same CD and songs as tested on Audacious). It also does not read the CDROM until the buffer is empty, and so the music stops every 10 sec to read more of the CDROM. Cannot find a setting to fix that or reason why there should be one. KPlayer is a front for MPlayer and behaves exactly the same. Amarok has gone amok. It was working last week, it would play its default music. Now it just flickers alot, with this little box that goes on and off about 3 to 4 times a second. The little box has pause and cancel buttons, but you cannot hit them. Also Amarok is not responding so to even close it you must go through the "Program not responding" messages. Still do not have sound for the Pairs program (which did have sound a couple weeks ago). SDL sound still does not seem to work. This is in spite of it having worked after killing the pulseaudio daemon during a previous test. I would be surprised if they managed to route it through pulseaudio, but not too surprised considering what a mess pulseaudio has caused. I would not be too surprised if it turned out that some programs were using the system pulseaudio and some were using the XFCE pulseaudio. Then the two pulseaudio daemons were fighting to grab the sound devices, so only some programs would work depending on who had grabbed it. |
Quote:
Code:
/usr/bin/pulseaudio --start --log-target=syslog Quote:
|
Some things sound very weird here and definitely hint towards some issues specific to your system.
The pulseaudio init script by default is not used, you have to specifically enable it if you have a use case that needs it. Normal recommendation is to not use it. I'm running KDE and have KDE starts pulseaudio, I have exactly one process running. Are you starting timidity from an init script? If yes, you might have to change that to start timidity on login of your user instead. |
I think that one way to suppress this stuff...
Code:
Mar 16 12:27:00 MySys pulseaudio[825]: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="1" card_name="alsa_card.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed. Code:
### Automatically load driver modules depending on the hardware available I haven't tried it on my systems, so I don't know what else will complain if you do it. |
Have had some success, but not totally.
Discovered by pure desperation that pacmd has an "info" command that will dump who is connected to it. I did not find this documented anywhere, not even in the PulseAudio man pages. So if you are having problems too, write it down or memorize it. Best way to examine PulseAudio >> pacmd >>> help >>> info >>> stat >>> dump Figured out something about the PulseAudio error messages. Guessing about this because they do not document any of this stuff. ** If you have a built-in sound device on your Motherboard, watch out ** ** ALSA has detection that can find it. ** PulseAudio does NOT detect it, so no cards. ** To PulseAudio, ALSA is NOT A CARD, so it does not detect it using udev and does not detect anything using module-alsa-card either. ** You must manually load module-alsa-sink to get sound to go to ALSA NOT-A-CARD. ** After manual configuration, udev detect and many other modules are extraneous. They can be commented out to simplify things (optional). ** You will get the ALSA-sink as an output (but it is not a card). This is likely a problem for anyone with an AC97 on their motherboard. This setup is bad enough that there ought to be some menu selection in a setup tool to select (real card, AC97, other on-board sound device, external device) etc.. and let the tool set this mess up. Can play music file using audacious (ALSA), and amarok (pulseaudio). Amarok has settled down now that there is no CD in the CDROM drive. Still do not know what it was doing, but have found two songs from the CDROM that mysteriously appeared in my directory. I can have dragonplayer play simultaneous with audacious playing different music. The Pairs game has sound again. It still cannot pronounce half of the Linux names, gets stuck. Has a serious defect in its text to speech converter that fails with the shipped game sounds. ALSA direct does sound better than through PulseAudio. I can use audacious->ALSA to play a song at much higher volume with full richness than dragonplayer->PulseAudio. For the same music, PulseAudio seems to clip when set over 110%, a level that is much quieter at the speakers than ALSA direct. The fuser command does not seem to indicate ownership of the device. > fuser -v /dev/snd/* I have seen fuser list three users of one device at the same time. I think they are all mixing through ALSA though. TiMidity is one reported and I know that goes through ALSA. Have not figured what fuser is actually indicating with that name, or how it gets it. If it is just a search of what programs think they are outputting to that device (indirectly) then its meaning is quite different that what I initially would have thought. Slackware shipped an SDL library that is connecting to pulseaudio. That is why SDL sound was not working (because pulseaudio was not working). I got sound effects from SDL now, but not SDL MIDI music. ** NO SDL MIDI ** I DO NOT have MIDI music for SDL. Whatever they did does not route MIDI to TiMidity anymore. I have TiMidity working, I can play songs using aplaymidi, so that is not the problem. Installing the SDL library for Linux 2.6 may be an answer. I will get better sound and less hassle getting it away from PulseAudio. Thanks for the help. Will post more later if any more real revelations are discovered. |
I don't wish to do anything even remotely like hijacking this thread but it seems OP would be just as happy as I would be to eliminate Pulseaudio altogether. Any benefits it may offer are either of no benefit to me or are not worth the tradeoffs. I have no Bluetooth gear nor do I intend to start. While there is now a version of Jack that will function with Puleaudio they've had to leave out function I prefer to keep and I NEED Jack or I'm back to regular dual-booting to Windows, something I have been happily free from for over 5 years.
I have tried recommended means of removing Pulseaudio but I get errors and erratic behaviour. Can anyone tell me what 14.2 Mutilib has that is currently dependent on Pulseaudio so I can either eliminate or reconfigure it/them and dump this POS. |
Quote:
Then someone could take those packages and host them so people could use slackpkg+ to install a pulseaudio free system. If no one would be willing to host them, but someone else would be willing to do the work of building the packages, I could host them. Quote:
|
Quote:
So much for pulseaudio multiplexing sound. It can't even handle the startup of a VM. I could be wrong, of course, but this is the first problem I've had with sound since I bought my microphone last year, when pulseaudio in its infinite wisdom decided my microphone was my new playback device. |
Quote:
|
Quote:
But this pavucontrol is new to me and might come in useful some time, so thanks. |
Code:
** If you have a built-in sound device on your Motherboard, watch out ** Code:
lspci reports: |
Quote:
As for the second, can you not understand the need to communicate frustration and even anger for the strong-arm adoption imperative that, at least for some, creates so many more problems than it solves (and mostly to benefit crappy onboard sound, leaving those of us who spend for actual quality in audio, which matters so much to those of us that work in it) that it seems like a solution searching for a problem? Please tell me why it' a good thing to suppress one's honest opinion in some attempt at phony politeness that is far from truthful or accurate. I think OTOH it is important to communicate that some people in fact DO find it a POS. It has certainly cost me many hours of hair pulling nastiness, and for what? Bottom line - I fully understand and agree with the availability of enough options to suit even the lowest common denominator. What I don't understand nor approve is exclusion where it becomes required to have it AND a huge mess to uninstall and switch. That does not seem at all like the Linux that won me over and kept me pleased for going on decades. |
Quote:
Would you mind adding a bit more info about your sound device so we can research a bit more based on that? lspci output should be fine. dmesg output would also be nice so we can see what udev does on boot with the sound device. This is important because theoretically pulseaudio should do the same. Quote:
Quote:
Quote:
Seriously though, this is not some proprietary shit. This is open source software built by a community that's accessible and trying to help. If this is such a big deal to you, why don't you spend some effort and figure out how to make it better? For example, the pulseaudio <-> jack integration is just waiting for someone to write a SlackBuild and submit it to SlackBuilds.org. I'm pretty sure you'd make a whole bunch of people happy with that. |
SDL2 now goes into -Current
Code:
Sun Mar 19 05:27:13 UTC 2017 |
Quote:
|
1 Attachment(s)
It's easy to remove if you don't have KDE, just get rid of the libpulse package and see what breaks.
I think on my machine it was only mpg123 that depended on it, but I only install like 20% of the system libs and build custom XFCE on that. |
Quote:
MPlayer, alsa-plugins, audacious-plugins, ffmpeg, gst-plugins-good0, gst-plugins-good, kde-runtime, kmix, libao, libcanberra, mpg123, pamixer, pavucontrol, phonon, pulseaudio (obviously), sox, xfce4-pulseaudio-plugin, and xine-lib. |
Thank you, elcore, but I'm afraid I'm rather fond of KDE or more specifically several KDE apps which substantially "raises the price of poker" for me. I suspect that ppr_kut is quite accurate that it is not going away and will in all likelihood grow as a dependency, much to my chagrin. It's strength as a centralized manager is also it's weakness in that it is getting more difficult with time to simply assign a different manager, like the more limited ALSA, to specific apps, let alone remove it altogether.
|
Quote:
Quote:
No wonder users vent. |
Quote:
ppr:kut's post came across to me as something like: "Yaay finally someone gives me something I can actually work with! I might be able to work on this problem now!" My interpretation only; apologies in advance if I've totally misread the situation. |
Quote:
|
Quote:
If professionalism is important, it should be even more as a contributor. |
Quote:
|
Quote:
My insincere apologies that I was brought up to "cut to the chase" and look at the meaning, rather than the symbol, in the interest of unobfuscated accuracy and communication. My sincere empathy that anyone took it as "blunt force trauma" but I am singularly unconcerned with what I consider to be silly games, especially when those games are obstacles to solutions. Say what you mean and keep it direct to the point. That's how I roll. If that is irretrievably offensive to some high degree, I have no problem with being ignored by those who indulge in "tilting at windmills". |
Quote:
MPlayer, ffmpeg, mpg123, I recompile them to avoid dependency and also to support more formats. alsa-plugins, libao, xine-lib, I have these installed, but apparently there was nothing wrong so I have not rebuilt them. The rest of the listed packages is mostly KDE related and I don't use or install that anymore. KDE4 is not modular enough, my experience is that entire kdebase breaks without libpulse and the only reason for that is because audio notifications are not a module. QT devs wrote a blog recently about modules and the direction they will take, so I guess there's a chance for KDE to decouple some things in the future. |
Quote:
|
Pardon my ignorance, but if i understood correctly, pulseaudio is mandatory for bluez > 5 so that people can use their hearing aids and other bluetooth devices. Is that correct ?
Assuming that the https://github.com/Arkq/bluez-alsa project does not provide the necessary functionality and cannot be used to rid us of pulseaudio, can't the pulseaudio be linked only to the bluez stack and every other package that has optional pulseaudio support like kmix, ffmpeg and others that Patrick mentioned be compiled with "--disable-pulseaudio" or relevant flag ? Since the pulseaudio daemon autostarts for every user when needed, wouldn't this scenario allow the bluetooth devices to work correctly and allow everyone else that doesn't have bluetooth devices not to install the pulseaudio package ? |
This is definitely NOT my area of expertise, but I did come across this. https://wiki.archlinux.org/index.php...o_through_JACK
As I read it, would need to recompile pulseaudio with jack support. The Arch script may offer some ideas. https://git.archlinux.org/svntogit/p...ges/pulseaudio The SlackBuild for jack2 appears to add the necessary dbus support. https://www.slackbuilds.org/reposito...2/audio/jack2/ For more on module-jackdbus-connect https://www.freedesktop.org/wiki/Sof...les/#index44h3 Of course, I am probably way off base. |
Quote:
Quote:
Since we are pretty much the face of the majority of Slackware support to the internet, it would be nice to not detract from what we provide by calling things POS. You can certainly vent your dissatisfaction of a product without resorting to petty name calling (and as I said, the rest of your initial post did just that). There is no issue discussing the removal of software from Slackware, but let's just keep it at that. FreeSlack does a good job at that. I'm sorry. I didn't intend for this to be such a big deal. That is why I kept my request short and sweet and at the end of a post where I tried to provide help. |
Quote:
Quote:
No offense intended, but you may be nitpicking here - and referring to a piece of software as a "POS" is not name calling by anyone's definition - as that would usually mean targeting a person(s). Most users/potential users are mature and level headed enough to be able to judge software on it's merits, usefulness and how well it fulfills their needs, not from some off the cuff comments and opinions being expressed on a forum. :hattip: |
Quote:
So, yeah, I think in a public forum such as this, where the people asking for help might not have debugged a software problem in their entire life, that @ppr:kut so rarely gets enough detail about the problem without having to pull teeth that he might comment such as he did. You, OTOH, appear to be letting your dislike of pulseaudio spill into your perception of others and their intentions. |
Quote:
Quote:
I don't have any problems with people desiring to remove pulseaudio from their system. Slackware is quite versatile in allowing users to customize their systems. And as I said earlier, if no one else wants to, I'd be willing to host a slackpkg+ capable repo of the rebuilt packages needed to remove pulseaudio... I just won't do the work on rebuilding the packages myself since I wouldn't use them and it wouldn't be easy to test them. |
I have no interest at all in how some other users may have such a limited usage of sound that PulseAudio is perfectly fine for them. Those people should go away right now.
Now it is the first paragraph. Dumping an irrelevant how it "works for me" is of no help to those who are having trouble with PulseAudio. If it is not the same hardware as I have, it is not relevant. As for all the other garbage going on in MY thread, go take it to another thread. Someone is clicking on "Did you find this post helpful" for political reasons. I see it on little one liners that offer nothing except opinion. Apparently the reps are tainted by political supporters. I am going to continue with what I have discovered. I want any further comments to be about configuration. If you feel the need to defend PulseAudio, please sit on your lips, fingers, or whatever. I cannot think well of the PulseAudio development. Outright declaration that it is hostile takeover of the Linux sound system, with little consideration of how it breaks existing programs and working environments. That hostile attitude basically invited lots of angry users, so if you hear of any angry users on this thread, shut up about it. I am looking for ways to restore what worked before and make PulseAudio (where needed) get along in a secondary role. That is not an invitation to argue anything. If you want to comment on this or argue PulseAudio, start your own thread. ** SDL MIDI music I have SDL MIDI music working again. Upon booting the next day, SDL could play MIDI music. The SDL library IS still supporting MIDI. I tested it a second day too, just to make sure it was reliable, and it still works. There is probably a gotcha out there that blocks it, and I have yet to discover what it is. ** pavucontrol This PulseAudio volume control is part of the problem. It leads you to believe that it is the volume control for the sound system, and it is not. It is only the PulseAudio mixer volume control (controls). ** ALSA mixer loading is disabled in the installation Slackware 14.2 You need to make executable the file /etc/rc.d/rc.alsa, so that the saved mixer settings will be restored upon boot. Otherwise the ALSA master volume control is initialized at about 30%. ** ALSA needs a default setting of the ALSA mixer controls. To save the mixer settings. > alsactl store You can do this manually once, after setting up the controls using alsamixer. You can have the mixer controls saved automatically on shutdown by putting it in /etc/rc.d/rec.local_shutdown (or similar depending upon distribution). Previous versions used to have it there, enabled by an if detection of alsa. ** PulseAudio problems The PulseAudio sound goes through both the ALSA pcm volume control and the ALSA master volume control. At least it does with my current setup, and I do not know what it does in other setups. If either of these is set low (which they are by default), then PulseAudio volume control must set higher, which leads to that mixer clipping peaks. That is one thing that is making PulseAudio sound so bad. PulseAudio goes through the ALSA master volume control, so any program that sets volume by changing the ALSA master volume control (like music players) is going to change the PulseAudio volume too, and without it showing on pavucontrol. If PulseAudio was written to cooperate with the existing ALSA sound system, it would have brought the sound into ALSA somewhere independent of the other ALSA users. When PulseAudio outputs to ALSA, it ought to have its own volume control in the ALSA mixer. The same is likely true of JACK, esound, and other mixers. If PulseAudio always goes through the ALSA mixer devices, even when it intercepts ALSA directed outputs from other programs, then it is always going to need the ALSA mixer controls set to 100%. I have seen at least one other help that mentioned setting ALSA mixer to 100%, so it is apparently necessary. This is then a failing of the Slackware 14.2 installation when it disabled setting the ALSA mixer controls. Still need to figure out how to write my program to evade that forced redirection to PulseAudio in the asound.conf file. I have posted everything I currently know about PulseAudio detection of AC97. The output of "lspci -v" contains this: 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) Subsystem: Chaintech Computer Co. Ltd VT8233/A/8235/8237 AC97 Audio Controller Flags: medium devsel, IRQ 22 I/O ports at eb00 [size=256] Capabilities: [c0] Power Management version 2 Kernel driver in use: snd_via82xx Kernel modules: snd_via82xx The output of " /proc/asound/cards" contains this: 0 [V8237 ]: VIA8237 - VIA 8237 VIA 8237 with VIA1617A at 0xeb00, irq 22 1 [UART ]: MPU-401 UART - MPU-401 UART MPU-401 UART at 0x330, irq 10 dmesg did not have any lines that I could find. If PulseAudio is limited to what udev detects, then it is not universal, and some users are going to need alternatives. Another case of we can automagically detect all your hardware, that does not detect all the hardware. Program long enough, and you learn that whenever "ALL HARDWARE" appears as a claim, a failure is soon to follow. The ability to select and configure alternatives (without spending 3 weeks researching) is necessary. |
Quote:
|
Quote:
To the OP...go back to 14.1. It's the last Slackware to work properly with sound (ALSA). 14.2 and this pulse-audio abortion that escaped from the garbage can it was thrown in is seriously a bummer, thus I'm glad I kept my old 14.1 on a second hdd. I tried several times in other threads about this pulse thing to get alsa working again, but in the end there were always things screwing up elsewhere eventually and I'd end up re-installing 14.2. I hate to say it, but I fear there won't be a 14.3 (or whatever) on my system if it's got this pulse thing still. Best of luck to you in your endeavors though with this thing. I wish I was schooled in programming and such things to be able to get into the depth you have and try to help out somehow. Good to see you're not a quitter though. |
Quote:
Therefore, the matter is not about classifying professional, the words they chose, or bug report filing. It's about whether we can get to problem solving without labeling each other then focusing on that instead. So I asked for clarity; is it really that everyone else does not research their pulseaudio problem, or have other been solutions presented before now? Exaggeration, or...? I'd hope that peoples suggestions stop being castigated. |
All times are GMT -5. The time now is 06:36 AM. |