• Welcome to Peterborough Linux User Group (Canada) Forum.
 

Sound problems in my Late 2015 iMac

Started by fox, November 26, 2017, 05:43:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fox

#15
The Firefox ESR lists it as a corporate edition and directs individuals to their regular FF page. Is ESR just an older version of FF with long-term support? I'm asking because now that I think about it, my sound problems started around the time FF was upgraded to the current version. If it's the cause, that's unfortunate because I really like the new version.

Now that I think about it, OMG Ubuntu posted an article about the new version of Firefox requiring pulseaudio; they apparently refuse to give it the option to run on alsa. But the article does mention that the ESR version still allows alsa. But even if Firefox turns out to be my problem and I install the ESR, I don't see how I can force it to run on alsa. You can't uninstall pulseaudio in either Ubuntu or Mint, so your only option is to disable it. So if I find that Firefox is the culprit, I'll just have to switch browsers on the problematic 2015 iMac. Ironically, my older 2011 iMac has none of these problems, and appears to be using the same drivers as the newer one. These iMacs are the first computers I've had that use AMD cards since switching to Linux. With iMacs, you have to buy a 2012 or 2013 to get Nvidia cards. But older ones were able to use different Linux drivers for AMD/Radeon cards; probably the reason why my 2011 doesn't have the problems I've faced with the 2015.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

Yeah, I said Firefox ESR was the enterprise version which is the same as saying corporate version - just in the IT industry, they usually say enteprise. It's an older version yes, but they keep updating it with security updates and bug fixes. Every year around March, they introduce a new ESR version that is synced with the latest version of Firefox. See the lifecycle lower on this page:

https://www.mozilla.org/en-US/firefox/organizations/faq/

Eventually, you could face the same issue but it might give the Firefox team time to fix whatever bug is causing this. In any case, this would be safer than using an older version of Firefox that probably has unpatched known vulnerabilities.

QuoteBut even if Firefox turns out to be my problem and I install the ESR, I don't see how I can force it to run on alsa.

I would assume that the ESR version runs on alsa by design. I imagine if you have alsa installed, it will use it.

In any case, if you like the new Firefox, you may like Chrome. You could try installing that and see what you think. It does have the angle tabs though, not the boxy ones you seem to like. Note that Chromium and Chrome aren't the same browsers though they are very similar.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

fox

Well, at this point I don't have strong evidence that Firefox is what's causing the problem. Whatever the problem is, it's weird, and at this point unpredictable. I tried a sequence of actions that involved opeing the sound app and making sure I had sound, running a youtube video on Firefox, killing pulseaudio, and then starting up rhythmbox. Sometimes it worked and I could play music, other times not. Once I had play, I had to keep music playing because as soon as I stopped, it would lose sound when I started up again. This was even if I kept the app running. So something must be going on in the background that I'm not seeing. It's clearly some kind of software conflict, but it must be hardware-related as well because it doesn't happen on my 2011 iMac.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

Try running the apps from the terminal instead of clicking on the icon. You mean see error messages. Maybe even look for logs related to sound or hardware.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

fox

#19
Best Linux news I've had in weeks - sound runs in all apps when I hook up speakers to the sound dongle I borrowed from Jason!!!!  And I don't have to play with any settings to get it to work; it just does! This includes Chromium as well as rhythmbox and Firefox. I confirmed that the sound now works in Mint 18.3, Mint 18.2 and Ubuntu 16.04.

This now makes me think back to a post I read a long time ago, where someone wrote that they had trouble getting sound from their internal speakers because the software assumed there were 4 speakers and activated the two that were nonexistent. I'll look into this later when I have time.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

Cool! But you only have two speakers, right? And you couldn't it to work with headphones consistently with headphones either if I recall correctly.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

fox

Yes, you're right; the iMac has only two internal speakers. I only thought of this explanation because I read that something like this happened because of so-called front and rear internal speakers in another post. It very well may not be the explanation, and now that I have a solution, I'm not willing to spend too much more intensive time researching the problem. What I am going to try is to copy the pulse drivers in ~/.config/pulse from my home iMac (the 2011 that doesn't have this problem) and paste them into this one and see if that works. If it doesn't, then I'll be running my 2015 iMac on external speakers until a better solution "appears". I don't really care that the sound quality of my cheap external speakers is lower than that of the internal iMac speakers. I only use them for background music while I'm working. The important thing is I don't have to run the MacOS on this computer to listen to music!
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

fox

I tried one other thing. I dumped all of the config files in .config/pulse. Then I opened the Sound panel and made sure that the internal speakers were selected and that the test sound worked. Then I turned on rhythmbox. Now I could play my music, stop, play another tune. I could even close rhythmbox and open it again and play a sound. BUT, as soon as I opened Firefox and played a youtube video, I got no further sound from rhythmbox. I don't want to have to go through all this every time I want to play music, so I'm now going to order a sound card like Jason's, and keep my external speakers hooked up. Not the perfect solution, but not so bad either.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

Sometimes the easiest solution isn't the most elegant but it's easier than continually banging your head against a wall!
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

fox

Although I have now ordered the sound card, I have one more idea to try and it goes back to an older idea. Since rhythmbox seemed to work OK until I started Firefox (that is, after I purged the pulseaudio config files and rebooted), this has me thinking again that Firefox could be the culprit. So maybe if I went back to the older version of FF available as ESR, then perhaps the audio player sound problem would disappear. At least worth a try. Even if it works, I would then have to decide whether I want to forgo the new features of FF 57 to get sound out of my internal speakers, when I now have a solution that gives me sound with the current version of FF. But inquiring minds want to know what's going on here!!!!
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

Sure, and eventually the ESR does catch up with the newest version of Firefox, if for but a short while, I think in March? With any luck, by then they will have fixed this issue.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

Jason

You might have already tried this (sorry, too lazy to check again), but I notice in the LM 18.3 Cinnamon release notes it says under "Sound and microphone issues":

QuoteIf you're facing issues with your microphone or your sound output, please install "pavucontrol".

This will add "PulseAudio Volume Control" to your menu. This application has more configuration options than the default volume control.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

fox

Thanks, Jason but yes, I have already installed pavucontrol and tried to use it to solve my sound problems. When I installed it, I had been hoping that it would reveal "hidden" internal speakers that my iMac doesn't have. That was not the case, and I'm now thinking that my problem has nothing to do with routing sound output to speakers that don't exist.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

fox

Well, Firefox-esr doesn't fix the problem, so my only solution is the sound card. But that's ok.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

Interesting so it's not *just* the new Firefox that's the problem.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13